forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subscription callbacks for acl and interface app modules (sonic-net#86)
* Subscription callbacks for acl and interface app modules * 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> * Init test data for ACL gotests * Minor cleanups to address review comments * Define constants for port related table names --------- Signed-off-by: Sachin Holla <sachin.holla@broadcom.com>
- Loading branch information
1 parent
cf40f46
commit 60b748f
Showing
13 changed files
with
1,801 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.