Skip to content

Commit

Permalink
Rename all SAI attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Marian Pritsak <[email protected]>
  • Loading branch information
marian-pritsak committed Apr 30, 2024
1 parent 7753b2a commit 7c101b7
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion dash-pipeline/tests/libsai/vnet_out/vnet_out.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int main(int argc, char **argv)
attr.value.u32 = 10000;
attrs.push_back(attr);

attr.id = SAI_ENI_ATTR_PPS;
attr.id = SAI_ENI_ATTR_BW;
attr.value.u32 = 100000;
attrs.push_back(attr);

Expand Down
2 changes: 1 addition & 1 deletion documentation/general/dash-sonic-hld.md
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ rx_counter = uint64 ; Number of received bytes (read-only)
| DASH_QOS_TABLE | | | | |
| | qos_name | | | |
| | | qos_id | | |
| | | bw | SAI_ENI_ATTR_PPS | |
| | | bw | SAI_ENI_ATTR_BW | |
| | | cps | SAI_ENI_ATTR_CPS | |
| | | flows | SAI_ENI_ATTR_FLOWS | |
| DASH_ENI_TABLE | | | *SAI_OBJECT_TYPE_ENI* | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", ENI_VTEP_IP,
Expand Down Expand Up @@ -134,7 +134,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", NETWORK_VTEP_IP,
Expand Down Expand Up @@ -176,7 +176,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", NETWORK_VTEP_IP,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down Expand Up @@ -174,7 +174,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", "221.0.1.11",
Expand Down Expand Up @@ -108,7 +108,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", "221.0.2.101",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_vnet_eni_create(self, dpu):
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_vnet_inbound_routing_entry_create_setup(self, dpu):
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_vnet_outbound_routing_entry_create(self, dpu):
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down Expand Up @@ -158,7 +158,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", "172.16.1.1",
Expand Down Expand Up @@ -145,7 +145,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", "172.16.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"type": "SAI_OBJECT_TYPE_ENI",
"attributes": [
"SAI_ENI_ATTR_CPS", "10000",
"SAI_ENI_ATTR_PPS", "100000",
"SAI_ENI_ATTR_BW", "100000",
"SAI_ENI_ATTR_FLOWS", "100000",
"SAI_ENI_ATTR_ADMIN_STATE", "True",
"SAI_ENI_ATTR_VM_UNDERLAY_DIP", "172.16.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down Expand Up @@ -197,7 +197,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down Expand Up @@ -274,7 +274,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down Expand Up @@ -351,7 +351,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"attributes": [
"SAI_ENI_ATTR_CPS",
"10000",
"SAI_ENI_ATTR_PPS",
"SAI_ENI_ATTR_BW",
"100000",
"SAI_ENI_ATTR_FLOWS",
"100000",
Expand Down

0 comments on commit 7c101b7

Please sign in to comment.