-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202012][DBMigrator] Update db_migrator to support EdgeZoneAggregator…
… Buffer Config for T0s (#2768) * edgezoneagg buffer upgrade * Removed checking function for version changes Removed function to check if a version is greater than another version as it is no longer needed * Update sample-t0-edgezoneagg-config-input.json * Update sample-t0-edgezoneagg-config-output.json * Update sample-t0-edgezoneagg-config-same-cable-input.json * Update sample-t0-edgezoneagg-config-same-cable-output.json * migrated to common migration * Update sample-t0-edgezoneagg-config-output.json * Update sample-t0-edgezoneagg-config-same-cable-output.json
- Loading branch information
1 parent
322a74d
commit d20fc3c
Showing
6 changed files
with
583 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
tests/db_migrator_input/config_db/sample-t0-edgezoneagg-config-input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA01T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA02T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA03T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA04T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet0": { | ||
"name": "ARISTA01T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet4": { | ||
"name": "ARISTA02T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet8": { | ||
"name": "ARISTA03T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet12": { | ||
"name": "ARISTA04T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet16": { | ||
"name": "Servers1", | ||
"port": "eth0" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet20": { | ||
"name": "Servers2", | ||
"port": "eth0" | ||
}, | ||
"PORT|Ethernet0": { | ||
"admin_status": "up", | ||
"alias": "Ethernet1/1", | ||
"description": "", | ||
"index": "1", | ||
"lanes": "77,78", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "Ethernet2/1", | ||
"description": "", | ||
"index": "2", | ||
"lanes": "79,80", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet8": { | ||
"admin_status": "up", | ||
"alias": "Ethernet3/1", | ||
"description": "", | ||
"index": "3", | ||
"lanes": "81,82", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet12": { | ||
"admin_status": "up", | ||
"alias": "Ethernet4/1", | ||
"description": "", | ||
"index": "4", | ||
"lanes": "83,84", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet16": { | ||
"admin_status": "up", | ||
"alias": "Ethernet5/1", | ||
"description": "", | ||
"index": "5", | ||
"lanes": "85,86", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet20": { | ||
"admin_status": "up", | ||
"alias": "Ethernet6/1", | ||
"description": "", | ||
"index": "6", | ||
"lanes": "87,88", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"CABLE_LENGTH|AZURE": { | ||
"Ethernet0": "300m", | ||
"Ethernet4": "300m", | ||
"Ethernet8": "300m", | ||
"Ethernet12": "300m", | ||
"Ethernet16": "5m", | ||
"Ethernet20": "5m" | ||
}, | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_1_0_1" | ||
} | ||
} |
123 changes: 123 additions & 0 deletions
123
tests/db_migrator_input/config_db/sample-t0-edgezoneagg-config-output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA01T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA02T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA03T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR_METADATA|ARISTA04T1": { | ||
"hwsku": "Arista-VM", | ||
"mgmt_addr": "10.64.247.200", | ||
"type": "EdgeZoneAggregator" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet0": { | ||
"name": "ARISTA01T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet4": { | ||
"name": "ARISTA02T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet8": { | ||
"name": "ARISTA03T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet12": { | ||
"name": "ARISTA04T1", | ||
"port": "Ethernet1" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet16": { | ||
"name": "Servers1", | ||
"port": "eth0" | ||
}, | ||
"DEVICE_NEIGHBOR|Ethernet20": { | ||
"name": "Servers2", | ||
"port": "eth0" | ||
}, | ||
"PORT|Ethernet0": { | ||
"admin_status": "up", | ||
"alias": "Ethernet1/1", | ||
"description": "", | ||
"index": "1", | ||
"lanes": "77,78", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet4": { | ||
"admin_status": "up", | ||
"alias": "Ethernet2/1", | ||
"description": "", | ||
"index": "2", | ||
"lanes": "79,80", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet8": { | ||
"admin_status": "up", | ||
"alias": "Ethernet3/1", | ||
"description": "", | ||
"index": "3", | ||
"lanes": "81,82", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet12": { | ||
"admin_status": "up", | ||
"alias": "Ethernet4/1", | ||
"description": "", | ||
"index": "4", | ||
"lanes": "83,84", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet16": { | ||
"admin_status": "up", | ||
"alias": "Ethernet5/1", | ||
"description": "", | ||
"index": "5", | ||
"lanes": "85,86", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"PORT|Ethernet20": { | ||
"admin_status": "up", | ||
"alias": "Ethernet6/1", | ||
"description": "", | ||
"index": "6", | ||
"lanes": "87,88", | ||
"mtu": "9100", | ||
"pfc_asym": "off", | ||
"speed": "100000", | ||
"tpid": "0x8100" | ||
}, | ||
"CABLE_LENGTH|AZURE": { | ||
"Ethernet0": "40m", | ||
"Ethernet4": "40m", | ||
"Ethernet8": "40m", | ||
"Ethernet12": "40m", | ||
"Ethernet16": "5m", | ||
"Ethernet20": "5m" | ||
}, | ||
"VERSIONS|DATABASE": { | ||
"VERSION": "version_2_0_2" | ||
} | ||
} |
Oops, something went wrong.