Add shutdown attribute to Interfaces class and update related templates
- Added a `shutdown` boolean attribute to the `Interfaces` class to manage interface states. - Updated the `eltex.ttp` template to include the `shutdown` command based on the new attribute. - Modified expected configuration JSON files for various devices to reflect the new `shutdown` attribute, ensuring accurate testing and validation of interface configurations.
This commit is contained in:
3
tests/fixtures/qtech/config_1.expected.json
vendored
3
tests/fixtures/qtech/config_1.expected.json
vendored
@@ -7,18 +7,21 @@
|
||||
"interfaces": [
|
||||
{
|
||||
"interface": "GigaEthernet1/0/9",
|
||||
"shutdown": false,
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "FREE"
|
||||
},
|
||||
{
|
||||
"interface": "VLAN1",
|
||||
"shutdown": false,
|
||||
"ip_address": "192.168.0.1",
|
||||
"mask": 16,
|
||||
"description": null
|
||||
},
|
||||
{
|
||||
"interface": "VLAN1002",
|
||||
"shutdown": false,
|
||||
"ip_address": "13.36.8.1",
|
||||
"mask": 24,
|
||||
"description": "test-1002"
|
||||
|
||||
Reference in New Issue
Block a user