From 66ae8ab7600500b533b8b574380f53342da6dc6c Mon Sep 17 00:00:00 2001 From: Rida Hanif <61490193+ridahanif96@users.noreply.github.com> Date: Tue, 13 Jun 2023 23:33:31 +0500 Subject: [PATCH] Check for db-migrator --- ...Switchport Mode and VLAN CLI Enhancement.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md b/doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md index 000e862124..5864d3d4be 100644 --- a/doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md +++ b/doc/vlan/switchport-mode-support/Switchport Mode and VLAN CLI Enhancement.md @@ -310,9 +310,9 @@ We have added a new “mode” field in PORT & PORT CHANNEL Table . ## DB Migrator Enhancements -As there is a change in schema for PORT & PORT CHANNEL Table in config DB . We have added support to migrate the entries to the new schema in db_migrator.py. A new “mode” field is added whose default value is “trunk” to map it with the old configurations for backward compatibility. +As there is a change in the schema for PORT & PORT CHANNEL Table in config DB. We have added a new "mode" field in db_migrator.py in order to support backward compatibility. -Exisitng Before Migration PORT TABLE Schema in Config_DB +#### Existing Before Migration PORT TABLE Schema in Config_DB "PORT": { @@ -326,9 +326,10 @@ Exisitng Before Migration PORT TABLE Schema in Config_DB } } -After migration PORT TABLE Schema in Config_DB + If there is IP or IPV6 configured, no "mode" field will be added which means "routed" for the old configurations. If there is a VLAN membership, then the mode field will be "trunk". + +After Migration PORT TABLE if there is VLAN Membership in Config_DB -If a VLAN is configured in old configurations its mode will be set as “trunk” for existing configurations. "PORT": { @@ -343,7 +344,8 @@ If a VLAN is configured in old configurations its mode will be set as “trunk } } -Exisitng Before Migration PORTCHANNEL TABLE Schema in Config_DB + +#### Existing Before Migration PORTCHANNEL TABLE Schema in Config_DB "PORTCHANNEL": { @@ -356,9 +358,11 @@ Exisitng Before Migration PORTCHANNEL TABLE Schema in Config_DB } } -After migration PORTCHANNEL TABLE Schema in Config_DB -If a VLAN is configured in old configurations its mode will be set as “trunk” for existing configurations. +If there is IP or IPV6 configured, no "mode" field will be added which means "routed" for the old configurations. If there is a VLAN membership, then the mode field will be "trunk". + + + After Migration PORTCHANNEL TABLE if there is VLAN Membership in Config_DB "PORTCHANNEL": {