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