[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 <oivantsiv@nvidia.com>
This commit is contained in:
Oleksandr Ivantsiv 2024-01-18 00:00:05 -08:00 committed by GitHub
parent 07a43b96b7
commit c94a233f67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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": {