Commit e410c9ee authored by Weibin Sun's avatar Weibin Sun
Browse files

hack in ptopgen for fixed interfaces on switch nodes

parent 337e41d5
...@@ -778,6 +778,15 @@ foreach $node (@nodenames) { ...@@ -778,6 +778,15 @@ foreach $node (@nodenames) {
push(@features, "FBSD-NSE:0.0"); push(@features, "FBSD-NSE:0.0");
} }
#
# XXX: Temporary hack - don't march switches that are testnodes
# as having class 'switch' - assign treats those specially. We
# use the knowledge that 'real' switches don't hit this point!
#
if ($class eq "switch") {
$class = $type;
}
# Might be equal, which assign would sum as two, not one! # Might be equal, which assign would sum as two, not one!
if ($type ne $class) { if ($type ne $class) {
push(@types, "$class:1"); push(@types, "$class:1");
......
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