@@ -23,6 +23,7 @@ default_system = {
|
|||||||
interface {{ interface }}
|
interface {{ interface }}
|
||||||
description {{ description | ORPHRASE }}
|
description {{ description | ORPHRASE }}
|
||||||
ip address {{ ip_address }} {{ mask | to_cidr }}
|
ip address {{ ip_address }} {{ mask | to_cidr }}
|
||||||
|
shutdown {{ shutdown | set(True) }}
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group name="vlans">
|
<group name="vlans">
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
1
tests/fixtures/h3c/config.conf
vendored
1
tests/fixtures/h3c/config.conf
vendored
@@ -152,6 +152,7 @@ interface HundredGigE1/0/3
|
|||||||
port link-type trunk
|
port link-type trunk
|
||||||
undo port trunk permit vlan 1
|
undo port trunk permit vlan 1
|
||||||
port trunk permit vlan 221 1112 to 1116 1512
|
port trunk permit vlan 221 1112 to 1116 1512
|
||||||
|
shutdown
|
||||||
storm-constrain broadcast pps 1100 1000
|
storm-constrain broadcast pps 1100 1000
|
||||||
storm-constrain multicast pps 1100 1000
|
storm-constrain multicast pps 1100 1000
|
||||||
storm-constrain control shutdown
|
storm-constrain control shutdown
|
||||||
|
|||||||
2
tests/fixtures/h3c/config.expected.json
vendored
2
tests/fixtures/h3c/config.expected.json
vendored
@@ -63,7 +63,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"interface": "HundredGigE1/0/3",
|
"interface": "HundredGigE1/0/3",
|
||||||
"shutdown": false,
|
"shutdown": true,
|
||||||
"ip_address": null,
|
"ip_address": null,
|
||||||
"mask": null,
|
"mask": null,
|
||||||
"description": "HW_TEST_1"
|
"description": "HW_TEST_1"
|
||||||
|
|||||||
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