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.
Providing transformer support for sflow feature (sonic-net#91)
* Providing transformer support for sflow feature Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Providing transformer support for sflow feature - Addressed review comments Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Providing transformer support for sflow feature - Addressed review comments for sflow app test Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Update azure-pipelines.yml Enabling sflow feature for the * Update azure-pipelines.yml * Added support unit test run Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com> * Added rclientDBNum in test infra wq --------- Signed-off-by: Gokulnath-Raja <Gokulnath_R@dell.com> Co-authored-by: mohanapriya-meganathan <mohanapriya.m1@dell.com>
- Loading branch information
1 parent
b53883f
commit 6823470
Showing
12 changed files
with
1,628 additions
and
4 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
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 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 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 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.