Commit 5d3501e5 authored by Mike Hibler's avatar Mike Hibler

grue for correctly recognizing Intel 2U box control interfaces

parent ae987100
#!/usr/bin/awk -f
/^pcib0: <Intel [0-9][0-9][0-9][0-9][0-9]BX / {
print "BX";
next
}
/^pcib0: <Intel [0-9][0-9][0-9][0-9][0-9]GX / {
print "GX";
next
}
/^pcib0:.*/ {
print "??";
next
}
......@@ -6,6 +6,8 @@ if [ $NODETYPE = 'pc600' ]; then
echo 'fxp4'
elif [ $NODETYPE = 'pc850' ]; then
echo 'fxp0'
elif [ $NODETYPE = 'pcL440GX' ]; then
echo 'fxp2'
elif [ $NODETYPE = 'pc1500' ]; then
echo 'xl0'
fi
# smux is a way of exporting route info via SNMP.
# You can turn it on if you have an SNMP daemon running.
smux off;
# no RIP routing
rip off;
# There be magic in here.
#
# Backbone contains the control network and is marked passive to avoid
# sending any OSPF traffic out on it.
#
# The other area is all the experimental interfaces. They have priority=1
# cuz that is what makes it work. Without that, info was not exchanged.
# I saw the priority setting in nexthop.com examples and just did it.
#
ospf on {
backbone {
interface fxp2 { passive; };
};
area 0.0.0.2 {
authtype none;
# XXX current fxp2 control boxes only have 2 experimental IFs
interface fxp0 { priority 1; };
interface fxp1 { priority 1; };
};
};
......@@ -8,6 +8,13 @@ fi
if [ x$cpuspeed = x ] || [ $cpuspeed = 0 ]; then
echo "unknown";
else
# XXX hack for minibed
elif [ $cpuspeed = "850" -a -x '/etc/testbed/chipset.awk' ]; then
if [ `/etc/testbed/chipset.awk /var/run/dmesg.boot` = "GX" ]; then
echo pcL440GX;
fi
else
echo pc$cpuspeed;
fi
#!/bin/sh
if [ `/etc/testbed/control_interface` = 'fxp2' ]; then
dhcp_interfaces="$dhcp_interfaces fxp2";
fi
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