From c94a233f6757686b85adda69598360b2775f6ca7 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Thu, 18 Jan 2024 00:00:05 -0800 Subject: [PATCH] [smartswitch] Align the smart switch config generator with the YANG model. (#17636) - Why I did it Align the smart switch config generator with the YANG model. - How I did it Change MID_PLANE_BRIDGE table field name in the generated config from address to ip_prefix. - How to verify it Run UT. The tests are aligned with the changes. Signed-off-by: Oleksandr Ivantsiv --- src/sonic-config-engine/config_samples.py | 2 +- src/sonic-config-engine/tests/sample_output/t1-smartswitch.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sonic-config-engine/config_samples.py b/src/sonic-config-engine/config_samples.py index 77f11a9f3d..4989b88021 100644 --- a/src/sonic-config-engine/config_samples.py +++ b/src/sonic-config-engine/config_samples.py @@ -86,7 +86,7 @@ def generate_t1_smartswitch_sample_config(data): data['MID_PLANE_BRIDGE'] = { 'GLOBAL': { 'bridge': bridge_name, - 'address': '{}/24'.format(mpbr_address) + 'ip_prefix': '{}/24'.format(mpbr_address) } } diff --git a/src/sonic-config-engine/tests/sample_output/t1-smartswitch.json b/src/sonic-config-engine/tests/sample_output/t1-smartswitch.json index 7cccb9ab12..58d91aa905 100644 --- a/src/sonic-config-engine/tests/sample_output/t1-smartswitch.json +++ b/src/sonic-config-engine/tests/sample_output/t1-smartswitch.json @@ -554,7 +554,7 @@ "MID_PLANE_BRIDGE": { "GLOBAL": { "bridge": "bridge_midplane", - "address": "169.254.200.254/24" + "ip_prefix": "169.254.200.254/24" } }, "DHCP_SERVER_IPV4": {