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">
|
<group name="interfaces">
|
||||||
interface {{ interface | ORPHRASE }}
|
interface {{ interface | ORPHRASE }}
|
||||||
|
shutdown {{ shutdown | set(True) }}
|
||||||
description {{ description | ORPHRASE }}
|
description {{ description | ORPHRASE }}
|
||||||
ip address {{ ip_address }} {{ mask | to_cidr }}
|
ip address {{ ip_address }} {{ mask | to_cidr }}
|
||||||
</group>
|
</group>
|
||||||
|
|||||||
2
tests/fixtures/qtech/config_1.expected.json
vendored
2
tests/fixtures/qtech/config_1.expected.json
vendored
@@ -7,7 +7,7 @@
|
|||||||
"interfaces": [
|
"interfaces": [
|
||||||
{
|
{
|
||||||
"interface": "GigaEthernet1/0/9",
|
"interface": "GigaEthernet1/0/9",
|
||||||
"shutdown": false,
|
"shutdown": true,
|
||||||
"ip_address": null,
|
"ip_address": null,
|
||||||
"mask": null,
|
"mask": null,
|
||||||
"description": "FREE"
|
"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": [
|
"interfaces": [
|
||||||
{
|
{
|
||||||
"interface": "GigaEthernet1/0/9",
|
"interface": "GigaEthernet1/0/9",
|
||||||
"shutdown": false,
|
"shutdown": true,
|
||||||
"ip_address": null,
|
"ip_address": null,
|
||||||
"mask": null,
|
"mask": null,
|
||||||
"description": "FREE"
|
"description": "FREE"
|
||||||
|
|||||||
Reference in New Issue
Block a user