Commit 7cc9fe25 authored by Leigh Stoller's avatar Leigh Stoller

Merge branch 'mymaster'

parents 568563f5 aeae6e66
......@@ -233,7 +233,6 @@ sub generateConfig($$)
"username $uid password 7 $encrypted");
}
if (0) {
#
# Find all the ports that are in use on this switch. We want to enable
# those ports and put them into vlan 1. This will give the user a basic
......@@ -276,22 +275,19 @@ sub generateConfig($$)
my $port = $interface->port();
push(@portlines,
"interface te $card/$port",
" switchport",
" spanning-tree mode rst",
" spanning-tree guard loop",
"interface ethernet $card/$port",
" shutdown",
" switchport mode access",
" speed 10G no-autoneg",
" no shutdown",
" exit");
}
}
if (@portlines) {
push(@config,
"spanning-tree mode rst",
" no disable",
" exit",
"no spanning-tree",
@portlines);
}
}
}
push(@config,
"write memory",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment