- Included the `shutdown` command in the H3C interface template to reflect the new interface state management. - Updated the `config.conf` file to include the `shutdown` command for the `HundredGigE1/0/3` interface. - Modified the expected output JSON to set the `shutdown` attribute to true, ensuring accurate testing and validation of interface configurations.
167 lines
3.1 KiB
JSON
167 lines
3.1 KiB
JSON
{
|
|
"system": {
|
|
"model": "S9820-64H",
|
|
"serial_number": "",
|
|
"version": "7.1.070"
|
|
},
|
|
"interfaces": [
|
|
{
|
|
"interface": "Bridge-Aggregation1",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation2",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_2"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation3",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_3"
|
|
},
|
|
{
|
|
"interface": "Bridge-Aggregation4",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_4"
|
|
},
|
|
{
|
|
"interface": "NULL0",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "Vlan-interface1",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "Vlan-interface12",
|
|
"shutdown": false,
|
|
"ip_address": "15.12.16.246",
|
|
"mask": 30,
|
|
"description": "BGP to OSPF1"
|
|
},
|
|
{
|
|
"interface": "Vlan-interface3000",
|
|
"shutdown": false,
|
|
"ip_address": "192.168.19.254",
|
|
"mask": 25,
|
|
"description": "L3 to HW_TEST_3"
|
|
},
|
|
{
|
|
"interface": "HundredGigE1/0/3",
|
|
"shutdown": true,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_1"
|
|
},
|
|
{
|
|
"interface": "HundredGigE1/0/63",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "HW_TEST_2"
|
|
},
|
|
{
|
|
"interface": "M-GigabitEthernet0/0/0",
|
|
"shutdown": false,
|
|
"ip_address": "192.168.10.101",
|
|
"mask": 24,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "M-GigabitEthernet0/0/1",
|
|
"shutdown": false,
|
|
"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
|
|
}
|
|
]
|
|
} |