Skip to content

Commit f204d82

Browse files
authored
[ssw][yang] update field name in HA_GLOBAL_CONFIG to align with HLD. (sonic-net#25214)
[ssw][yang] update field name in `HA_GLOBAL_CONFIG` to align with HLD.
1 parent 169b7dd commit f204d82

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/sonic-yang-models/doc/Configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3480,7 +3480,7 @@ Like NTP global configuration, DASH HA global configuration must have one entry
34803480
"global": {
34813481
"vnet_name": "Vnet55",
34823482
"cp_data_channel_port": "11362",
3483-
"dp_channel_port": "11368",
3483+
"dp_channel_dst_port": "11368",
34843484
"dp_channel_src_port_min": "49152",
34853485
"dp_channel_src_port_max": "53247",
34863486
"dp_channel_probe_interval_ms": "100",
@@ -3496,7 +3496,7 @@ Like NTP global configuration, DASH HA global configuration must have one entry
34963496

34973497
**cp_data_channel_port**: Control plane data channel port, used for bulk sync.
34983498

3499-
**dp_channel_port**: Destination port when tunneling packets via DPU-to-DPU data plane channel.
3499+
**dp_channel_dst_port**: Destination port when tunneling packets via DPU-to-DPU data plane channel.
35003500

35013501
**dp_channel_src_port_min**: Minimum source port used when tunneling packets via DPU-to-DPU data plane channel.
35023502

src/sonic-yang-models/tests/files/sample_config_db.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3069,7 +3069,7 @@
30693069
"global": {
30703070
"vnet_name": "Vnet55",
30713071
"cp_data_channel_port": "11362",
3072-
"dp_channel_port": "11368",
3072+
"dp_channel_dst_port": "11368",
30733073
"dp_channel_src_port_min": "49152",
30743074
"dp_channel_src_port_max": "53247",
30753075
"dp_channel_probe_interval_ms": "100",

src/sonic-yang-models/tests/yang_model_pytests/test_smart_switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def test_dash_ha_global_config(self, yang_model):
454454
"global": {
455455
"vnet_name": "Vnet55",
456456
"cp_data_channel_port": 11234,
457-
"dp_channel_port": 11235,
457+
"dp_channel_dst_port": 11235,
458458
"dp_channel_src_port_min": 11236,
459459
"dp_channel_src_port_max": 11237,
460460
"dp_channel_probe_interval_ms": 500,

src/sonic-yang-models/yang-models/sonic-smart-switch.yang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ module sonic-smart-switch {
301301
type inet:port-number;
302302
}
303303

304-
leaf dp_channel_port {
304+
leaf dp_channel_dst_port {
305305
description "Destination port when tunneling packets via DPU-to-DPU data plane channel";
306306
type inet:port-number;
307307
}

0 commit comments

Comments
 (0)