Skip to content

Can a leaf attribute be both ON-CHANGE and SAMPLE type? #226

@raghubk

Description

@raghubk

Consider the below two event-driven attributes which fit "on-change" mode type.

/interfaces/interface/state/admin-status
/interfaces/interface/state/oper-status

  1. If gnmi "sample" mode subscribe rpc request is received for these leaf level attributes, should the gnmi server reject the request? And only accept "on-change" or "target-defined" mode for these attributes? Or is it left to the implementations?

  2. Do implementations have to exclusively classify leaf level attributes as SAMPLE or ON-CHANGE mode type for stream-mode? Or can some attributes be of "both" type?

Clarity on this in gnmi spec is needed. For interoperability across vendors, one would prefer to see each attribute in the openconfig data models to be annotated with (SAMPLE, ON-CHANGE or both) type. I would like to hear experts opinion on this.

Thanks,
Raghu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions