This commit is contained in:
Rida Hanif 2024-03-25 13:55:33 -07:00 committed by GitHub
commit ce0f661498
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 1369 additions and 1131 deletions

View File

@ -1906,6 +1906,13 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
for port in ports.values(): for port in ports.values():
port['mtu'] = '9100' port['mtu'] = '9100'
port['tpid'] = '0x8100' port['tpid'] = '0x8100'
# mode check for vlan membership in PORT table default mode is routed and for vlan membership it is trunk
for port_name, port in ports.items():
if 'mode' not in port:
if port_name in [key[1] for key in vlan_members.keys()]:
port['mode'] = 'trunk'
else:
port['mode'] = 'routed'
# asymmetric PFC is disabled by default # asymmetric PFC is disabled by default
for port in ports.values(): for port in ports.values():
@ -1977,6 +1984,13 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None, hw
pc['mtu'] = '9100' pc['mtu'] = '9100'
pc['tpid'] = '0x8100' pc['tpid'] = '0x8100'
pc['admin_status'] = 'up' pc['admin_status'] = 'up'
# mode check for vlan membership in portchannel and default mode is routed and mode is trunk when port channel has vlan membership
for pc_name, pc in pcs.items():
if 'mode' not in pc:
if pc_name in [key[1] for key in vlan_members.keys()]:
pc['mode'] = 'trunk'
else:
pc['mode'] = 'routed'
results['PORTCHANNEL'] = pcs results['PORTCHANNEL'] = pcs
results['PORTCHANNEL_MEMBER'] = pc_members results['PORTCHANNEL_MEMBER'] = pc_members

View File

@ -1,16 +1,19 @@
{ {
"interfaces": { "interfaces": {
"Ethernet0": { "Ethernet0": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet4": { "Ethernet4": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet6": { "Ethernet6": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet8": { "Ethernet8": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet9": { "Ethernet9": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -22,7 +25,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet12": { "Ethernet12": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet13": { "Ethernet13": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -31,7 +35,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet16": { "Ethernet16": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet18": { "Ethernet18": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -40,16 +45,19 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet20": { "Ethernet20": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet24": { "Ethernet24": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet26": { "Ethernet26": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet28": { "Ethernet28": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet29": { "Ethernet29": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -61,7 +69,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet32": { "Ethernet32": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet33": { "Ethernet33": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -70,7 +79,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet36": { "Ethernet36": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet38": { "Ethernet38": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -79,16 +89,19 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet40": { "Ethernet40": {
"default_brkout_mode": "1x100G[50G,40G,25G,10G,1G]" "default_brkout_mode": "1x100G[50G,40G,25G,10G,1G]",
"mode" : "routed"
}, },
"Ethernet44": { "Ethernet44": {
"default_brkout_mode": "2x50G[40G,25G,10G,1G]" "default_brkout_mode": "2x50G[40G,25G,10G,1G]",
"mode" : "routed"
}, },
"Ethernet46": { "Ethernet46": {
"default_brkout_mode": "2x50G[40G,25G,10G,1G]" "default_brkout_mode": "2x50G[40G,25G,10G,1G]"
}, },
"Ethernet48": { "Ethernet48": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet49": { "Ethernet49": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -100,7 +113,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet52": { "Ethernet52": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet53": { "Ethernet53": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -109,7 +123,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet56": { "Ethernet56": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet58": { "Ethernet58": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -118,16 +133,19 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet60": { "Ethernet60": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet64": { "Ethernet64": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet66": { "Ethernet66": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet68": { "Ethernet68": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet69": { "Ethernet69": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -139,7 +157,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet72": { "Ethernet72": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet73": { "Ethernet73": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -148,7 +167,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet76": { "Ethernet76": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet78": { "Ethernet78": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -157,16 +177,19 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet80": { "Ethernet80": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet84": { "Ethernet84": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet86": { "Ethernet86": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet88": { "Ethernet88": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet89": { "Ethernet89": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -178,7 +201,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet92": { "Ethernet92": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet93": { "Ethernet93": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -187,7 +211,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet96": { "Ethernet96": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet98": { "Ethernet98": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -196,16 +221,19 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet100": { "Ethernet100": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet104": { "Ethernet104": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet106": { "Ethernet106": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet108": { "Ethernet108": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]",
"mode" : "routed"
}, },
"Ethernet109": { "Ethernet109": {
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
@ -217,7 +245,8 @@
"default_brkout_mode": "4x25G[10G]" "default_brkout_mode": "4x25G[10G]"
}, },
"Ethernet112": { "Ethernet112": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)",
"mode" : "routed"
}, },
"Ethernet113": { "Ethernet113": {
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
@ -226,7 +255,8 @@
"default_brkout_mode": "2x25G(2)+1x50G(2)" "default_brkout_mode": "2x25G(2)+1x50G(2)"
}, },
"Ethernet116": { "Ethernet116": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)",
"mode" : "routed"
}, },
"Ethernet118": { "Ethernet118": {
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
@ -235,22 +265,27 @@
"default_brkout_mode": "1x50G(2)+2x25G(2)" "default_brkout_mode": "1x50G(2)+2x25G(2)"
}, },
"Ethernet120": { "Ethernet120": {
"default_brkout_mode": "1x100G[40G]" "default_brkout_mode": "1x100G[40G]",
"mode" : "routed"
}, },
"Ethernet124": { "Ethernet124": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G",
"mode" : "routed"
}, },
"Ethernet126": { "Ethernet126": {
"default_brkout_mode": "2x50G" "default_brkout_mode": "2x50G"
}, },
"Ethernet128": { "Ethernet128": {
"default_brkout_mode": "1x40G[100G]" "default_brkout_mode": "1x40G[100G]",
"mode" : "routed"
}, },
"Ethernet132": { "Ethernet132": {
"default_brkout_mode": "1x25G[100G,50G,40G,10G]" "default_brkout_mode": "1x25G[100G,50G,40G,10G]",
"mode" : "routed"
}, },
"Ethernet136": { "Ethernet136": {
"default_brkout_mode": "4x10G[25G]" "default_brkout_mode": "4x10G[25G]",
"mode" : "routed"
}, },
"Ethernet137": { "Ethernet137": {
"default_brkout_mode": "4x10G[25G]" "default_brkout_mode": "4x10G[25G]"
@ -262,7 +297,8 @@
"default_brkout_mode": "4x10G[25G]" "default_brkout_mode": "4x10G[25G]"
}, },
"Ethernet140": { "Ethernet140": {
"default_brkout_mode": "2x25G(2)+1x50000(2)" "default_brkout_mode": "2x25G(2)+1x50000(2)",
"mode" : "routed"
}, },
"Ethernet141": { "Ethernet141": {
"default_brkout_mode": "2x25G(2)+1x50000(2)" "default_brkout_mode": "2x25G(2)+1x50000(2)"
@ -271,7 +307,8 @@
"default_brkout_mode": "2x25G(2)+1x50000(2)" "default_brkout_mode": "2x25G(2)+1x50000(2)"
}, },
"Ethernet144": { "Ethernet144": {
"default_brkout_mode": "1x100000[50G,40000,25G,10000]" "default_brkout_mode": "1x100000[50G,40000,25G,10000]",
"mode" : "routed"
} }
} }
} }

View File

@ -7,7 +7,8 @@
"alias": "Eth3/1", "alias": "Eth3/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet9": { "Ethernet9": {
"index": "3", "index": "3",
@ -17,7 +18,8 @@
"alias": "Eth3/2", "alias": "Eth3/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet36": { "Ethernet36": {
"index": "10", "index": "10",
@ -27,7 +29,8 @@
"alias": "Eth10/1", "alias": "Eth10/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet98": { "Ethernet98": {
"index": "25", "index": "25",
@ -37,7 +40,8 @@
"alias": "Eth25/2", "alias": "Eth25/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet0": { "Ethernet0": {
"index": "1", "index": "1",
@ -49,7 +53,8 @@
"alias": "Eth1", "alias": "Eth1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet6": { "Ethernet6": {
"index": "2", "index": "2",
@ -60,7 +65,8 @@
"alias": "Eth2/2", "alias": "Eth2/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet4": { "Ethernet4": {
"index": "2", "index": "2",
@ -71,7 +77,8 @@
"alias": "Eth2/1", "alias": "Eth2/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet109": { "Ethernet109": {
"index": "28", "index": "28",
@ -81,7 +88,8 @@
"alias": "Eth28/2", "alias": "Eth28/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet108": { "Ethernet108": {
"index": "28", "index": "28",
@ -91,7 +99,8 @@
"alias": "Eth28/1", "alias": "Eth28/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet18": { "Ethernet18": {
"index": "5", "index": "5",
@ -101,7 +110,8 @@
"alias": "Eth5/2", "alias": "Eth5/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet100": { "Ethernet100": {
"index": "26", "index": "26",
@ -112,7 +122,8 @@
"alias": "Eth26", "alias": "Eth26",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet34": { "Ethernet34": {
"index": "9", "index": "9",
@ -122,7 +133,8 @@
"alias": "Eth9/3", "alias": "Eth9/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet104": { "Ethernet104": {
"index": "27", "index": "27",
@ -132,7 +144,8 @@
"alias": "Eth27/1", "alias": "Eth27/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet106": { "Ethernet106": {
"index": "27", "index": "27",
@ -142,7 +155,8 @@
"alias": "Eth27/2", "alias": "Eth27/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet94": { "Ethernet94": {
"index": "24", "index": "24",
@ -152,7 +166,8 @@
"alias": "Eth24/3", "alias": "Eth24/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet126": { "Ethernet126": {
"index": "32", "index": "32",
@ -162,7 +177,8 @@
"alias": "Eth32/2", "alias": "Eth32/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet96": { "Ethernet96": {
"index": "25", "index": "25",
@ -172,7 +188,8 @@
"alias": "Eth25/1", "alias": "Eth25/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet124": { "Ethernet124": {
"index": "32", "index": "32",
@ -182,7 +199,8 @@
"alias": "Eth32/1", "alias": "Eth32/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet90": { "Ethernet90": {
"index": "23", "index": "23",
@ -192,7 +210,8 @@
"alias": "Eth23/3", "alias": "Eth23/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet91": { "Ethernet91": {
"index": "23", "index": "23",
@ -202,7 +221,8 @@
"alias": "Eth23/4", "alias": "Eth23/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet92": { "Ethernet92": {
"index": "24", "index": "24",
@ -212,7 +232,8 @@
"alias": "Eth24/1", "alias": "Eth24/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet93": { "Ethernet93": {
"index": "24", "index": "24",
@ -222,7 +243,8 @@
"alias": "Eth24/2", "alias": "Eth24/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet50": { "Ethernet50": {
"index": "13", "index": "13",
@ -232,7 +254,8 @@
"alias": "Eth13/3", "alias": "Eth13/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet51": { "Ethernet51": {
"index": "13", "index": "13",
@ -242,7 +265,8 @@
"alias": "Eth13/4", "alias": "Eth13/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet52": { "Ethernet52": {
"index": "14", "index": "14",
@ -252,7 +276,8 @@
"alias": "Eth14/1", "alias": "Eth14/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet53": { "Ethernet53": {
"index": "14", "index": "14",
@ -262,7 +287,8 @@
"alias": "Eth14/2", "alias": "Eth14/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet54": { "Ethernet54": {
"index": "14", "index": "14",
@ -272,7 +298,8 @@
"alias": "Eth14/3", "alias": "Eth14/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet99": { "Ethernet99": {
"index": "25", "index": "25",
@ -282,7 +309,8 @@
"alias": "Eth25/3", "alias": "Eth25/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet56": { "Ethernet56": {
"index": "15", "index": "15",
@ -292,7 +320,8 @@
"alias": "Eth15/1", "alias": "Eth15/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet113": { "Ethernet113": {
"index": "29", "index": "29",
@ -302,7 +331,8 @@
"alias": "Eth29/2", "alias": "Eth29/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet76": { "Ethernet76": {
"index": "20", "index": "20",
@ -312,7 +342,8 @@
"alias": "Eth20/1", "alias": "Eth20/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet74": { "Ethernet74": {
"index": "19", "index": "19",
@ -322,7 +353,8 @@
"alias": "Eth19/3", "alias": "Eth19/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet39": { "Ethernet39": {
"index": "10", "index": "10",
@ -332,7 +364,8 @@
"alias": "Eth10/3", "alias": "Eth10/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet72": { "Ethernet72": {
"index": "19", "index": "19",
@ -342,7 +375,8 @@
"alias": "Eth19/1", "alias": "Eth19/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet73": { "Ethernet73": {
"index": "19", "index": "19",
@ -352,7 +386,8 @@
"alias": "Eth19/2", "alias": "Eth19/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet70": { "Ethernet70": {
"index": "18", "index": "18",
@ -362,7 +397,8 @@
"alias": "Eth18/3", "alias": "Eth18/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet71": { "Ethernet71": {
"index": "18", "index": "18",
@ -372,7 +408,8 @@
"alias": "Eth18/4", "alias": "Eth18/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet32": { "Ethernet32": {
"index": "9", "index": "9",
@ -382,7 +419,8 @@
"alias": "Eth9/1", "alias": "Eth9/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet33": { "Ethernet33": {
"index": "9", "index": "9",
@ -392,7 +430,8 @@
"alias": "Eth9/2", "alias": "Eth9/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet16": { "Ethernet16": {
"index": "5", "index": "5",
@ -402,7 +441,8 @@
"alias": "Eth5/1", "alias": "Eth5/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet111": { "Ethernet111": {
"index": "28", "index": "28",
@ -412,7 +452,8 @@
"alias": "Eth28/4", "alias": "Eth28/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet10": { "Ethernet10": {
"index": "3", "index": "3",
@ -422,7 +463,8 @@
"alias": "Eth3/3", "alias": "Eth3/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet11": { "Ethernet11": {
"index": "3", "index": "3",
@ -432,7 +474,8 @@
"alias": "Eth3/4", "alias": "Eth3/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet12": { "Ethernet12": {
"index": "4", "index": "4",
@ -442,7 +485,8 @@
"alias": "Eth4/1", "alias": "Eth4/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet13": { "Ethernet13": {
"index": "4", "index": "4",
@ -452,7 +496,8 @@
"alias": "Eth4/2", "alias": "Eth4/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet58": { "Ethernet58": {
"index": "15", "index": "15",
@ -462,7 +507,8 @@
"alias": "Eth15/2", "alias": "Eth15/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet19": { "Ethernet19": {
"index": "5", "index": "5",
@ -472,7 +518,8 @@
"alias": "Eth5/3", "alias": "Eth5/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet59": { "Ethernet59": {
"index": "15", "index": "15",
@ -482,7 +529,8 @@
"alias": "Eth15/3", "alias": "Eth15/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet38": { "Ethernet38": {
"index": "10", "index": "10",
@ -492,7 +540,8 @@
"alias": "Eth10/2", "alias": "Eth10/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet78": { "Ethernet78": {
"index": "20", "index": "20",
@ -502,7 +551,8 @@
"alias": "Eth20/2", "alias": "Eth20/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet68": { "Ethernet68": {
"index": "18", "index": "18",
@ -512,7 +562,8 @@
"alias": "Eth18/1", "alias": "Eth18/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet14": { "Ethernet14": {
"index": "4", "index": "4",
@ -522,7 +573,8 @@
"alias": "Eth4/3", "alias": "Eth4/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet89": { "Ethernet89": {
"index": "23", "index": "23",
@ -532,7 +584,8 @@
"alias": "Eth23/2", "alias": "Eth23/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet88": { "Ethernet88": {
"index": "23", "index": "23",
@ -542,7 +595,8 @@
"alias": "Eth23/1", "alias": "Eth23/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet118": { "Ethernet118": {
"index": "30", "index": "30",
@ -552,7 +606,8 @@
"alias": "Eth30/2", "alias": "Eth30/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet119": { "Ethernet119": {
"index": "30", "index": "30",
@ -562,7 +617,8 @@
"alias": "Eth30/3", "alias": "Eth30/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet116": { "Ethernet116": {
"index": "30", "index": "30",
@ -572,7 +628,8 @@
"alias": "Eth30/1", "alias": "Eth30/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet114": { "Ethernet114": {
"index": "29", "index": "29",
@ -582,7 +639,8 @@
"alias": "Eth29/3", "alias": "Eth29/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet80": { "Ethernet80": {
"index": "21", "index": "21",
@ -593,7 +651,8 @@
"alias": "Eth21", "alias": "Eth21",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet112": { "Ethernet112": {
"index": "29", "index": "29",
@ -603,7 +662,8 @@
"alias": "Eth29/1", "alias": "Eth29/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet86": { "Ethernet86": {
"index": "22", "index": "22",
@ -613,7 +673,8 @@
"alias": "Eth22/2", "alias": "Eth22/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet110": { "Ethernet110": {
"index": "28", "index": "28",
@ -623,7 +684,8 @@
"alias": "Eth28/3", "alias": "Eth28/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet84": { "Ethernet84": {
"index": "22", "index": "22",
@ -633,7 +695,8 @@
"alias": "Eth22/1", "alias": "Eth22/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet31": { "Ethernet31": {
"index": "8", "index": "8",
@ -643,7 +706,8 @@
"alias": "Eth8/4", "alias": "Eth8/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet49": { "Ethernet49": {
"index": "13", "index": "13",
@ -653,7 +717,8 @@
"alias": "Eth13/2", "alias": "Eth13/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet48": { "Ethernet48": {
"index": "13", "index": "13",
@ -663,7 +728,8 @@
"alias": "Eth13/1", "alias": "Eth13/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet46": { "Ethernet46": {
"index": "12", "index": "12",
@ -673,7 +739,8 @@
"alias": "Eth12/2", "alias": "Eth12/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet30": { "Ethernet30": {
"index": "8", "index": "8",
@ -683,7 +750,8 @@
"alias": "Eth8/3", "alias": "Eth8/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet29": { "Ethernet29": {
"index": "8", "index": "8",
@ -693,7 +761,8 @@
"alias": "Eth8/2", "alias": "Eth8/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet40": { "Ethernet40": {
"index": "11", "index": "11",
@ -704,7 +773,8 @@
"alias": "Eth11", "alias": "Eth11",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet120": { "Ethernet120": {
"index": "31", "index": "31",
@ -715,7 +785,8 @@
"alias": "Eth31", "alias": "Eth31",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet28": { "Ethernet28": {
"index": "8", "index": "8",
@ -725,7 +796,8 @@
"alias": "Eth8/1", "alias": "Eth8/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet66": { "Ethernet66": {
"index": "17", "index": "17",
@ -735,7 +807,8 @@
"alias": "Eth17/2", "alias": "Eth17/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet60": { "Ethernet60": {
"index": "16", "index": "16",
@ -746,7 +819,8 @@
"alias": "Eth16", "alias": "Eth16",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet64": { "Ethernet64": {
"index": "17", "index": "17",
@ -756,7 +830,8 @@
"alias": "Eth17/1", "alias": "Eth17/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet44": { "Ethernet44": {
"index": "12", "index": "12",
@ -766,7 +841,8 @@
"alias": "Eth12/1", "alias": "Eth12/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet20": { "Ethernet20": {
"index": "6", "index": "6",
@ -778,7 +854,8 @@
"alias": "Eth6", "alias": "Eth6",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet79": { "Ethernet79": {
"index": "20", "index": "20",
@ -788,7 +865,8 @@
"alias": "Eth20/3", "alias": "Eth20/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet69": { "Ethernet69": {
"index": "18", "index": "18",
@ -798,7 +876,8 @@
"alias": "Eth18/2", "alias": "Eth18/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000", "speed": "25000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet24": { "Ethernet24": {
"index": "7", "index": "7",
@ -808,7 +887,8 @@
"alias": "Eth7/1", "alias": "Eth7/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet26": { "Ethernet26": {
"index": "7", "index": "7",
@ -818,7 +898,8 @@
"alias": "Eth7/2", "alias": "Eth7/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000", "speed": "50000",
"tpid": "0x8100" "tpid": "0x8100",
"mode": "routed"
}, },
"Ethernet128": { "Ethernet128": {
"index": "33", "index": "33",
@ -828,7 +909,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth33", "alias": "Eth33",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "40000" "speed": "40000",
"mode": "routed"
}, },
"Ethernet132": { "Ethernet132": {
"index": "34", "index": "34",
@ -838,7 +920,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth34", "alias": "Eth34",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000" "speed": "25000",
"mode": "routed"
}, },
"Ethernet136": { "Ethernet136": {
"index": "35", "index": "35",
@ -848,7 +931,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth35/1", "alias": "Eth35/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "10000" "speed": "10000",
"mode": "routed"
}, },
"Ethernet137": { "Ethernet137": {
"index": "35", "index": "35",
@ -858,7 +942,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth35/2", "alias": "Eth35/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "10000" "speed": "10000",
"mode": "routed"
}, },
"Ethernet138": { "Ethernet138": {
"index": "35", "index": "35",
@ -868,7 +953,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth35/3", "alias": "Eth35/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "10000" "speed": "10000",
"mode": "routed"
}, },
"Ethernet139": { "Ethernet139": {
"index": "35", "index": "35",
@ -878,7 +964,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth35/4", "alias": "Eth35/4",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "10000" "speed": "10000",
"mode": "routed"
}, },
"Ethernet140": { "Ethernet140": {
"index": "36", "index": "36",
@ -888,7 +975,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth36/1", "alias": "Eth36/1",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000" "speed": "25000",
"mode": "routed"
}, },
"Ethernet141": { "Ethernet141": {
"index": "36", "index": "36",
@ -898,7 +986,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth36/2", "alias": "Eth36/2",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "25000" "speed": "25000",
"mode": "routed"
}, },
"Ethernet142": { "Ethernet142": {
"index": "36", "index": "36",
@ -908,7 +997,8 @@
"mtu": "9100", "mtu": "9100",
"alias": "Eth36/3", "alias": "Eth36/3",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "50000" "speed": "50000",
"mode": "routed"
}, },
"Ethernet144": { "Ethernet144": {
"index": "37", "index": "37",
@ -919,6 +1009,7 @@
"alias": "Eth37", "alias": "Eth37",
"pfc_asym": "off", "pfc_asym": "off",
"speed": "100000", "speed": "100000",
"fec": "rs" "fec": "rs",
"mode": "routed"
} }
} }

View File

@ -4,162 +4,194 @@
"Ethernet8": { "Ethernet8": {
"alias": "fortyGigE0/8", "alias": "fortyGigE0/8",
"lanes": "37,38,39,40", "lanes": "37,38,39,40",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet0": { "Ethernet0": {
"alias": "fortyGigE0/0", "alias": "fortyGigE0/0",
"lanes": "29,30,31,32", "lanes": "29,30,31,32",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet4": { "Ethernet4": {
"alias": "fortyGigE0/4", "alias": "fortyGigE0/4",
"lanes": "25,26,27,28", "lanes": "25,26,27,28",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet108": { "Ethernet108": {
"alias": "fortyGigE0/108", "alias": "fortyGigE0/108",
"lanes": "81,82,83,84", "lanes": "81,82,83,84",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet100": { "Ethernet100": {
"alias": "fortyGigE0/100", "alias": "fortyGigE0/100",
"lanes": "125,126,127,128", "lanes": "125,126,127,128",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet104": { "Ethernet104": {
"alias": "fortyGigE0/104", "alias": "fortyGigE0/104",
"lanes": "85,86,87,88", "lanes": "85,86,87,88",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet68": { "Ethernet68": {
"alias": "fortyGigE0/68", "alias": "fortyGigE0/68",
"lanes": "69,70,71,72", "lanes": "69,70,71,72",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet96": { "Ethernet96": {
"alias": "fortyGigE0/96", "alias": "fortyGigE0/96",
"lanes": "121,122,123,124", "lanes": "121,122,123,124",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet124": { "Ethernet124": {
"alias": "fortyGigE0/124", "alias": "fortyGigE0/124",
"lanes": "101,102,103,104", "lanes": "101,102,103,104",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet92": { "Ethernet92": {
"alias": "fortyGigE0/92", "alias": "fortyGigE0/92",
"lanes": "113,114,115,116", "lanes": "113,114,115,116",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet120": { "Ethernet120": {
"alias": "fortyGigE0/120", "alias": "fortyGigE0/120",
"lanes": "97,98,99,100", "lanes": "97,98,99,100",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet52": { "Ethernet52": {
"alias": "fortyGigE0/52", "alias": "fortyGigE0/52",
"lanes": "53,54,55,56", "lanes": "53,54,55,56",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet56": { "Ethernet56": {
"alias": "fortyGigE0/56", "alias": "fortyGigE0/56",
"lanes": "61,62,63,64", "lanes": "61,62,63,64",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet76": { "Ethernet76": {
"alias": "fortyGigE0/76", "alias": "fortyGigE0/76",
"lanes": "73,74,75,76", "lanes": "73,74,75,76",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet72": { "Ethernet72": {
"alias": "fortyGigE0/72", "alias": "fortyGigE0/72",
"lanes": "77,78,79,80", "lanes": "77,78,79,80",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet64": { "Ethernet64": {
"alias": "fortyGigE0/64", "alias": "fortyGigE0/64",
"lanes": "65,66,67,68", "lanes": "65,66,67,68",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet32": { "Ethernet32": {
"alias": "fortyGigE0/32", "alias": "fortyGigE0/32",
"lanes": "9,10,11,12", "lanes": "9,10,11,12",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet16": { "Ethernet16": {
"alias": "fortyGigE0/16", "alias": "fortyGigE0/16",
"lanes": "41,42,43,44", "lanes": "41,42,43,44",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet36": { "Ethernet36": {
"alias": "fortyGigE0/36", "alias": "fortyGigE0/36",
"lanes": "13,14,15,16", "lanes": "13,14,15,16",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet12": { "Ethernet12": {
"alias": "fortyGigE0/12", "alias": "fortyGigE0/12",
"lanes": "33,34,35,36", "lanes": "33,34,35,36",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet88": { "Ethernet88": {
"alias": "fortyGigE0/88", "alias": "fortyGigE0/88",
"lanes": "117,118,119,120", "lanes": "117,118,119,120",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet116": { "Ethernet116": {
"alias": "fortyGigE0/116", "alias": "fortyGigE0/116",
"lanes": "93,94,95,96", "lanes": "93,94,95,96",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet80": { "Ethernet80": {
"alias": "fortyGigE0/80", "alias": "fortyGigE0/80",
"lanes": "105,106,107,108", "lanes": "105,106,107,108",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet112": { "Ethernet112": {
"alias": "fortyGigE0/112", "alias": "fortyGigE0/112",
"lanes": "89,90,91,92", "lanes": "89,90,91,92",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet84": { "Ethernet84": {
"alias": "fortyGigE0/84", "alias": "fortyGigE0/84",
"lanes": "109,110,111,112", "lanes": "109,110,111,112",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet48": { "Ethernet48": {
"alias": "fortyGigE0/48", "alias": "fortyGigE0/48",
"lanes": "49,50,51,52", "lanes": "49,50,51,52",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet44": { "Ethernet44": {
"alias": "fortyGigE0/44", "alias": "fortyGigE0/44",
"lanes": "17,18,19,20", "lanes": "17,18,19,20",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet40": { "Ethernet40": {
"alias": "fortyGigE0/40", "alias": "fortyGigE0/40",
"lanes": "21,22,23,24", "lanes": "21,22,23,24",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet28": { "Ethernet28": {
"alias": "fortyGigE0/28", "alias": "fortyGigE0/28",
"lanes": "1,2,3,4", "lanes": "1,2,3,4",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet60": { "Ethernet60": {
"alias": "fortyGigE0/60", "alias": "fortyGigE0/60",
"lanes": "57,58,59,60", "lanes": "57,58,59,60",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet20": { "Ethernet20": {
"alias": "fortyGigE0/20", "alias": "fortyGigE0/20",
"lanes": "45,46,47,48", "lanes": "45,46,47,48",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet24": { "Ethernet24": {
"alias": "fortyGigE0/24", "alias": "fortyGigE0/24",
"lanes": "5,6,7,8", "lanes": "5,6,7,8",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
} }
}, },
"VLAN": { "VLAN": {

View File

@ -4,162 +4,194 @@
"Ethernet0": { "Ethernet0": {
"alias": "fortyGigE0/0", "alias": "fortyGigE0/0",
"lanes": "29,30,31,32", "lanes": "29,30,31,32",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet4": { "Ethernet4": {
"alias": "fortyGigE0/4", "alias": "fortyGigE0/4",
"lanes": "25,26,27,28", "lanes": "25,26,27,28",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet8": { "Ethernet8": {
"alias": "fortyGigE0/8", "alias": "fortyGigE0/8",
"lanes": "37,38,39,40", "lanes": "37,38,39,40",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet12": { "Ethernet12": {
"alias": "fortyGigE0/12", "alias": "fortyGigE0/12",
"lanes": "33,34,35,36", "lanes": "33,34,35,36",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet16": { "Ethernet16": {
"alias": "fortyGigE0/16", "alias": "fortyGigE0/16",
"lanes": "41,42,43,44", "lanes": "41,42,43,44",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet20": { "Ethernet20": {
"alias": "fortyGigE0/20", "alias": "fortyGigE0/20",
"lanes": "45,46,47,48", "lanes": "45,46,47,48",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet24": { "Ethernet24": {
"alias": "fortyGigE0/24", "alias": "fortyGigE0/24",
"lanes": "5,6,7,8", "lanes": "5,6,7,8",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet28": { "Ethernet28": {
"alias": "fortyGigE0/28", "alias": "fortyGigE0/28",
"lanes": "1,2,3,4", "lanes": "1,2,3,4",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet32": { "Ethernet32": {
"alias": "fortyGigE0/32", "alias": "fortyGigE0/32",
"lanes": "9,10,11,12", "lanes": "9,10,11,12",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet36": { "Ethernet36": {
"alias": "fortyGigE0/36", "alias": "fortyGigE0/36",
"lanes": "13,14,15,16", "lanes": "13,14,15,16",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet40": { "Ethernet40": {
"alias": "fortyGigE0/40", "alias": "fortyGigE0/40",
"lanes": "21,22,23,24", "lanes": "21,22,23,24",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet44": { "Ethernet44": {
"alias": "fortyGigE0/44", "alias": "fortyGigE0/44",
"lanes": "17,18,19,20", "lanes": "17,18,19,20",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet48": { "Ethernet48": {
"alias": "fortyGigE0/48", "alias": "fortyGigE0/48",
"lanes": "49,50,51,52", "lanes": "49,50,51,52",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet52": { "Ethernet52": {
"alias": "fortyGigE0/52", "alias": "fortyGigE0/52",
"lanes": "53,54,55,56", "lanes": "53,54,55,56",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet56": { "Ethernet56": {
"alias": "fortyGigE0/56", "alias": "fortyGigE0/56",
"lanes": "61,62,63,64", "lanes": "61,62,63,64",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet60": { "Ethernet60": {
"alias": "fortyGigE0/60", "alias": "fortyGigE0/60",
"lanes": "57,58,59,60", "lanes": "57,58,59,60",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet64": { "Ethernet64": {
"alias": "fortyGigE0/64", "alias": "fortyGigE0/64",
"lanes": "65,66,67,68", "lanes": "65,66,67,68",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet68": { "Ethernet68": {
"alias": "fortyGigE0/68", "alias": "fortyGigE0/68",
"lanes": "69,70,71,72", "lanes": "69,70,71,72",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet72": { "Ethernet72": {
"alias": "fortyGigE0/72", "alias": "fortyGigE0/72",
"lanes": "77,78,79,80", "lanes": "77,78,79,80",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet76": { "Ethernet76": {
"alias": "fortyGigE0/76", "alias": "fortyGigE0/76",
"lanes": "73,74,75,76", "lanes": "73,74,75,76",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet80": { "Ethernet80": {
"alias": "fortyGigE0/80", "alias": "fortyGigE0/80",
"lanes": "105,106,107,108", "lanes": "105,106,107,108",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet84": { "Ethernet84": {
"alias": "fortyGigE0/84", "alias": "fortyGigE0/84",
"lanes": "109,110,111,112", "lanes": "109,110,111,112",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet88": { "Ethernet88": {
"alias": "fortyGigE0/88", "alias": "fortyGigE0/88",
"lanes": "117,118,119,120", "lanes": "117,118,119,120",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet92": { "Ethernet92": {
"alias": "fortyGigE0/92", "alias": "fortyGigE0/92",
"lanes": "113,114,115,116", "lanes": "113,114,115,116",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet96": { "Ethernet96": {
"alias": "fortyGigE0/96", "alias": "fortyGigE0/96",
"lanes": "121,122,123,124", "lanes": "121,122,123,124",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet100": { "Ethernet100": {
"alias": "fortyGigE0/100", "alias": "fortyGigE0/100",
"lanes": "125,126,127,128", "lanes": "125,126,127,128",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet104": { "Ethernet104": {
"alias": "fortyGigE0/104", "alias": "fortyGigE0/104",
"lanes": "85,86,87,88", "lanes": "85,86,87,88",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet108": { "Ethernet108": {
"alias": "fortyGigE0/108", "alias": "fortyGigE0/108",
"lanes": "81,82,83,84", "lanes": "81,82,83,84",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet112": { "Ethernet112": {
"alias": "fortyGigE0/112", "alias": "fortyGigE0/112",
"lanes": "89,90,91,92", "lanes": "89,90,91,92",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet116": { "Ethernet116": {
"alias": "fortyGigE0/116", "alias": "fortyGigE0/116",
"lanes": "93,94,95,96", "lanes": "93,94,95,96",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet120": { "Ethernet120": {
"alias": "fortyGigE0/120", "alias": "fortyGigE0/120",
"lanes": "97,98,99,100", "lanes": "97,98,99,100",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
}, },
"Ethernet124": { "Ethernet124": {
"alias": "fortyGigE0/124", "alias": "fortyGigE0/124",
"lanes": "101,102,103,104", "lanes": "101,102,103,104",
"admin_status": "up" "admin_status": "up",
"mode": "trunk"
} }
}, },
"VLAN": { "VLAN": {

View File

@ -15,6 +15,7 @@
"Ethernet0": { "Ethernet0": {
"index": "1,1,1,1", "index": "1,1,1,1",
"lanes": "0,1,2,3", "lanes": "0,1,2,3",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth1"], "1x100G[40G]": ["Eth1"],
"2x50G": ["Eth1/1", "Eth1/2"], "2x50G": ["Eth1/1", "Eth1/2"],
@ -26,6 +27,7 @@
"Ethernet4": { "Ethernet4": {
"index": "2,2,2,2", "index": "2,2,2,2",
"lanes": "4,5,6,7", "lanes": "4,5,6,7",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth2"], "1x100G[40G]": ["Eth2"],
"2x50G": ["Eth2/1", "Eth2/2"], "2x50G": ["Eth2/1", "Eth2/2"],
@ -35,6 +37,7 @@
"Ethernet8": { "Ethernet8": {
"index": "3,3,3,3", "index": "3,3,3,3",
"lanes": "8,9,10,11", "lanes": "8,9,10,11",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth3"], "1x100G[40G]": ["Eth3"],
"2x50G": ["Eth3/1", "Eth3/2"], "2x50G": ["Eth3/1", "Eth3/2"],
@ -46,6 +49,7 @@
"Ethernet12": { "Ethernet12": {
"index": "4,4,4,4", "index": "4,4,4,4",
"lanes": "12,13,14,15", "lanes": "12,13,14,15",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth4"], "1x100G[40G]": ["Eth4"],
"2x50G": ["Eth4/1", "Eth4/2"], "2x50G": ["Eth4/1", "Eth4/2"],
@ -57,6 +61,7 @@
"Ethernet16": { "Ethernet16": {
"index": "5,5,5,5", "index": "5,5,5,5",
"lanes": "16,17,18,19", "lanes": "16,17,18,19",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth5"], "1x100G[40G]": ["Eth5"],
"2x50G": ["Eth5/1", "Eth5/2"], "2x50G": ["Eth5/1", "Eth5/2"],
@ -68,6 +73,7 @@
"Ethernet20": { "Ethernet20": {
"index": "6,6,6,6", "index": "6,6,6,6",
"lanes": "20,21,22,23", "lanes": "20,21,22,23",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth6"], "1x100G[40G]": ["Eth6"],
"2x50G": ["Eth6/1", "Eth6/2"], "2x50G": ["Eth6/1", "Eth6/2"],
@ -79,6 +85,7 @@
"Ethernet24": { "Ethernet24": {
"index": "7,7,7,7", "index": "7,7,7,7",
"lanes": "24,25,26,27", "lanes": "24,25,26,27",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth7"], "1x100G[40G]": ["Eth7"],
"2x50G": ["Eth7/1", "Eth7/2"], "2x50G": ["Eth7/1", "Eth7/2"],
@ -90,6 +97,7 @@
"Ethernet28": { "Ethernet28": {
"index": "8,8,8,8", "index": "8,8,8,8",
"lanes": "28,29,30,31", "lanes": "28,29,30,31",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth8"], "1x100G[40G]": ["Eth8"],
"2x50G": ["Eth8/1", "Eth8/2"], "2x50G": ["Eth8/1", "Eth8/2"],
@ -101,6 +109,7 @@
"Ethernet32": { "Ethernet32": {
"index": "9,9,9,9", "index": "9,9,9,9",
"lanes": "32,33,34,35", "lanes": "32,33,34,35",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth9"], "1x100G[40G]": ["Eth9"],
"2x50G": ["Eth9/1", "Eth9/2"], "2x50G": ["Eth9/1", "Eth9/2"],
@ -112,6 +121,7 @@
"Ethernet36": { "Ethernet36": {
"index": "10,10,10,10", "index": "10,10,10,10",
"lanes": "36,37,38,39", "lanes": "36,37,38,39",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth10"], "1x100G[40G]": ["Eth10"],
"2x50G": ["Eth10/1", "Eth10/2"], "2x50G": ["Eth10/1", "Eth10/2"],
@ -123,6 +133,7 @@
"Ethernet40": { "Ethernet40": {
"index": "11,11,11,11", "index": "11,11,11,11",
"lanes": "40,41,42,43", "lanes": "40,41,42,43",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[50G,40G,25G,10G,1G]": ["Eth11"], "1x100G[50G,40G,25G,10G,1G]": ["Eth11"],
"2x50G[40G,25G,10G,1G]": ["Eth11/1", "Eth11/2"], "2x50G[40G,25G,10G,1G]": ["Eth11/1", "Eth11/2"],
@ -134,6 +145,7 @@
"Ethernet44": { "Ethernet44": {
"index": "12,12,12,12", "index": "12,12,12,12",
"lanes": "44,45,46,47", "lanes": "44,45,46,47",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[50G,40G,25G,10G,1G]": ["Eth12"], "1x100G[50G,40G,25G,10G,1G]": ["Eth12"],
"2x50G[40G,25G,10G,1G]": ["Eth12/1", "Eth12/2"], "2x50G[40G,25G,10G,1G]": ["Eth12/1", "Eth12/2"],
@ -145,6 +157,7 @@
"Ethernet48": { "Ethernet48": {
"index": "13,13,13,13", "index": "13,13,13,13",
"lanes": "48,49,50,51", "lanes": "48,49,50,51",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth13"], "1x100G[40G]": ["Eth13"],
"2x50G": ["Eth13/1", "Eth13/2"], "2x50G": ["Eth13/1", "Eth13/2"],
@ -156,6 +169,7 @@
"Ethernet52": { "Ethernet52": {
"index": "14,14,14,14", "index": "14,14,14,14",
"lanes": "52,53,54,55", "lanes": "52,53,54,55",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth14"], "1x100G[40G]": ["Eth14"],
"2x50G": ["Eth14/1", "Eth14/2"], "2x50G": ["Eth14/1", "Eth14/2"],
@ -167,6 +181,7 @@
"Ethernet56": { "Ethernet56": {
"index": "15,15,15,15", "index": "15,15,15,15",
"lanes": "56,57,58,59", "lanes": "56,57,58,59",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth15"], "1x100G[40G]": ["Eth15"],
"2x50G": ["Eth15/1", "Eth15/2"], "2x50G": ["Eth15/1", "Eth15/2"],
@ -178,6 +193,7 @@
"Ethernet60": { "Ethernet60": {
"index": "16,16,16,16", "index": "16,16,16,16",
"lanes": "60,61,62,63", "lanes": "60,61,62,63",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth16"], "1x100G[40G]": ["Eth16"],
"2x50G": ["Eth16/1", "Eth16/2"], "2x50G": ["Eth16/1", "Eth16/2"],
@ -189,6 +205,7 @@
"Ethernet64": { "Ethernet64": {
"index": "17,17,17,17", "index": "17,17,17,17",
"lanes": "64,65,66,67", "lanes": "64,65,66,67",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth17"], "1x100G[40G]": ["Eth17"],
"2x50G": ["Eth17/1", "Eth17/2"], "2x50G": ["Eth17/1", "Eth17/2"],
@ -200,6 +217,7 @@
"Ethernet68": { "Ethernet68": {
"index": "18,18,18,18", "index": "18,18,18,18",
"lanes": "68,69,70,71", "lanes": "68,69,70,71",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth18"], "1x100G[40G]": ["Eth18"],
"2x50G": ["Eth18/1", "Eth18/2"], "2x50G": ["Eth18/1", "Eth18/2"],
@ -211,6 +229,7 @@
"Ethernet72": { "Ethernet72": {
"index": "19,19,19,19", "index": "19,19,19,19",
"lanes": "72,73,74,75", "lanes": "72,73,74,75",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth19"], "1x100G[40G]": ["Eth19"],
"2x50G": ["Eth19/1", "Eth19/2"], "2x50G": ["Eth19/1", "Eth19/2"],
@ -222,6 +241,7 @@
"Ethernet76": { "Ethernet76": {
"index": "20,20,20,20", "index": "20,20,20,20",
"lanes": "76,77,78,79", "lanes": "76,77,78,79",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth20"], "1x100G[40G]": ["Eth20"],
"2x50G": ["Eth20/1", "Eth20/2"], "2x50G": ["Eth20/1", "Eth20/2"],
@ -233,6 +253,7 @@
"Ethernet80": { "Ethernet80": {
"index": "21,21,21,21", "index": "21,21,21,21",
"lanes": "80,81,82,83", "lanes": "80,81,82,83",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth21"], "1x100G[40G]": ["Eth21"],
"2x50G": ["Eth21/1", "Eth21/2"], "2x50G": ["Eth21/1", "Eth21/2"],
@ -244,6 +265,7 @@
"Ethernet84": { "Ethernet84": {
"index": "22,22,22,22", "index": "22,22,22,22",
"lanes": "84,85,86,87", "lanes": "84,85,86,87",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth22"], "1x100G[40G]": ["Eth22"],
"2x50G": ["Eth22/1", "Eth22/2"], "2x50G": ["Eth22/1", "Eth22/2"],
@ -255,6 +277,7 @@
"Ethernet88": { "Ethernet88": {
"index": "23,23,23,23", "index": "23,23,23,23",
"lanes": "88,89,90,91", "lanes": "88,89,90,91",
"mode" : "routed",
"alias_at_lanes": "Eth23/1, Eth23/2, Eth23/3, Eth23/4", "alias_at_lanes": "Eth23/1, Eth23/2, Eth23/3, Eth23/4",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth23"], "1x100G[40G]": ["Eth23"],
@ -267,6 +290,7 @@
"Ethernet92": { "Ethernet92": {
"index": "24,24,24,24", "index": "24,24,24,24",
"lanes": "92,93,94,95", "lanes": "92,93,94,95",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth24"], "1x100G[40G]": ["Eth24"],
"2x50G": ["Eth24/1", "Eth24/2"], "2x50G": ["Eth24/1", "Eth24/2"],
@ -278,6 +302,7 @@
"Ethernet96": { "Ethernet96": {
"index": "25,25,25,25", "index": "25,25,25,25",
"lanes": "96,97,98,99", "lanes": "96,97,98,99",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth25"], "1x100G[40G]": ["Eth25"],
"2x50G": ["Eth25/1", "Eth25/2"], "2x50G": ["Eth25/1", "Eth25/2"],
@ -289,6 +314,7 @@
"Ethernet100": { "Ethernet100": {
"index": "26,26,26,26", "index": "26,26,26,26",
"lanes": "100,101,102,103", "lanes": "100,101,102,103",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth26"], "1x100G[40G]": ["Eth26"],
"2x50G": ["Eth26/1", "Eth26/2"], "2x50G": ["Eth26/1", "Eth26/2"],
@ -300,6 +326,7 @@
"Ethernet104": { "Ethernet104": {
"index": "27,27,27,27", "index": "27,27,27,27",
"lanes": "104,105,106,107", "lanes": "104,105,106,107",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth27"], "1x100G[40G]": ["Eth27"],
"2x50G": ["Eth27/1", "Eth27/2"], "2x50G": ["Eth27/1", "Eth27/2"],
@ -311,6 +338,7 @@
"Ethernet108": { "Ethernet108": {
"index": "28,28,28,28", "index": "28,28,28,28",
"lanes": "108,109,110,111", "lanes": "108,109,110,111",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth28"], "1x100G[40G]": ["Eth28"],
"2x50G": ["Eth28/1", "Eth28/2"], "2x50G": ["Eth28/1", "Eth28/2"],
@ -322,6 +350,7 @@
"Ethernet112": { "Ethernet112": {
"index": "29,29,29,29", "index": "29,29,29,29",
"lanes": "112,113,114,115", "lanes": "112,113,114,115",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth29"], "1x100G[40G]": ["Eth29"],
"2x50G": ["Eth29/1", "Eth29/2"], "2x50G": ["Eth29/1", "Eth29/2"],
@ -333,6 +362,7 @@
"Ethernet116": { "Ethernet116": {
"index": "30,30,30,30", "index": "30,30,30,30",
"lanes": "116,117,118,119", "lanes": "116,117,118,119",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth30"], "1x100G[40G]": ["Eth30"],
"2x50G": ["Eth30/1", "Eth30/2"], "2x50G": ["Eth30/1", "Eth30/2"],
@ -344,6 +374,7 @@
"Ethernet120": { "Ethernet120": {
"index": "31,31,31,31", "index": "31,31,31,31",
"lanes": "120,121,122,123", "lanes": "120,121,122,123",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth31"], "1x100G[40G]": ["Eth31"],
"2x50G": ["Eth31/1", "Eth31/2"], "2x50G": ["Eth31/1", "Eth31/2"],
@ -355,6 +386,7 @@
"Ethernet124": { "Ethernet124": {
"index": "32,32,32,32", "index": "32,32,32,32",
"lanes": "124,125,126,127", "lanes": "124,125,126,127",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth32"], "1x100G[40G]": ["Eth32"],
"2x50G": ["Eth32/1", "Eth32/2"], "2x50G": ["Eth32/1", "Eth32/2"],
@ -366,6 +398,7 @@
"Ethernet128": { "Ethernet128": {
"index": "33,33,33,33", "index": "33,33,33,33",
"lanes": "128,129,130,131", "lanes": "128,129,130,131",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[40G]": ["Eth33"], "1x100G[40G]": ["Eth33"],
"2x50G": ["Eth33/1", "Eth33/2"], "2x50G": ["Eth33/1", "Eth33/2"],
@ -377,6 +410,7 @@
"Ethernet132": { "Ethernet132": {
"index": "34,34,34,34", "index": "34,34,34,34",
"lanes": "132,133,134,135", "lanes": "132,133,134,135",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[50G,40G,25G,10G]": ["Eth34"], "1x100G[50G,40G,25G,10G]": ["Eth34"],
"2x50G": ["Eth34/1", "Eth34/2"], "2x50G": ["Eth34/1", "Eth34/2"],
@ -388,6 +422,7 @@
"Ethernet136": { "Ethernet136": {
"index": "35,35,35,35", "index": "35,35,35,35",
"lanes": "136,137,138,139", "lanes": "136,137,138,139",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[50G,40G,25G,10G]": ["Eth35"], "1x100G[50G,40G,25G,10G]": ["Eth35"],
"2x50G": ["Eth35/1", "Eth35/2"], "2x50G": ["Eth35/1", "Eth35/2"],
@ -399,6 +434,7 @@
"Ethernet140": { "Ethernet140": {
"index": "36,36,36,36", "index": "36,36,36,36",
"lanes": "140,141,142,143", "lanes": "140,141,142,143",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100000[50G,40000,25000,10G]": ["Eth36"], "1x100000[50G,40000,25000,10G]": ["Eth36"],
"2x50G": ["Eth36/1", "Eth36/2"], "2x50G": ["Eth36/1", "Eth36/2"],
@ -410,6 +446,7 @@
"Ethernet144": { "Ethernet144": {
"index": "37,37,37,37", "index": "37,37,37,37",
"lanes": "144,145,146,147", "lanes": "144,145,146,147",
"mode" : "routed",
"breakout_modes": { "breakout_modes": {
"1x100G[50G,40G,25G,10G]": ["Eth37"], "1x100G[50G,40G,25G,10G]": ["Eth37"],
"2x50G": ["Eth37/1", "Eth37/2"], "2x50G": ["Eth37/1", "Eth37/2"],

View File

@ -1,33 +1,33 @@
# name lanes alias autoneg # name lanes alias autoneg mode
Ethernet0 29,30,31,32 fortyGigE0/0 off Ethernet0 29,30,31,32 fortyGigE0/0 off routed
Ethernet4 25,26,27,28 fortyGigE0/4 off Ethernet4 25,26,27,28 fortyGigE0/4 off trunk
Ethernet8 37,38,39,40 fortyGigE0/8 off Ethernet8 37,38,39,40 fortyGigE0/8 off trunk
Ethernet12 33,34,35,36 fortyGigE0/12 off Ethernet12 33,34,35,36 fortyGigE0/12 off trunk
Ethernet16 41,42,43,44 fortyGigE0/16 off Ethernet16 41,42,43,44 fortyGigE0/16 off trunk
Ethernet20 45,46,47,48 fortyGigE0/20 off Ethernet20 45,46,47,48 fortyGigE0/20 off trunk
Ethernet24 5,6,7,8 fortyGigE0/24 off Ethernet24 5,6,7,8 fortyGigE0/24 off trunk
Ethernet28 1,2,3,4 fortyGigE0/28 off Ethernet28 1,2,3,4 fortyGigE0/28 off trunk
Ethernet32 9,10,11,12 fortyGigE0/32 off Ethernet32 9,10,11,12 fortyGigE0/32 off trunk
Ethernet36 13,14,15,16 fortyGigE0/36 off Ethernet36 13,14,15,16 fortyGigE0/36 off trunk
Ethernet40 21,22,23,24 fortyGigE0/40 off Ethernet40 21,22,23,24 fortyGigE0/40 off trunk
Ethernet44 17,18,19,20 fortyGigE0/44 off Ethernet44 17,18,19,20 fortyGigE0/44 off trunk
Ethernet48 49,50,51,52 fortyGigE0/48 off Ethernet48 49,50,51,52 fortyGigE0/48 off trunk
Ethernet52 53,54,55,56 fortyGigE0/52 off Ethernet52 53,54,55,56 fortyGigE0/52 off trunk
Ethernet56 61,62,63,64 fortyGigE0/56 off Ethernet56 61,62,63,64 fortyGigE0/56 off trunk
Ethernet60 57,58,59,60 fortyGigE0/60 off Ethernet60 57,58,59,60 fortyGigE0/60 off trunk
Ethernet64 65,66,67,68 fortyGigE0/64 off Ethernet64 65,66,67,68 fortyGigE0/64 off trunk
Ethernet68 69,70,71,72 fortyGigE0/68 off Ethernet68 69,70,71,72 fortyGigE0/68 off trunk
Ethernet72 77,78,79,80 fortyGigE0/72 off Ethernet72 77,78,79,80 fortyGigE0/72 off trunk
Ethernet76 73,74,75,76 fortyGigE0/76 off Ethernet76 73,74,75,76 fortyGigE0/76 off trunk
Ethernet80 105,106,107,108 fortyGigE0/80 off Ethernet80 105,106,107,108 fortyGigE0/80 off trunk
Ethernet84 109,110,111,112 fortyGigE0/84 off Ethernet84 109,110,111,112 fortyGigE0/84 off trunk
Ethernet88 117,118,119,120 fortyGigE0/88 off Ethernet88 117,118,119,120 fortyGigE0/88 off trunk
Ethernet92 113,114,115,116 fortyGigE0/92 off Ethernet92 113,114,115,116 fortyGigE0/92 off trunk
Ethernet96 121,122,123,124 fortyGigE0/96 off Ethernet96 121,122,123,124 fortyGigE0/96 off trunk
Ethernet100 125,126,127,128 fortyGigE0/100 off Ethernet100 125,126,127,128 fortyGigE0/100 off trunk
Ethernet104 85,86,87,88 fortyGigE0/104 off Ethernet104 85,86,87,88 fortyGigE0/104 off trunk
Ethernet108 81,82,83,84 fortyGigE0/108 off Ethernet108 81,82,83,84 fortyGigE0/108 off trunk
Ethernet112 89,90,91,92 fortyGigE0/112 on Ethernet112 89,90,91,92 fortyGigE0/112 on trunk
Ethernet116 93,94,95,96 fortyGigE0/116 on Ethernet116 93,94,95,96 fortyGigE0/116 on trunk
Ethernet120 97,98,99,100 fortyGigE0/120 on Ethernet120 97,98,99,100 fortyGigE0/120 on trunk
Ethernet124 101,102,103,104 fortyGigE0/124 on Ethernet124 101,102,103,104 fortyGigE0/124 on routed

View File

@ -1,33 +1,34 @@
# name lanes alias # name lanes alias mode
Ethernet0 29,30,31,32 fortyGigE0/0 Ethernet0 29,30,31,32 fortyGigE0/0 trunk
Ethernet4 25,26,27,28 fortyGigE0/4 Ethernet4 25,26,27,28 fortyGigE0/4 trunk
Ethernet8 37,38,39,40 fortyGigE0/8 Ethernet8 37,38,39,40 fortyGigE0/8 trunk
Ethernet12 33,34,35,36 fortyGigE0/12 Ethernet12 33,34,35,36 fortyGigE0/12 trunk
Ethernet16 41,42,43,44 fortyGigE0/16 Ethernet16 41,42,43,44 fortyGigE0/16 trunk
Ethernet20 45,46,47,48 fortyGigE0/20 Ethernet20 45,46,47,48 fortyGigE0/20 trunk
Ethernet24 5,6,7,8 fortyGigE0/24 Ethernet24 5,6,7,8 fortyGigE0/24 trunk
Ethernet28 1,2,3,4 fortyGigE0/28 Ethernet28 1,2,3,4 fortyGigE0/28 trunk
Ethernet32 9,10,11,12 fortyGigE0/32 Ethernet32 9,10,11,12 fortyGigE0/32 trunk
Ethernet36 13,14,15,16 fortyGigE0/36 Ethernet36 13,14,15,16 fortyGigE0/36 trunk
Ethernet40 21,22,23,24 fortyGigE0/40 Ethernet40 21,22,23,24 fortyGigE0/40 trunk
Ethernet44 17,18,19,20 fortyGigE0/44 Ethernet44 17,18,19,20 fortyGigE0/44 trunk
Ethernet48 49,50,51,52 fortyGigE0/48 Ethernet48 49,50,51,52 fortyGigE0/48 trunk
Ethernet52 53,54,55,56 fortyGigE0/52 Ethernet52 53,54,55,56 fortyGigE0/52 trunk
Ethernet56 61,62,63,64 fortyGigE0/56 Ethernet52 53,54,55,56 fortyGigE0/52 trunk
Ethernet60 57,58,59,60 fortyGigE0/60 Ethernet56 61,62,63,64 fortyGigE0/56 trunk
Ethernet64 65,66,67,68 fortyGigE0/64 Ethernet60 57,58,59,60 fortyGigE0/60 trunk
Ethernet68 69,70,71,72 fortyGigE0/68 Ethernet64 65,66,67,68 fortyGigE0/64 trunk
Ethernet72 77,78,79,80 fortyGigE0/72 Ethernet68 69,70,71,72 fortyGigE0/68 trunk
Ethernet76 73,74,75,76 fortyGigE0/76 Ethernet72 77,78,79,80 fortyGigE0/72 trunk
Ethernet80 105,106,107,108 fortyGigE0/80 Ethernet76 73,74,75,76 fortyGigE0/76 trunk
Ethernet84 109,110,111,112 fortyGigE0/84 Ethernet80 105,106,107,108 fortyGigE0/80 trunk
Ethernet88 117,118,119,120 fortyGigE0/88 Ethernet84 109,110,111,112 fortyGigE0/84 trunk
Ethernet92 113,114,115,116 fortyGigE0/92 Ethernet88 117,118,119,120 fortyGigE0/88 trunk
Ethernet96 121,122,123,124 fortyGigE0/96 Ethernet92 113,114,115,116 fortyGigE0/92 trunk
Ethernet100 125,126,127,128 fortyGigE0/100 Ethernet96 121,122,123,124 fortyGigE0/96 trunk
Ethernet104 85,86,87,88 fortyGigE0/104 Ethernet100 125,126,127,128 fortyGigE0/100 trunk
Ethernet108 81,82,83,84 fortyGigE0/108 Ethernet104 85,86,87,88 fortyGigE0/104 trunk
Ethernet112 89,90,91,92 fortyGigE0/112 Ethernet108 81,82,83,84 fortyGigE0/108 trunk
Ethernet116 93,94,95,96 fortyGigE0/116 Ethernet112 89,90,91,92 fortyGigE0/112 trunk
Ethernet120 97,98,99,100 fortyGigE0/120 Ethernet116 93,94,95,96 fortyGigE0/116 trunk
Ethernet124 101,102,103,104 fortyGigE0/124 Ethernet120 97,98,99,100 fortyGigE0/120 trunk
Ethernet124 101,102,103,104 fortyGigE0/124 trunk

File diff suppressed because one or more lines are too long

View File

@ -79,19 +79,19 @@ class TestCfgGenPlatformJson(TestCase):
argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet8\']"] argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet8\']"]
output = self.run_script(argument) output = self.run_script(argument)
self.maxDiff = None self.maxDiff = None
expected = "{'index': '3', 'lanes': '8', 'description': 'Eth3/1', 'mtu': '9100', 'alias': 'Eth3/1', 'pfc_asym': 'off', 'speed': '25000', 'tpid': '0x8100'}" expected = "{'index': '3', 'lanes': '8', 'description': 'Eth3/1', 'mtu': '9100', 'alias': 'Eth3/1', 'pfc_asym': 'off', 'speed': '25000', 'tpid': '0x8100','mode': 'routed'}"
self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected)) self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected))
argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet112\']"] argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet112\']"]
output = self.run_script(argument) output = self.run_script(argument)
self.maxDiff = None self.maxDiff = None
expected = "{'index': '29', 'lanes': '112', 'description': 'Eth29/1', 'mtu': '9100', 'alias': 'Eth29/1', 'pfc_asym': 'off', 'speed': '25000', 'tpid': '0x8100'}" expected = "{'index': '29', 'lanes': '112', 'description': 'Eth29/1', 'mtu': '9100', 'alias': 'Eth29/1', 'pfc_asym': 'off', 'speed': '25000', 'tpid': '0x8100','mode': 'routed'}"
self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected)) self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected))
argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet4\']"] argument = ['-m', self.platform_sample_graph, '-p', self.platform_json, '-S', self.hwsku_json, '-v', "PORT[\'Ethernet4\']"]
output = self.run_script(argument) output = self.run_script(argument)
self.maxDiff = None self.maxDiff = None
expected = "{'index': '2', 'lanes': '4,5', 'description': 'Eth2/1', 'admin_status': 'up', 'mtu': '9100', 'alias': 'Eth2/1', 'pfc_asym': 'off', 'speed': '50000', 'tpid': '0x8100'}" expected = "{'index': '2', 'lanes': '4,5', 'description': 'Eth2/1', 'admin_status': 'up', 'mtu': '9100', 'alias': 'Eth2/1', 'pfc_asym': 'off', 'speed': '50000', 'tpid': '0x8100','mode': 'routed'}"
print(output.strip()) print(output.strip())
self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected)) self.assertEqual(utils.to_dict(output.strip()), utils.to_dict(expected))

View File

@ -164,7 +164,7 @@ class TestCfgGenCaseInsensitive(TestCase):
output = self.run_script(argument) output = self.run_script(argument)
self.assertEqual( self.assertEqual(
utils.to_dict(output.strip()), utils.to_dict(output.strip()),
utils.to_dict("{'PortChannel01': {'admin_status': 'up', 'min_links': '1', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}}") utils.to_dict("{'PortChannel01': {'admin_status': 'up', 'min_links': '1', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto','mode': 'routed'}}")
) )
def test_minigraph_console_mgmt_feature(self): def test_minigraph_console_mgmt_feature(self):

View File

@ -163,16 +163,16 @@ class TestMultiNpuCfgGen(TestCase):
argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORTCHANNEL"] argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORTCHANNEL"]
output = json.loads(self.run_script(argument)) output = json.loads(self.run_script(argument))
self.assertDictEqual(output, \ self.assertDictEqual(output, \
{'PortChannel0002': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}, {'PortChannel0002': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'mode': 'routed', 'lacp_key': 'auto'},
'PortChannel4001': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}, 'PortChannel4001': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'mode': 'routed', 'lacp_key': 'auto'},
'PortChannel4002': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}}) 'PortChannel4002': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'mode': 'routed', 'lacp_key': 'auto'}})
def test_backend_asic_portchannels(self): def test_backend_asic_portchannels(self):
argument = ["-m", self.sample_graph, "-p", self.port_config[3], "-n", "asic3", "--var-json", "PORTCHANNEL"] argument = ["-m", self.sample_graph, "-p", self.port_config[3], "-n", "asic3", "--var-json", "PORTCHANNEL"]
output = json.loads(self.run_script(argument)) output = json.loads(self.run_script(argument))
self.assertDictEqual(output, \ self.assertDictEqual(output, \
{'PortChannel4013': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}, {'PortChannel4013': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'mode': 'routed' , 'lacp_key': 'auto'},
'PortChannel4014': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'lacp_key': 'auto'}}) 'PortChannel4014': {'admin_status': 'up', 'min_links': '2', 'mtu': '9100', 'tpid': '0x8100', 'mode': 'routed' , 'lacp_key': 'auto'}})
def test_frontend_asic_portchannel_mem(self): def test_frontend_asic_portchannel_mem(self):
argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "-v", "PORTCHANNEL_MEMBER.keys()|list"] argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "-v", "PORTCHANNEL_MEMBER.keys()|list"]
@ -218,27 +218,27 @@ class TestMultiNpuCfgGen(TestCase):
argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORT"] argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORT"]
output = json.loads(self.run_script(argument)) output = json.loads(self.run_script(argument))
self.assertDictEqual(output, self.assertDictEqual(output,
{"Ethernet0": { "admin_status": "up", "alias": "Ethernet1/1", "asic_port_name": "Eth0-ASIC0", "description": "01T2:Ethernet1", "index": "0", "lanes": "33,34,35,36", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" }, {"Ethernet0": { "admin_status": "up", "alias": "Ethernet1/1", "asic_port_name": "Eth0-ASIC0", "description": "01T2:Ethernet1", "index": "0", "lanes": "33,34,35,36", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on", "mode": "routed"},
"Ethernet4": { "admin_status": "up", "alias": "Ethernet1/2", "asic_port_name": "Eth1-ASIC0", "description": "01T2:Ethernet2", "index": "1", "lanes": "29,30,31,32", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" }, "Ethernet4": { "admin_status": "up", "alias": "Ethernet1/2", "asic_port_name": "Eth1-ASIC0", "description": "01T2:Ethernet2", "index": "1", "lanes": "29,30,31,32", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" , "mode": "routed"},
"Ethernet8": { "alias": "Ethernet1/3", "asic_port_name": "Eth2-ASIC0", "description": "Ethernet1/3", "index": "2", "lanes": "41,42,43,44", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" }, "Ethernet8": { "alias": "Ethernet1/3", "asic_port_name": "Eth2-ASIC0", "description": "Ethernet1/3", "index": "2", "lanes": "41,42,43,44", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "mode": "routed"},
"Ethernet12": { "alias": "Ethernet1/4", "asic_port_name": "Eth3-ASIC0", "description": "Ethernet1/4", "index": "3", "lanes": "37,38,39,40", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" }, "Ethernet12": { "alias": "Ethernet1/4", "asic_port_name": "Eth3-ASIC0", "description": "Ethernet1/4", "index": "3", "lanes": "37,38,39,40", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "mode": "routed"},
"Ethernet-BP0": { "admin_status": "up", "alias": "Eth4-ASIC0", "asic_port_name": "Eth4-ASIC0", "description": "ASIC2:Eth0-ASIC2", "index": "0", "lanes": "13,14,15,16", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP0": { "admin_status": "up", "alias": "Eth4-ASIC0", "asic_port_name": "Eth4-ASIC0", "description": "ASIC2:Eth0-ASIC2", "index": "0", "lanes": "13,14,15,16", "mtu": "9100", "tpid": "0x8100","pfc_asym": "off", "role": "Int", "speed": "40000", "mode": "routed"},
"Ethernet-BP4": { "admin_status": "up", "alias": "Eth5-ASIC0", "asic_port_name": "Eth5-ASIC0", "description": "ASIC2:Eth1-ASIC2", "index": "1", "lanes": "17,18,19,20", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP4": { "admin_status": "up", "alias": "Eth5-ASIC0", "asic_port_name": "Eth5-ASIC0", "description": "ASIC2:Eth1-ASIC2", "index": "1", "lanes": "17,18,19,20", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000", "mode": "routed"},
"Ethernet-BP8": { "admin_status": "up", "alias": "Eth6-ASIC0", "asic_port_name": "Eth6-ASIC0", "description": "ASIC3:Eth0-ASIC3", "index": "2", "lanes": "21,22,23,24", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP8": { "admin_status": "up", "alias": "Eth6-ASIC0", "asic_port_name": "Eth6-ASIC0", "description": "ASIC3:Eth0-ASIC3", "index": "2", "lanes": "21,22,23,24", "mtu": "9100", "tpid": "0x8100","pfc_asym": "off", "role": "Int", "speed": "40000" , "mode": "routed"},
"Ethernet-BP12": { "admin_status": "up", "alias": "Eth7-ASIC0", "asic_port_name": "Eth7-ASIC0", "description": "ASIC3:Eth1-ASIC3", "index": "3", "lanes": "25,26,27,28", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }}) "Ethernet-BP12": { "admin_status": "up", "alias": "Eth7-ASIC0", "asic_port_name": "Eth7-ASIC0", "description": "ASIC3:Eth1-ASIC3", "index": "3", "lanes": "25,26,27,28", "mtu": "9100", "tpid": "0x8100","pfc_asym": "off", "role": "Int", "speed": "40000" , "mode": "routed"}})
def test_frontend_asic_ports_config_db(self): def test_frontend_asic_ports_config_db(self):
argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORT"] argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "PORT"]
output = json.loads(self.run_script(argument)) output = json.loads(self.run_script(argument))
self.assertDictEqual(output, self.assertDictEqual(output,
{"Ethernet0": { "admin_status": "up", "alias": "Ethernet1/1", "asic_port_name": "Eth0-ASIC0", "description": "01T2:Ethernet1", "index": "0", "lanes": "33,34,35,36", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" }, {"Ethernet0": { "admin_status": "up", "alias": "Ethernet1/1", "asic_port_name": "Eth0-ASIC0", "description": "01T2:Ethernet1", "index": "0", "lanes": "33,34,35,36", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on", "mode": "routed"},
"Ethernet4": { "admin_status": "up", "alias": "Ethernet1/2", "asic_port_name": "Eth1-ASIC0", "description": "01T2:Ethernet2", "index": "1", "lanes": "29,30,31,32", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" }, "Ethernet4": { "admin_status": "up", "alias": "Ethernet1/2", "asic_port_name": "Eth1-ASIC0", "description": "01T2:Ethernet2", "index": "1", "lanes": "29,30,31,32", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000", "autoneg": "on" , "mode": "routed"},
"Ethernet8": { "alias": "Ethernet1/3", "asic_port_name": "Eth2-ASIC0", "description": "Ethernet1/3", "index": "2", "lanes": "41,42,43,44", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" }, "Ethernet8": { "alias": "Ethernet1/3", "asic_port_name": "Eth2-ASIC0", "description": "Ethernet1/3", "index": "2", "lanes": "41,42,43,44", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" , "mode": "routed"},
"Ethernet12": { "alias": "Ethernet1/4", "asic_port_name": "Eth3-ASIC0", "description": "Ethernet1/4", "index": "3", "lanes": "37,38,39,40", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" }, "Ethernet12": { "alias": "Ethernet1/4", "asic_port_name": "Eth3-ASIC0", "description": "Ethernet1/4", "index": "3", "lanes": "37,38,39,40", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Ext", "speed": "40000" , "mode": "routed"},
"Ethernet-BP0": { "admin_status": "up", "alias": "Eth4-ASIC0", "asic_port_name": "Eth4-ASIC0", "description": "ASIC2:Eth0-ASIC2", "index": "0", "lanes": "13,14,15,16", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP0": { "admin_status": "up", "alias": "Eth4-ASIC0", "asic_port_name": "Eth4-ASIC0", "description": "ASIC2:Eth0-ASIC2", "index": "0", "lanes": "13,14,15,16", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000", "mode": "routed"},
"Ethernet-BP4": { "admin_status": "up", "alias": "Eth5-ASIC0", "asic_port_name": "Eth5-ASIC0", "description": "ASIC2:Eth1-ASIC2", "index": "1", "lanes": "17,18,19,20", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP4": { "admin_status": "up", "alias": "Eth5-ASIC0", "asic_port_name": "Eth5-ASIC0", "description": "ASIC2:Eth1-ASIC2", "index": "1", "lanes": "17,18,19,20", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000", "mode": "routed" },
"Ethernet-BP8": { "admin_status": "up", "alias": "Eth6-ASIC0", "asic_port_name": "Eth6-ASIC0", "description": "ASIC3:Eth0-ASIC3", "index": "2", "lanes": "21,22,23,24", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }, "Ethernet-BP8": { "admin_status": "up", "alias": "Eth6-ASIC0", "asic_port_name": "Eth6-ASIC0", "description": "ASIC3:Eth0-ASIC3", "index": "2", "lanes": "21,22,23,24", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" , "mode": "routed"},
"Ethernet-BP12": { "admin_status": "up", "alias": "Eth7-ASIC0", "asic_port_name": "Eth7-ASIC0", "description": "ASIC3:Eth1-ASIC3", "index": "3", "lanes": "25,26,27,28", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000" }}) "Ethernet-BP12": { "admin_status": "up", "alias": "Eth7-ASIC0", "asic_port_name": "Eth7-ASIC0", "description": "ASIC3:Eth1-ASIC3", "index": "3", "lanes": "25,26,27,28", "mtu": "9100", "tpid": "0x8100", "pfc_asym": "off", "role": "Int", "speed": "40000", "mode": "routed"}})
def test_frontend_asic_device_neigh(self): def test_frontend_asic_device_neigh(self):
argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "DEVICE_NEIGHBOR"] argument = ["-m", self.sample_graph, "-p", self.port_config[0], "-n", "asic0", "--var-json", "DEVICE_NEIGHBOR"]