Add shutdown command to H3C interface template and update related configuration files

- 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.
This commit is contained in:
IluaAir
2026-07-15 15:48:28 +03:00
parent da2bf2f876
commit 6009f0bf9c
3 changed files with 3 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ default_system = {
interface {{ interface }}
description {{ description | ORPHRASE }}
ip address {{ ip_address }} {{ mask | to_cidr }}
shutdown {{ shutdown | set(True) }}
</group>
<group name="vlans">

View File

@@ -152,6 +152,7 @@ interface HundredGigE1/0/3
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 221 1112 to 1116 1512
shutdown
storm-constrain broadcast pps 1100 1000
storm-constrain multicast pps 1100 1000
storm-constrain control shutdown

View File

@@ -63,7 +63,7 @@
},
{
"interface": "HundredGigE1/0/3",
"shutdown": false,
"shutdown": true,
"ip_address": null,
"mask": null,
"description": "HW_TEST_1"