Add shutdown command to Qtech interface template and update expected configuration files
- Included the `shutdown` command in the Qtech interface template to manage interface states. - Updated expected output JSON files to set the `shutdown` attribute to true for accurate testing and validation of interface configurations.
This commit is contained in:
@@ -29,6 +29,7 @@ default_system = {
|
||||
|
||||
<group name="interfaces">
|
||||
interface {{ interface | ORPHRASE }}
|
||||
shutdown {{ shutdown | set(True) }}
|
||||
description {{ description | ORPHRASE }}
|
||||
ip address {{ ip_address }} {{ mask | to_cidr }}
|
||||
</group>
|
||||
|
||||
2
tests/fixtures/qtech/config_1.expected.json
vendored
2
tests/fixtures/qtech/config_1.expected.json
vendored
@@ -7,7 +7,7 @@
|
||||
"interfaces": [
|
||||
{
|
||||
"interface": "GigaEthernet1/0/9",
|
||||
"shutdown": false,
|
||||
"shutdown": true,
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "FREE"
|
||||
|
||||
2
tests/fixtures/qtech/config_2.expected.json
vendored
2
tests/fixtures/qtech/config_2.expected.json
vendored
@@ -7,7 +7,7 @@
|
||||
"interfaces": [
|
||||
{
|
||||
"interface": "GigaEthernet1/0/9",
|
||||
"shutdown": false,
|
||||
"shutdown": true,
|
||||
"ip_address": null,
|
||||
"mask": null,
|
||||
"description": "FREE"
|
||||
|
||||
Reference in New Issue
Block a user