-
Notifications
You must be signed in to change notification settings - Fork 118
Providing transformer support for sflow feature #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kwangsuk
merged 9 commits into
sonic-net:master
from
Gokulnath-Raja:transformer_sflow_feature_support
Aug 18, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
d1cc1cc
Providing transformer support for sflow feature
Gokulnath-Raja 443966c
Providing transformer support for sflow feature - Addressed review co…
Gokulnath-Raja f50f52c
Providing transformer support for sflow feature - Addressed review co…
Gokulnath-Raja e77c41b
Merge branch 'master' into transformer_sflow_feature_support
Gokulnath-Raja dba7ba6
Update azure-pipelines.yml
Gokulnath-Raja bf78f45
Update azure-pipelines.yml
Gokulnath-Raja 262fad3
Added support unit test run
Gokulnath-Raja 25f3fcc
Added rclientDBNum in test infra
Gokulnath-Raja 32f8fda
Merge branch 'sonic-net:master' into transformer_sflow_feature_support
Gokulnath-Raja File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| #List yang models transformer need to load | ||
| openconfig-acl.yang | ||
| openconfig-acl-annot.yang | ||
| openconfig-sampling-sflow.yang | ||
| openconfig-sampling-sflow-annot.yang |
This file contains hidden or 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
34 changes: 34 additions & 0 deletions
34
models/yang/annotations/openconfig-sampling-sflow-annot.yang
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| module openconfig-sampling-sflow-annot { | ||
|
|
||
| yang-version "1"; | ||
|
|
||
| namespace "http://openconfig.net/yang/annotation/oc-sampling-sflow-annot"; | ||
| prefix "oc-sampling-annot"; | ||
|
|
||
| import openconfig-extensions { prefix oc-ext; } | ||
| import openconfig-sampling-sflow { prefix oc-sampling; } | ||
| import sonic-extensions { prefix sonic-ext; } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow { | ||
| deviate add { | ||
| sonic-ext:subtree-transformer "sflow_xfmr"; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:collectors { | ||
| deviate add { | ||
| sonic-ext:subtree-transformer "sflow_collector_xfmr"; | ||
| sonic-ext:path-transformer "sflow_collector_path_xfmr"; | ||
| } | ||
| } | ||
|
|
||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:interfaces { | ||
| deviate add { | ||
| sonic-ext:subtree-transformer "sflow_interface_xfmr"; | ||
| sonic-ext:path-transformer "sflow_interface_path_xfmr"; | ||
| } | ||
| } | ||
| } | ||
|
|
54 changes: 54 additions & 0 deletions
54
models/yang/extensions/openconfig-sampling-sflow-deviation.yang
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| module openconfig-sampling-sflow-deviation { | ||
|
|
||
| yang-version "1.1"; | ||
|
|
||
| // namespace | ||
| namespace "http://openconfig.net/yang/sampling/sflow/deviation/extension"; | ||
|
|
||
| prefix "oc-sampling-sflow-dev"; | ||
|
|
||
| import openconfig-extensions { prefix "oc-ext"; } | ||
| import openconfig-sampling-sflow { prefix oc-sampling; } | ||
|
|
||
| organization "SONiC"; | ||
| contact | ||
| "SONiC"; | ||
| description | ||
| "This is a deviation yang for openconfig sampling model."; | ||
|
|
||
| oc-ext:openconfig-version "0.1.0"; | ||
|
|
||
| revision 2020-06-23 { | ||
| description | ||
| "Initial version."; | ||
| reference "0.1.0"; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:config/oc-sampling:source-address { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:config/oc-sampling:sample-size { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:config/oc-sampling:sampling-rate { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:interfaces/oc-sampling:interface/oc-sampling:state/oc-sampling:packets-sampled { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:state/oc-sampling:source-address { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:state/oc-sampling:sample-size { | ||
| deviate not-supported; | ||
| } | ||
|
|
||
| deviation /oc-sampling:sampling/oc-sampling:sflow/oc-sampling:collectors/oc-sampling:collector/oc-sampling:state/oc-sampling:packets-sent { | ||
| deviate not-supported; | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.