-
Notifications
You must be signed in to change notification settings - Fork 26
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
[Thinkit] Test sFlow interface counter value during standalone test. Use pins-sampling-sflow
namespace for actual-ingress-sampling-rate
. do not fail test when /etc/hsflowd.auto
is not present. Add a restart test.
#898
base: main
Are you sure you want to change the base?
Conversation
/azp run |
No pipelines are associated with this pull request. |
tests/sflow/sflow_util.cc
Outdated
@@ -405,7 +408,7 @@ GetSflowActualSamplingRateForInterfaces( | |||
const absl::flat_hash_set<std::string>& interfaces) { | |||
absl::flat_hash_map<std::string, int> interface_to_sample_rate; | |||
const std::string parse_ops_str = | |||
"openconfig-sampling-sflow:actual-ingress-sampling-rate"; | |||
"google-pins-sampling-sflow:actual-ingress-sampling-rate"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change google-pins to pins
tests/sflow/sflow_util_test.cc
Outdated
@@ -681,7 +681,7 @@ TEST(SflowUtilTest, GetActualSampleRateSuccessForAllInterfaces) { | |||
prefix { origin: "openconfig" } | |||
update { | |||
val { | |||
json_ietf_val: "{\"openconfig-sampling-sflow:actual-ingress-sampling-rate\":256}" | |||
json_ietf_val: "{\"google-pins-sampling-sflow:actual-ingress-sampling-rate\":256}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change google-pins to pins
tests/sflow/sflow_util_test.cc
Outdated
@@ -704,7 +704,7 @@ TEST(SflowUtilTest, GetActualSampleRateInvalidSampleRateFail) { | |||
prefix { origin: "openconfig" } | |||
update { | |||
val { | |||
json_ietf_val: "{\"openconfig-sampling-sflow:actual-ingress-sampling-rate\":\"abc\"}" | |||
json_ietf_val: "{\"google-pins-sampling-sflow:actual-ingress-sampling-rate\":\"abc\"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change google-pins to pins
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change google-pins to pins in all the commented places
1717c56
to
7ffcb9a
Compare
/azp run |
No pipelines are associated with this pull request. |
google-pins-sampling-sflow
namespace for actual-ingress-sampling-rate
. do not fail test when /etc/hsflowd.auto
is not present. Add a restart test.pins-sampling-sflow
namespace for actual-ingress-sampling-rate
. do not fail test when /etc/hsflowd.auto
is not present. Add a restart test.
7ffcb9a
to
7847203
Compare
/azp run |
No pipelines are associated with this pull request. |
7847203
to
b2a9b32
Compare
/azp run |
No pipelines are associated with this pull request. |
…Use `google-pins-sampling-sflow` namespace for `actual-ingress-sampling-rate`. do not fail test when `/etc/hsflowd.auto` is not present. Add a restart test.
b2a9b32
to
2339973
Compare
/azp run |
No pipelines are associated with this pull request. |
Key_word Check:
Build result:
Test result: