Commit 7f6794ad authored by Shashi Guruprasad's avatar Shashi Guruprasad

Changed os_ifconfig_line() to attach an rtabid if present.

parent 3d1ece48
......@@ -157,7 +157,17 @@ sub os_ifconfig_line($$$$$$;$)
$mediaopt = $IFC_FDUPLEX;
$uplines = sprintf($IFCONFIG, $iface, $inet, $mask, $media, $mediaopt);
$uplines = "";
# Must set route table id before assigning IP address so that interface
# route winds up in the correct table.
if (defined($rtabid)) {
$uplines .= "$IFCONFIGBIN $iface rtabid $rtabid\n ";
$uplines .= sprintf($IFCONFIG, $iface, $inet, $mask, $media, $mediaopt);
$downlines = "$IFCONFIGBIN $iface down\n";
if ($aliases ne "") {
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