Skip to content

Commit

Permalink
Fix get_interface_type nxos on python 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
aruhier committed Jan 10, 2019
1 parent 28c4e5f commit 7c916d5
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
{
"interface": "Ethernet1/3",
"sfp": "present",
"type": "1000BASE-T"
"type": "1000BASE-T",
"partnum": ""
},
{
"interface": "Ethernet1/4",
"sfp": "present",
"type": "1000BASE-SX"
"type": "1000BASE-SX",
"partnum": ""
},
{
"interface": "Ethernet1/5",
Expand Down Expand Up @@ -57,6 +59,10 @@
"sfp": "present",
"type": "X2-10GB-T",
"partnum": "X2-10GB-T-FU"
},
{
"interface": "mgmt0",
"partnum": ""
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,55 +1,60 @@
{
"TABLE_interface": {
"ROW_interface": [{
"interface": "Ethernet1/1",
"TABLE_interface": {
"ROW_interface": [{
"interface": "Ethernet1/1",
"speed": "100G",
"type": "CFP-100G-SR10"
},
{
"interface": "Ethernet1/2",
"type": "CFP-100G-SR10"
},
{
"interface": "Ethernet1/2",
"speed": "100G",
"type": "CFP2-100G-ER4"
},
{
"interface": "Ethernet1/3",
"type": "CFP2-100G-ER4"
},
{
"interface": "Ethernet1/3",
"speed": "1G",
"type": "1000BASE-T"
},
{
"interface": "Ethernet1/4",
"type": "1000BASE-T"
},
{
"interface": "Ethernet1/4",
"speed": "1G",
"type": "1000BASE-SX"
},
{
"interface": "Ethernet1/5",
"type": "1000BASE-SX"
},
{
"interface": "Ethernet1/5",
"speed": "10G",
"type": "SFP-H10GB-CU3M"
},
{
"interface": "Ethernet1/6",
"type": "SFP-H10GB-CU3M"
},
{
"interface": "Ethernet1/6",
"speed": "25G",
"type": "SFP-H25G-CU1M"
},
{
"interface": "Ethernet1/7",
"type": "SFP-H25G-CU1M"
},
{
"interface": "Ethernet1/7",
"speed": "40G",
"type": "QSFP-40G-SR-BD"
},
{
"interface": "Ethernet1/8",
"type": "QSFP-40G-SR-BD"
},
{
"interface": "Ethernet1/8",
"speed": "40G",
"type": "QSFP-4X10G-AC"
},
{
"interface": "Ethernet1/9",
"type": "QSFP-4X10G-AC"
},
{
"interface": "Ethernet1/9",
"speed": "10G",
"type": "XENPAK-10GB-LRM"
},
{
"interface": "Ethernet1/10",
"type": "XENPAK-10GB-LRM"
},
{
"interface": "Ethernet1/10",
"speed": "10G",
"type": "X2-10GB-T"
}
]
}
"type": "X2-10GB-T"
},
{
"interface": "mgmt0",
"speed": "",
"type": ""
}
]
}
}

0 comments on commit 7c916d5

Please sign in to comment.