Skip to content

Subscription callbacks for acl and interface app modules#86

Merged
anand-kumar-subramanian merged 6 commits intosonic-net:masterfrom
sachinholla:app_method_impl
May 24, 2023
Merged

Subscription callbacks for acl and interface app modules#86
anand-kumar-subramanian merged 6 commits intosonic-net:masterfrom
sachinholla:app_method_impl

Conversation

@sachinholla
Copy link
Copy Markdown
Contributor

  • Implemented translateSubscribe() and processSubscribe() methods in AclApp and IntfApp. Mapping is based on the existing processGet() implementation. This may not be accurate since both the app modules have not been updated since long time. But it will be useful for testing the subscription feature.

  • Current IntfApp supports only physcial ports in get/set operations. Same limitation is applicable for subscription as well.

  • Added utilities for processing the path objects and help prepare the translateSubscribe() resposne.

  • Added gotest helper functions to call translateSubscribe() and verify the responses. Added gotest cases to verify different openconfig-acl and openconfig-interfaces yang paths.

  • Fixed incorrect paths & payloads used by the existing AclApp get/set test cases.

Part of gNMI Subscription enhancements described in sonic-net/SONiC#1287

* Implemented translateSubscribe() and processSubscribe() methods in
  AclApp and IntfApp. Mapping is based on the existing processGet()
  implementation. This may not be accurate since both the app modules
  have not been updated since long time. But it will be useful for
  testing the subscription feature.

* Current IntfApp supports only physcial ports in get/set operations.
  Same limitation is applicable for subscription as well.

* Added utilities for processing the path objects and help prepare
  the translateSubscribe() resposne.

* Added gotest helper functions to call translateSubscribe() and
  verify the responses. Added gotest cases to verify different
  openconfig-acl and openconfig-interfaces yang paths.

* Fixed incorrect paths & payloads used by the existing AclApp get/set
  test cases.

Signed-off-by: Sachin Holla <sachin.holla@broadcom.com>
Copy link
Copy Markdown

@tomek-US tomek-US left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for all those changes.

It was a pleasure to review this code.

A few mostly cosmetic comments.

Copy link
Copy Markdown

@tomek-US tomek-US left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anand-kumar-subramanian anand-kumar-subramanian merged commit 60b748f into sonic-net:master May 24, 2023
@sachinholla sachinholla deleted the app_method_impl branch June 18, 2023 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants