def test_parse_inv_if(): assert parse_inv_if([ [ [ '1', 'Vlan-interface1', '', '6', '1000000000', '0', '1', '1', [116, 218, 136, 88, 22, 17], '40105' ], [ '32769', 'port-channel 1', '', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '758725259' ], ['49152', 'AUX0', '', '23', '0', '0', '1', '1', [], '0'], [ '49153', 'gigabitEthernet 1/0/1', 'Uplink sw-ks-01', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '40098' ], [ '49154', 'gigabitEthernet 1/0/2', 'Uplink sw-ks-01', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '758725253' ], [ '49155', 'gigabitEthernet 1/0/3', 'pve-muc', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '256967070' ], [ '49156', 'gigabitEthernet 1/0/4', 'pve-muc-ipmi', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '104215' ], [ '49157', 'gigabitEthernet 1/0/5', 'monitoring', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '104632' ], [ '49158', 'gigabitEthernet 1/0/6', 'monitoring-ipmi', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '113826' ], [ '49159', 'gigabitEthernet 1/0/7', 'pve-muc', '6', '10000000', '10', '1', '1', [116, 218, 136, 88, 22, 17], '204041' ], [ '49160', 'gigabitEthernet 1/0/8', 'pve-muc1-ipmi', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '761116702' ], [ '49161', 'gigabitEthernet 1/0/9', 'esxi', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '534467470' ], [ '49162', 'gigabitEthernet 1/0/10', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49163', 'gigabitEthernet 1/0/11', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49164', 'gigabitEthernet 1/0/12', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '37001' ], [ '49165', 'gigabitEthernet 1/0/13', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49166', 'gigabitEthernet 1/0/14', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49167', 'gigabitEthernet 1/0/15', '', '6', '1000000000', '1000', '1', '1', [116, 218, 136, 88, 22, 17], '354459337' ], [ '49168', 'gigabitEthernet 1/0/16', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49169', 'gigabitEthernet 1/0/17', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49170', 'gigabitEthernet 1/0/18', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49171', 'gigabitEthernet 1/0/19', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49172', 'gigabitEthernet 1/0/20', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49173', 'gigabitEthernet 1/0/21', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49174', 'gigabitEthernet 1/0/22', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49175', 'gigabitEthernet 1/0/23', ' ', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49176', 'gigabitEthernet 1/0/24', ' ', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49177', 'gigabitEthernet 1/0/25', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49178', 'gigabitEthernet 1/0/26', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49179', 'gigabitEthernet 1/0/27', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], [ '49180', 'gigabitEthernet 1/0/28', '', '6', '0', '0', '2', '1', [116, 218, 136, 88, 22, 17], '0' ], ], ]) == SECTION_INV_IF
def test_parse_inv_if(): assert (parse_inv_if([ [ [ "1", "Vlan-interface1", "", "6", "1000000000", "0", "1", "1", [116, 218, 136, 88, 22, 17], "40105", ], [ "32769", "port-channel 1", "", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "758725259", ], ["49152", "AUX0", "", "23", "0", "0", "1", "1", [], "0"], [ "49153", "gigabitEthernet 1/0/1", "Uplink sw-ks-01", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "40098", ], [ "49154", "gigabitEthernet 1/0/2", "Uplink sw-ks-01", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "758725253", ], [ "49155", "gigabitEthernet 1/0/3", "pve-muc", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "256967070", ], [ "49156", "gigabitEthernet 1/0/4", "pve-muc-ipmi", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "104215", ], [ "49157", "gigabitEthernet 1/0/5", "monitoring", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "104632", ], [ "49158", "gigabitEthernet 1/0/6", "monitoring-ipmi", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "113826", ], [ "49159", "gigabitEthernet 1/0/7", "pve-muc", "6", "10000000", "10", "1", "1", [116, 218, 136, 88, 22, 17], "204041", ], [ "49160", "gigabitEthernet 1/0/8", "pve-muc1-ipmi", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "761116702", ], [ "49161", "gigabitEthernet 1/0/9", "esxi", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "534467470", ], [ "49162", "gigabitEthernet 1/0/10", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49163", "gigabitEthernet 1/0/11", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49164", "gigabitEthernet 1/0/12", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "37001", ], [ "49165", "gigabitEthernet 1/0/13", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49166", "gigabitEthernet 1/0/14", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49167", "gigabitEthernet 1/0/15", "", "6", "1000000000", "1000", "1", "1", [116, 218, 136, 88, 22, 17], "354459337", ], [ "49168", "gigabitEthernet 1/0/16", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49169", "gigabitEthernet 1/0/17", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49170", "gigabitEthernet 1/0/18", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49171", "gigabitEthernet 1/0/19", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49172", "gigabitEthernet 1/0/20", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49173", "gigabitEthernet 1/0/21", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49174", "gigabitEthernet 1/0/22", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49175", "gigabitEthernet 1/0/23", " ", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49176", "gigabitEthernet 1/0/24", " ", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49177", "gigabitEthernet 1/0/25", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49178", "gigabitEthernet 1/0/26", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49179", "gigabitEthernet 1/0/27", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49180", "gigabitEthernet 1/0/28", "", "6", "0", "0", "2", "1", [116, 218, 136, 88, 22, 17], "0", ], [ "49181", "gigabitEthernet 1/0/28", "", "6", "0", "0", "2", "", [116, 218, 136, 88, 22, 17], "0", ], ], ]) == SECTION_INV_IF)