diff --git a/oxi/interfaces/models/templates/huawei.ttp b/oxi/interfaces/models/templates/huawei.ttp index 4464e2c..4940748 100644 --- a/oxi/interfaces/models/templates/huawei.ttp +++ b/oxi/interfaces/models/templates/huawei.ttp @@ -21,6 +21,7 @@ default_system = { interface {{ interface }} description {{ description | ORPHRASE }} + shutdown {{ shutdown | set(True) }} ip address {{ ip_address }} {{ mask | to_cidr }} diff --git a/tests/fixtures/huawei/config.conf b/tests/fixtures/huawei/config.conf index 990fb8f..f634786 100644 --- a/tests/fixtures/huawei/config.conf +++ b/tests/fixtures/huawei/config.conf @@ -30,6 +30,17 @@ interface GigabitEthernet0/0/33 storm-control multicast min-rate 1000 max-rate 2000 storm-control action error-down # +interface GigabitEthernet1/0/43 + description FREE + shutdown + port link-type access + port default vlan 102 + loopback-detect enable + stp disable + storm-control broadcast min-rate 1500 max-rate 2500 + storm-control multicast min-rate 1000 max-rate 2000 + storm-control action error-down +# interface Vlanif120 description SSH ip address 10.26.196.254 255.255.255.0 diff --git a/tests/fixtures/huawei/config.expected.json b/tests/fixtures/huawei/config.expected.json index 14a97ae..0de69c3 100644 --- a/tests/fixtures/huawei/config.expected.json +++ b/tests/fixtures/huawei/config.expected.json @@ -12,6 +12,13 @@ "mask": null, "description": null }, + { + "interface": "GigabitEthernet1/0/43", + "shutdown": true, + "ip_address": null, + "mask": null, + "description": "FREE" + }, { "interface": "Vlanif120", "shutdown": false,