- Included the `shutdown` command in the Huawei interface template to manage interface states. - Added a new interface configuration in `config.conf` with the `shutdown` command. - Updated the expected output JSON to reflect the new interface and its shutdown state for accurate testing and validation of configurations.
104 lines
1.7 KiB
JSON
104 lines
1.7 KiB
JSON
{
|
|
"system": {
|
|
"model": "S5731",
|
|
"serial_number": "102266666666",
|
|
"version": "5.170"
|
|
},
|
|
"interfaces": [
|
|
{
|
|
"interface": "GigabitEthernet0/0/33",
|
|
"shutdown": false,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": null
|
|
},
|
|
{
|
|
"interface": "GigabitEthernet1/0/43",
|
|
"shutdown": true,
|
|
"ip_address": null,
|
|
"mask": null,
|
|
"description": "FREE"
|
|
},
|
|
{
|
|
"interface": "Vlanif120",
|
|
"shutdown": false,
|
|
"ip_address": "10.26.196.254",
|
|
"mask": 24,
|
|
"description": "SSH"
|
|
}
|
|
],
|
|
"vlans": [
|
|
{
|
|
"vlan_id": 13,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 26,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 101,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 102,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 103,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 110,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 120,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 130,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 201,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 202,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 203,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 204,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 209,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 210,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 211,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 212,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 350,
|
|
"description": null
|
|
},
|
|
{
|
|
"vlan_id": 360,
|
|
"description": null
|
|
}
|
|
]
|
|
} |