Revert "pkgs/switches/linksys-srw2048: always clear vlan config"
This reverts commit 22aa149f3d
.
This commit is contained in:
parent
22aa149f3d
commit
f58ff9584a
|
@ -77,6 +77,8 @@ with lib;
|
||||||
then ''
|
then ''
|
||||||
send "interface range ethernet ${ports}\r"
|
send "interface range ethernet ${ports}\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
|
send "switchport trunk allowed vlan remove all\r"
|
||||||
|
expect "(config-if)#"
|
||||||
send "channel-group ${linkConfig.group} mode auto\r"
|
send "channel-group ${linkConfig.group} mode auto\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "interface port-channel ${linkConfig.group}\r"
|
send "interface port-channel ${linkConfig.group}\r"
|
||||||
|
@ -87,8 +89,6 @@ with lib;
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport mode trunk\r"
|
send "switchport mode trunk\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport trunk allowed vlan remove all\r"
|
|
||||||
expect "(config-if)#"
|
|
||||||
send "switchport trunk allowed vlan add ${vlans}\r"
|
send "switchport trunk allowed vlan add ${vlans}\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
|
|
||||||
|
@ -103,8 +103,6 @@ with lib;
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport mode trunk\r"
|
send "switchport mode trunk\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport trunk allowed vlan remove all\r"
|
|
||||||
expect "(config-if)#"
|
|
||||||
send "switchport trunk allowed vlan add ${vlans}\r"
|
send "switchport trunk allowed vlan add ${vlans}\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "exit\r"
|
send "exit\r"
|
||||||
|
@ -125,8 +123,6 @@ with lib;
|
||||||
|
|
||||||
send "interface port-channel ${linkConfig.group}\r"
|
send "interface port-channel ${linkConfig.group}\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport trunk allowed vlan remove all\r"
|
|
||||||
expect "(config-if)#"
|
|
||||||
send "switchport mode access\r"
|
send "switchport mode access\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport access vlan ${toString (builtins.head linkConfig.vlans)}\r"
|
send "switchport access vlan ${toString (builtins.head linkConfig.vlans)}\r"
|
||||||
|
@ -140,8 +136,6 @@ with lib;
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "no channel-group\r"
|
send "no channel-group\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport trunk allowed vlan remove all\r"
|
|
||||||
expect "(config-if)#"
|
|
||||||
send "switchport mode access\r"
|
send "switchport mode access\r"
|
||||||
expect "(config-if)#"
|
expect "(config-if)#"
|
||||||
send "switchport access vlan ${toString netConfig.vlan}\r"
|
send "switchport access vlan ${toString netConfig.vlan}\r"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user