- Introduced support for H3C devices by adding a new configuration file `config.conf` containing interface and VLAN settings. - Created an expected output JSON file `config.expected.json` to validate the parsing of H3C configurations. - Updated the test model cases to include H3C for comprehensive testing of device parsing functionality.
155 lines
2.8 KiB
JSON
155 lines
2.8 KiB
JSON
{
|
|
"system": {
|
|
"model": "S9820-64H",
|
|
"serial_number": "",
|
|
"version": "7.1.070"
|
|
},
|
|
"interfaces": [
|
|
{
|
|
"interface": "Bridge-Aggregation1",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation2",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_2"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation3",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_3"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation4",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_4"
|
|
},
|
|
{
|
|
"interface": "NULL0",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "Vlan-interface1",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "Vlan-interface12",
|
|
"ip_address": "15.12.16.246",
|
|
"mask": 30,
|
|
"description": "BGP to OSPF1"
|
|
},
|
|
{
|
|
"interface": "Vlan-interface3000",
|
|
"ip_address": "192.168.19.254",
|
|
"mask": 25,
|
|
"description": "L3 to HW_TEST_3"
|
|
},
|
|
{
|
|
"interface": "HundredGigE1/0/3",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"interface": "HundredGigE1/0/63",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_2"
|
|
},
|
|
{
|
|
"interface": "M-GigabitEthernet0/0/0",
|
|
"ip_address": "192.168.10.101",
|
|
"mask": 24,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "M-GigabitEthernet0/0/1",
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
}
|
|
],
|
|
"vlans": [
|
|
{
|
|
"vlan_id": 1,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 12,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 13,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 15,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"vlan_id": 222,
|
|
"description": "MGMT"
|
|
},
|
|
{
|
|
"vlan_id": 222,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1122,
|
|
"description": "DATA"
|
|
},
|
|
{
|
|
"vlan_id": 1123,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1200,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1512,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1513,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 2000,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 3377,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"vlan_id": 1112,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1113,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1114,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1115,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 1116,
|
|
"description": null
|
|
}
|
|
]
|
|
} |