diff --git a/scripts/db_migrator.py b/scripts/db_migrator.py index 9389f3749e..92f95af4ba 100755 --- a/scripts/db_migrator.py +++ b/scripts/db_migrator.py @@ -10,6 +10,7 @@ from sonic_py_common import device_info, logger from swsssdk import ConfigDBConnector, SonicDBConfig from swsscommon.swsscommon import SonicV2Connector +from db_migrator_constants import RESTAPI, TELEMETRY, CONSOLE_SWITCH INIT_CFG_FILE = '/etc/sonic/init_cfg.json' @@ -45,7 +46,7 @@ def __init__(self, namespace, socket=None): none-zero values. build: sequentially increase within a minor version domain. """ - self.CURRENT_VERSION = 'version_2_0_1' + self.CURRENT_VERSION = 'version_2_0_2' self.TABLE_NAME = 'VERSIONS' self.TABLE_KEY = 'DATABASE' @@ -422,6 +423,61 @@ def migrate_pfcwd_sw_enable_table(self): v['pfcwd_sw_enable'] = v['pfc_enable'] self.configDB.set_entry('PORT_QOS_MAP', k, v) + def migrate_vxlan_config(self): + log.log_notice('Migrate VXLAN table config') + # Collect VXLAN data from config DB + vxlan_data = self.configDB.keys(self.configDB.CONFIG_DB, "VXLAN_TUNNEL*") + if not vxlan_data: + # do nothing if vxlan entries are not present in configdb + return + for vxlan_table in vxlan_data: + vxlan_map_mapping = self.configDB.get_all(self.configDB.CONFIG_DB, vxlan_table) + tunnel_keys = vxlan_table.split(self.configDB.KEY_SEPARATOR) + tunnel_keys[0] = tunnel_keys[0] + "_TABLE" + vxlan_table = self.appDB.get_db_separator(self.appDB.APPL_DB).join(tunnel_keys) + for field, value in vxlan_map_mapping.items(): + # add entries from configdb to appdb only when they are missing + if not self.appDB.hexists(self.appDB.APPL_DB, vxlan_table, field): + log.log_notice('Copying vxlan entries from configdb to appdb: updated {} with {}:{}'.format( + vxlan_table, field, value)) + self.appDB.set(self.appDB.APPL_DB, vxlan_table, field, value) + + def migrate_restapi(self): + # RESTAPI - add missing key + log.log_notice('Migrate RESTAPI configuration') + config = self.configDB.get_entry('RESTAPI', 'config') + if not config: + self.configDB.set_entry("RESTAPI", "config", RESTAPI.get("config")) + certs = self.configDB.get_entry('RESTAPI', 'certs') + if not certs: + self.configDB.set_entry("RESTAPI", "certs", RESTAPI.get("certs")) + + def migrate_telemetry(self): + # TELEMETRY - add missing key + log.log_notice('Migrate TELEMETRY configuration') + gnmi = self.configDB.get_entry('TELEMETRY', 'gnmi') + if not gnmi: + self.configDB.set_entry("TELEMETRY", "gnmi", TELEMETRY.get("gnmi")) + certs = self.configDB.get_entry('TELEMETRY', 'certs') + if not certs: + self.configDB.set_entry("TELEMETRY", "certs", TELEMETRY.get("certs")) + + def migrate_console_switch(self): + # CONSOLE_SWITCH - add missing key + log.log_notice('Migrate CONSOLE_SWITCH configuration') + console_mgmt = self.configDB.get_entry('CONSOLE_SWITCH', 'console_mgmt') + if not console_mgmt: + self.configDB.set_entry("CONSOLE_SWITCH", "console_mgmt", + CONSOLE_SWITCH.get("console_mgmt")) + + def migrate_device_metadata(self): + # DEVICE_METADATA - synchronous_mode entry + log.log_notice('Migrate DEVICE_METADATA missing configuration (synchronous_mode=enable)') + metadata = self.configDB.get_entry('DEVICE_METADATA', 'localhost') + if 'synchronous_mode' not in metadata: + metadata['synchronous_mode'] = 'enable' + self.configDB.set_entry('DEVICE_METADATA', 'localhost', metadata) + def migrate_port_qos_map_global(self): """ Generate dscp_to_tc_map for switch. @@ -579,13 +635,29 @@ def version_2_0_0(self): """ log.log_info('Handling version_2_0_0') self.migrate_port_qos_map_global() + self.set_version('version_2_0_1') return 'version_2_0_1' def version_2_0_1(self): """ - Current latest version. Nothing to do here. + Handle and migrate missing config that results from cross branch upgrade to + 202012 as target. """ log.log_info('Handling version_2_0_1') + self.migrate_vxlan_config() + self.migrate_restapi() + self.migrate_telemetry() + self.migrate_console_switch() + self.migrate_device_metadata() + + self.set_version('version_2_0_2') + return 'version_2_0_2' + + def version_2_0_2(self): + """ + Current latest version. Nothing to do here. + """ + log.log_info('Handling version_2_0_2') return None def get_version(self): diff --git a/scripts/db_migrator_constants.py b/scripts/db_migrator_constants.py new file mode 100644 index 0000000000..71237a5655 --- /dev/null +++ b/scripts/db_migrator_constants.py @@ -0,0 +1,32 @@ +RESTAPI = { + "config": { + "client_auth": "true", + "log_level": "info", + "allow_insecure": "false" + }, + "certs": { + "server_key": "/etc/sonic/credentials/restapiserver.key", + "ca_crt": "/etc/sonic/credentials/AME_ROOT_CERTIFICATE.pem", + "server_crt": "/etc/sonic/credentials/restapiserver.crt", + "client_crt_cname": "client.restapi.sonic.gbl" + } + } + +TELEMETRY = { + "gnmi": { + "client_auth": "true", + "log_level": "2", + "port": "50051" + }, + "certs": { + "server_key": "/etc/sonic/telemetry/streamingtelemetryserver.key", + "ca_crt": "/etc/sonic/telemetry/dsmsroot.cer", + "server_crt": "/etc/sonic/telemetry/streamingtelemetryserver.cer" + } +} + +CONSOLE_SWITCH = { + "console_mgmt": { + "enabled": "no" + } +} diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_1.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_1.json index 731bcea1fe..c9e5c04a5f 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_1.json @@ -731,6 +731,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_2.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_2.json index 9c01e38daf..07966ad742 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_2.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_3.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_3.json index 2ef38d24ec..66f6c58284 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_3.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_4.json index d92a6336b0..6848917e04 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_4.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_5.json index 84eccb4978..96fd7dd809 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_5.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_6.json index 98130c4baa..f549368983 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_1_0_6.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_2_0_0.json index 76ed34269e..165f5c1ea8 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t0-version_2_0_0.json @@ -689,7 +689,8 @@ "bgp_asn": "65100", "buffer_model": "dynamic", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "LOSSLESS_TRAFFIC_PATTERN|AZURE": { "small_packet_percentage": "100", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_1.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_1.json index 62a74e7d50..c97f51d5a2 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_1.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_2.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_2.json index 48c6e36a85..25d2701574 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_2.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_3.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_3.json index 2f37a3e238..9a438f3b19 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_3.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_4.json index 837abc8b5a..13758db256 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_4.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_5.json index f24650a270..6557d7f90f 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_5.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_6.json index b3b4b31275..205620de9f 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_1_0_6.json @@ -824,6 +824,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_2_0_0.json index be1f36d71c..385b83f73c 100644 --- a/tests/db_migrator_input/config_db/acs-msn2700-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn2700-t1-version_2_0_0.json @@ -754,6 +754,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_2.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_2.json index dad6528bd1..e3bb4f100d 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_2.json @@ -738,6 +738,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_3.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_3.json index ed90ec38f2..ee33adc896 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_3.json @@ -864,6 +864,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_4.json index 508dc5dc7f..45af1c2997 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_4.json @@ -864,6 +864,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_5.json index 4ed4668d8b..04448a2667 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_5.json @@ -864,6 +864,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_6.json index 48ba24ab3b..825d3c495d 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_1_0_6.json @@ -864,6 +864,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_2_0_0.json index c79217b1c5..3481e58fe2 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t0-version_2_0_0.json @@ -808,6 +808,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_2.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_2.json index d2a1290368..80d96b8bc5 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_2.json @@ -838,6 +838,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_3.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_3.json index 57b106555b..0743a08bf9 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_3.json @@ -940,6 +940,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_4.json index e97efaa06d..764e2639fd 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_4.json @@ -940,6 +940,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_5.json index 0e4d8035b6..431218c6c1 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_5.json @@ -940,6 +940,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_6.json index bb26b43b58..a815bf97d6 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_1_0_6.json @@ -940,6 +940,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_2_0_0.json index a756fde63d..1d7bd27447 100644 --- a/tests/db_migrator_input/config_db/acs-msn3700-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn3700-t1-version_2_0_0.json @@ -856,6 +856,7 @@ "hwsku": "ACS-MSN3700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn3700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_5.json index b6fddf6215..df40c5049a 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_5.json @@ -988,6 +988,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_6.json index c655ab4dee..aadef8ed0b 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_1_0_6.json @@ -988,6 +988,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_2_0_0.json index d367b5dca2..ac215677ba 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t0-version_2_0_0.json @@ -971,6 +971,7 @@ "buffer_model": "dynamic", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "LOSSLESS_TRAFFIC_PATTERN|AZURE": { diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_5.json index 9ea07af0f9..2916e541ca 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_5.json @@ -1102,6 +1102,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_6.json index 049834652e..e80ca33864 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_1_0_6.json @@ -1102,6 +1102,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_2_0_0.json index 9a14f0659c..61ca2c38d6 100644 --- a/tests/db_migrator_input/config_db/acs-msn3800-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn3800-t1-version_2_0_0.json @@ -1019,6 +1019,7 @@ "buffer_model": "dynamic", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "LOSSLESS_TRAFFIC_PATTERN|AZURE": { diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_4.json index 34b697493e..1e71535a50 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_4.json @@ -745,6 +745,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_5.json index 313ca97934..c90b68bee5 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_5.json @@ -949,6 +949,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_6.json index 1eb7bc9ff0..553cd3fdce 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_1_0_6.json @@ -949,6 +949,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_2_0_0.json index d0c5b06344..551e8976d9 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t0-version_2_0_0.json @@ -886,6 +886,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_4.json index 763342e143..5adef7f9e4 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_4.json @@ -1050,6 +1050,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_5.json index c043e37bf0..a71bc64979 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_5.json @@ -1050,6 +1050,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_6.json index 6716ec67b4..6bcb4affc8 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_1_0_6.json @@ -1050,6 +1050,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_2_0_0.json index 05dc4f5558..d963f7781d 100644 --- a/tests/db_migrator_input/config_db/acs-msn4700-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/acs-msn4700-t1-version_2_0_0.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_expected.json b/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_expected.json new file mode 100644 index 0000000000..c975229287 --- /dev/null +++ b/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_expected.json @@ -0,0 +1,26 @@ +{ + "RESTAPI|config": { + "client_auth": "true", + "log_level": "info", + "allow_insecure": "false" + }, + "RESTAPI|certs": { + "server_key": "/etc/sonic/credentials/restapiserver.key", + "ca_crt": "/etc/sonic/credentials/AME_ROOT_CERTIFICATE.pem", + "server_crt": "/etc/sonic/credentials/restapiserver.crt", + "client_crt_cname": "client.restapi.sonic.gbl" + }, + "TELEMETRY|gnmi": { + "client_auth": "true", + "log_level": "2", + "port": "50051" + }, + "TELEMETRY|certs": { + "server_key": "/etc/sonic/telemetry/streamingtelemetryserver.key", + "ca_crt": "/etc/sonic/telemetry/dsmsroot.cer", + "server_crt": "/etc/sonic/telemetry/streamingtelemetryserver.cer" + }, + "CONSOLE_SWITCH|console_mgmt": { + "enabled": "no" + } +} diff --git a/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_input.json b/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_input.json new file mode 100644 index 0000000000..bfd870e452 --- /dev/null +++ b/tests/db_migrator_input/config_db/cross_branch_upgrade_to_version_2_0_2_input.json @@ -0,0 +1,3 @@ +{ +} + diff --git a/tests/db_migrator_input/config_db/empty-config-expected.json b/tests/db_migrator_input/config_db/empty-config-expected.json index f3d3593ffc..ad3b60a170 100644 --- a/tests/db_migrator_input/config_db/empty-config-expected.json +++ b/tests/db_migrator_input/config_db/empty-config-expected.json @@ -1,5 +1,8 @@ { "VERSIONS|DATABASE": { "VERSION": "version_2_0_0" + }, + "DEVICE_METADATA|localhost": { + "synchronous_mode": "enable" } } diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_4.json index 4509a55587..8add09883a 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_4.json @@ -726,6 +726,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_5.json index 44c05c9dfb..af2f6b4d5f 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_5.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_6.json index c5369e6344..9881ff7ba8 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_1_0_6.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_2_0_0.json index af7b580c12..f81580c0b9 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t0-version_2_0_0.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_4.json index 0acf1b0fac..c89504ce61 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_4.json @@ -819,6 +819,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_5.json index 91e78b8b96..c8464391d0 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_5.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_6.json index c7d7070c74..16845fd95e 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_1_0_6.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_2_0_0.json index 2b680a34e9..37c61623a6 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-single-pool-t1-version_2_0_0.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_1.json index b85b85118c..e960998c4b 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_1.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_2.json index 6648cce024..f4c80a0136 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_2.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_3.json index c80dce5874..920f88d462 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_3.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_4.json index 2ba6c8253a..d150d1a306 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_4.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_5.json index 70e25898ce..e3ff2f75da 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_5.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_6.json index 8b978e50ac..2f79723493 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_1_0_6.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_2_0_0.json index fd55102445..9227674643 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t0-version_2_0_0.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_1.json index 7ec20f8cec..b5e515a4af 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_1.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_2.json index 31a1179ad2..472550b670 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_2.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_3.json index 855b16afc3..6c562bc0c8 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_3.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_4.json index 2b0ad78528..13e241b808 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_4.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_5.json index 19aeca0bc9..2890da1306 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_5.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_6.json index 9c6b896de5..8098a3cf3b 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_1_0_6.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_2_0_0.json index 38428be263..b2ed29897a 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-c28d8-t1-version_2_0_0.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-C28D8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_5.json index 752f4001c1..f0ef79e917 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_5.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_6.json index 288e0e727f..97bfefde06 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_1_0_6.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json index 2513d40083..91606b1f3a 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t0-version_2_0_0.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_5.json index 94ec238858..770a586427 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_5.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_6.json index b848c67791..998a3f39ed 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_1_0_6.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_2_0_0.json index cf2d4ecdd8..999b5630fc 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d40c8s8-t1-version_2_0_0.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D40C8S8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_4.json index 53921af16f..5854e6456e 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_4.json @@ -726,6 +726,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_5.json index 9e3c1387a3..ea741ecae1 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_5.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_6.json index 60e34b7012..4ca5faa56f 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_1_0_6.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_2_0_0.json index 8fc4128142..00f5efc44f 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t0-version_2_0_0.json @@ -727,6 +727,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_4.json index 647a0eeff0..6486ebdb2c 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_4.json @@ -819,6 +819,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_5.json index ed3bf55e60..3ae16cd145 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_5.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_6.json index a57f2b6842..853bb5c17b 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_1_0_6.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_2_0_0.json index 171cbe43d0..f3e74de711 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-single-pool-t1-version_2_0_0.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_1.json index 2e9f075fb0..379445f819 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_1.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_2.json index 1bb45cc2ce..3794807637 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_2.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_3.json index 6df051fab2..6677793096 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_3.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_4.json index 83edfa3b5d..819e670ce6 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_4.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_5.json index 87788b7bb8..6e351f2a76 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_5.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_6.json index e531918185..1e61a9e935 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_1_0_6.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_2_0_0.json index 1119126485..a56928cb09 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t0-version_2_0_0.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_1.json index 93b622b860..eaedbbb102 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_1.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_2.json index 5fea4f31b5..52f3d5070c 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_2.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_3.json index 69331752c6..51fecae2da 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_3.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_4.json index 226ecf053d..b18cc6e41e 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_4.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_5.json index f1a2f4fc9b..7b22d88c95 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_5.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_6.json index e43f55ee8f..7ae6b09098 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_1_0_6.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_2_0_0.json index 436e5a4803..e2b4231a02 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-d48c8-t1-version_2_0_0.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700-D48C8", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_4.json index fdc77e9a4b..478aa3dc70 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_4.json @@ -732,7 +732,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_5.json index 0e0d4e91b9..ead6486d17 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_5.json @@ -733,7 +733,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_6.json index 37a3cc2bf3..d20b0db1fa 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_1_0_6.json @@ -733,7 +733,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_2_0_0.json index 093ea2c7db..669dfdf82d 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t0-version_2_0_0.json @@ -734,7 +734,8 @@ "bgp_asn": "65100", "buffer_model": "traditional", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_4.json index c99bad1dc6..5c876d66ff 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_4.json @@ -819,6 +819,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_5.json index 4bf50c3456..bb5b2da3ba 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_5.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_6.json index 8c35bd19de..b290fd57e9 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_1_0_6.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_2_0_0.json index 0e07eb8f5b..6f11a9c441 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-single-pool-t1-version_2_0_0.json @@ -820,6 +820,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_1.json index 4a38a382f1..94ecade338 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_1.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_2.json index da5d5ebef3..f97f5dd554 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_2.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_3.json index c518a0a9ce..3843271a45 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_3.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_4.json index de29236261..80a9ff5c08 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_4.json @@ -731,6 +731,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_5.json index 967726dbb3..0f078f7071 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_5.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_6.json index 088c63f519..9fdbcf7a20 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_1_0_6.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_2_0_0.json index 1061135496..f25dd6732f 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t0-version_2_0_0.json @@ -732,6 +732,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_1.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_1.json index e0b75fa484..eaabe74697 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_1.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_1.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_2.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_2.json index 5a78582246..d98d906e46 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_2.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_2.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_3.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_3.json index a54358373c..15333f0052 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_3.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_3.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_4.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_4.json index 5b1bceeabb..6bb8c338db 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_4.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_4.json @@ -824,6 +824,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_5.json index 76ec1bb52c..feb158e4a7 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_5.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_6.json index 81f7377f84..a5eaedbb85 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_1_0_6.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_2_0_0.json index 7d9192a523..532e7e0d17 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn2700-t1-version_2_0_0.json @@ -825,6 +825,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_5.json index 94d64196ab..79bd49a9a4 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_5.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_6.json index e0d47020e5..3b7815cc1a 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_1_0_6.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_2_0_0.json index b69b2cf019..30a4cf52a3 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t0-version_2_0_0.json @@ -705,6 +705,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_5.json index a299500e52..6256051591 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_5.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_6.json index e5f078c959..0961703d95 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_1_0_6.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_2_0_0.json index 318bed85ab..51a485b607 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-c64-t1-version_2_0_0.json @@ -827,6 +827,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_5.json index 3d1650b1fc..85c078c8cb 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_5.json @@ -984,6 +984,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_6.json index 85664d39ef..9db400fb93 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_1_0_6.json @@ -984,6 +984,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_2_0_0.json index fa15acac8d..5ff17607e1 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t0-version_2_0_0.json @@ -985,6 +985,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_5.json index f0576552a1..c7809b711d 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_5.json @@ -1098,6 +1098,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_6.json index 9e08f652fe..2bf0ab7029 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_1_0_6.json @@ -1098,6 +1098,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_2_0_0.json index 9093aa176b..ed36429d82 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d112c8-t1-version_2_0_0.json @@ -1099,6 +1099,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_5.json index 9b331a15d5..7808bc4545 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_5.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_6.json index edefc7e4bf..a765865644 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_1_0_6.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_2_0_0.json index a4477de9ad..cdd5107bd0 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t0-version_2_0_0.json @@ -705,6 +705,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_5.json index 5a0c41c854..875df36443 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_5.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_6.json index 5a0c41c854..875df36443 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_1_0_6.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_2_0_0.json index 4772573a66..78fbbe3598 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d24c52-t1-version_2_0_0.json @@ -827,6 +827,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_5.json index 340de9a2fe..0cf0683206 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_5.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_6.json index 5d439de320..760dc26fa9 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_1_0_6.json @@ -704,6 +704,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_2_0_0.json index 941a6fdb75..ebcd1dfa45 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t0-version_2_0_0.json @@ -705,6 +705,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_5.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_5.json index 97403e343d..5cd8f639a8 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_5.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_5.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_6.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_6.json index 97403e343d..5cd8f639a8 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_6.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_1_0_6.json @@ -826,6 +826,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_2_0_0.json b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_2_0_0.json index 429324cb11..f09750f323 100644 --- a/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_2_0_0.json +++ b/tests/db_migrator_input/config_db/mellanox-sn3800-d28c50-t1-version_2_0_0.json @@ -827,6 +827,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "LeafRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/non-default-config-expected.json b/tests/db_migrator_input/config_db/non-default-config-expected.json index 24ed20582c..a1a7f46300 100644 --- a/tests/db_migrator_input/config_db/non-default-config-expected.json +++ b/tests/db_migrator_input/config_db/non-default-config-expected.json @@ -762,7 +762,8 @@ "bgp_asn": "65100", "buffer_model": "traditional", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "index": "1", diff --git a/tests/db_migrator_input/config_db/non-default-config-input.json b/tests/db_migrator_input/config_db/non-default-config-input.json index b806793fc4..3cdd352729 100644 --- a/tests/db_migrator_input/config_db/non-default-config-input.json +++ b/tests/db_migrator_input/config_db/non-default-config-input.json @@ -737,7 +737,8 @@ "default_pfcwd_status": "disable", "bgp_asn": "65100", "deployment_id": "1", - "type": "ToRRouter" + "type": "ToRRouter", + "synchronous_mode": "enable" }, "PORT|Ethernet0": { "lanes": "0,1,2,3", diff --git a/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-expected.json b/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-expected.json index d9defcffeb..c2ad03ee46 100644 --- a/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-expected.json +++ b/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-expected.json @@ -956,6 +956,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-input.json b/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-input.json index 94e3f8004d..a043137f28 100644 --- a/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-input.json +++ b/tests/db_migrator_input/config_db/non-default-lossless-profile-in-pg-input.json @@ -956,6 +956,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-expected.json b/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-expected.json index ed4b250fa2..35106eb92f 100644 --- a/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-expected.json +++ b/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-expected.json @@ -954,6 +954,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-input.json b/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-input.json index 85d5da7ea8..e6c28d0c1d 100644 --- a/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-input.json +++ b/tests/db_migrator_input/config_db/non-default-lossy-profile-in-pg-input.json @@ -954,6 +954,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-pg-expected.json b/tests/db_migrator_input/config_db/non-default-pg-expected.json index 9f4786aa24..e4eeb100db 100644 --- a/tests/db_migrator_input/config_db/non-default-pg-expected.json +++ b/tests/db_migrator_input/config_db/non-default-pg-expected.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-pg-input.json b/tests/db_migrator_input/config_db/non-default-pg-input.json index 87c8d59a0c..0592451717 100644 --- a/tests/db_migrator_input/config_db/non-default-pg-input.json +++ b/tests/db_migrator_input/config_db/non-default-pg-input.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/non-default-xoff-expected.json b/tests/db_migrator_input/config_db/non-default-xoff-expected.json index e0bbaba1aa..fe737fafab 100644 --- a/tests/db_migrator_input/config_db/non-default-xoff-expected.json +++ b/tests/db_migrator_input/config_db/non-default-xoff-expected.json @@ -990,6 +990,7 @@ "buffer_model": "traditional", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/non-default-xoff-input.json b/tests/db_migrator_input/config_db/non-default-xoff-input.json index aa9d8574ea..032e6112ac 100644 --- a/tests/db_migrator_input/config_db/non-default-xoff-input.json +++ b/tests/db_migrator_input/config_db/non-default-xoff-input.json @@ -989,6 +989,7 @@ "bgp_asn": "65100", "cloudtype": "None", "type": "ToRRouter", + "synchronous_mode": "enable", "deployment_id": "1" }, "PORT|Ethernet0": { diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-expected.json index 92133b41ef..388aaed21e 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-expected.json @@ -199,6 +199,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-input.json index 15a281b0c3..e9fcc70149 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-double-pools-input.json @@ -143,6 +143,7 @@ "hwsku": "ACS-MSN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-expected.json index 8e3e62c75e..640112be47 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-expected.json @@ -195,6 +195,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-input.json index 2167356b6b..ba2fc3dedf 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-dynamic-single-pool-input.json @@ -111,6 +111,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-expected.json index c3d042b935..8bfe8d16a4 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-expected.json @@ -258,6 +258,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-input.json index eb56992a78..e0bc2ec2f8 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-double-pools-input.json @@ -150,6 +150,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-expected.json index f323b42174..99307dcded 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-expected.json @@ -253,6 +253,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-input.json index fec533f951..782dcc7f2d 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-traditional-single-pool-input.json @@ -150,6 +150,7 @@ "hwsku": "Mellanox-SN2700", "default_bgp_status": "up", "type": "ToRRouter", + "synchronous_mode": "enable", "hostname": "sonic", "platform": "x86_64-mlnx_msn2700-r0", "mac": "00:01:02:03:04:00", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-expected.json index 551a6a6752..5ffbdedcd1 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-expected.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-input.json index e8a44eb4ed..254af10b37 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-input.json @@ -1047,6 +1047,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-expected.json b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-expected.json index 551a6a6752..5ffbdedcd1 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-expected.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-expected.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-input.json b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-input.json index 551a6a6752..5ffbdedcd1 100644 --- a/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-input.json +++ b/tests/db_migrator_input/config_db/reclaiming-buffer-warmreboot-same-version-input.json @@ -952,6 +952,7 @@ "hwsku": "ACS-MSN4700", "default_bgp_status": "up", "type": "LeafRouter", + "synchronous_mode": "enable", "region": "None", "hostname": "sonic", "platform": "x86_64-mlnx_msn4700-r0", diff --git a/tests/db_migrator_test.py b/tests/db_migrator_test.py index dc02432319..9d4e4658b0 100644 --- a/tests/db_migrator_test.py +++ b/tests/db_migrator_test.py @@ -309,3 +309,28 @@ def test_global_dscp_to_tc_map_migrator(self): resulting_table = dbmgtr_mlnx.configDB.get_table('PORT_QOS_MAP') assert resulting_table == {} +class TestWarmUpgrade_to_2_0_2(object): + @classmethod + def setup_class(cls): + os.environ['UTILITIES_UNIT_TESTING'] = "2" + + @classmethod + def teardown_class(cls): + os.environ['UTILITIES_UNIT_TESTING'] = "0" + dbconnector.dedicated_dbs['CONFIG_DB'] = None + + def test_warm_upgrade_to_2_0_2(self): + dbconnector.dedicated_dbs['CONFIG_DB'] = os.path.join(mock_db_path, 'config_db', 'cross_branch_upgrade_to_version_2_0_2_input') + import db_migrator + dbmgtr = db_migrator.DBMigrator(None) + dbmgtr.migrate() + dbconnector.dedicated_dbs['CONFIG_DB'] = os.path.join(mock_db_path, 'config_db', 'cross_branch_upgrade_to_version_2_0_2_expected') + expected_db = Db() + + expected_db + new_tables = ["RESTAPI", "TELEMETRY", "CONSOLE_SWITCH"] + for table in new_tables: + resulting_table = dbmgtr.configDB.get_table(table) + expected_table = expected_db.cfgdb.get_table(table) + diff = DeepDiff(resulting_table, expected_table, ignore_order=True) + assert not diff