Skip to content

Commit

Permalink
updated db_migrator switchport mode input and expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUmarAsad committed Feb 24, 2023
1 parent c3fab6d commit da65f41
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
3 changes: 0 additions & 3 deletions scripts/db_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,6 @@ def migrate_config_db_switchport_mode(self):
if pc_key in vlan_member_keys:
pc_value["mode"] = "trunk"
self.configDB.set_entry("PORTCHANNEL", pc_key, pc_value)
else:
pc_value["mode"] = "routed"
self.configDB.set_entry("PORTCHANNEL", pc_key, pc_value)


def migrate_qos_db_fieldval_reference_remove(self, table_list, db, db_num, db_delimeter):
Expand Down
5 changes: 1 addition & 4 deletions tests/db_migrator_input/config_db/switchport-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,7 @@
"min_links": "1",
"mtu": "9100"
},

"PORTCHANNEL_MEMBER|PortChannel0001|Ethernet24": {},
"PORTCHANNEL_MEMBER|PortChannel0002|Ethernet28": {},


"VERSIONS|DATABASE": {
"VERSION": "version_4_0_1"
}
Expand Down
2 changes: 0 additions & 2 deletions tests/db_migrator_input/config_db/switchport-input.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@
"min_links": "1",
"mtu": "9100"
},
"PORTCHANNEL_MEMBER|PortChannel0001|Ethernet24": {},
"PORTCHANNEL_MEMBER|PortChannel0002|Ethernet28": {},

"VERSIONS|DATABASE": {
"VERSION": "version_4_0_0"
Expand Down

0 comments on commit da65f41

Please sign in to comment.