Commit ec75f921 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix.

parent b7cdc10a
......@@ -385,6 +385,10 @@ sub getExperimentTrunks($$@) {
# shared lan are sometimes shared nodes! Confused yet?
#
foreach my $vlanid (@vlans) {
# Allow vlan list to be vlan objects.
$vlanid = $vlanid->id()
if (ref($vlanid));
foreach my $port (getVlanPorts($vlanid)) {
next
if (!$port->trunk());
......@@ -452,6 +456,10 @@ sub getExperimentCurrentTrunks($$@) {
# shared lan are sometimes shared nodes! Confused yet?
#
foreach my $vlanid (@vlans) {
# Allow vlan list to be vlan objects.
$vlanid = $vlanid->id()
if (ref($vlanid));
my @vlanports = getExperimentVlanPorts($vlanid);
foreach my $port (@vlanports) {
......
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