Skip to content

ygnmi.Watch should handle implicit deletions via time expiry in SAMPLE mode #145

@wenovus

Description

@wenovus

Spec: https://github.com/openconfig/reference/pull/201/files

Currently ygnmi.Watch maintains state regardless of STREAM subscription mode, which would represent the wrong value. This is not determinable via timestamps due to having a single timestamp for the entire query object rather than per-leaf timestamps.

I think handling this within ygnmi is the more intuitive option. This is possible via an internal expiry timer. The easier solution of using sync_response is not available because they're not mandatory per the spec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Ready to discuss

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions