Commit 8100df44 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add some defines for node routertypes.

parent 109db16c
......@@ -165,6 +165,9 @@ use Exporter;
TBDB_IFACEROLE_CONTROL TBDB_IFACEROLE_EXPERIMENT
TBDB_IFACEROLE_JAIL TBDB_IFACEROLE_FAKE TBDB_IFACEROLE_OTHER
TBDB_ROUTERTYPE_NONE TBDB_ROUTERTYPE_OSPF
TBDB_ROUTERTYPE_STATIC TBDB_ROUTERTYPE_MANUAL
max min
);
......@@ -517,6 +520,12 @@ sub TBDB_IFACEROLE_JAIL() { "jail"; }
sub TBDB_IFACEROLE_FAKE() { "fake"; }
sub TBDB_IFACEROLE_OTHER() { "other"; }
# Routertypes.
sub TBDB_ROUTERTYPE_NONE() { "none"; }
sub TBDB_ROUTERTYPE_OSPF() { "ospf"; }
sub TBDB_ROUTERTYPE_STATIC() { "static"; }
sub TBDB_ROUTERTYPE_MANUAL() { "manual"; }
#
# Auth stuff.
#
......
......@@ -160,7 +160,7 @@ my %nodeportlist = ();
# IPs later when filling in the virt_routes table.
#
while (my ($vname,$ips,$routertype) = $query_result->fetchrow_array) {
if (!$force && $routertype ne "static") {
if (!$force && $routertype ne TBDB_ROUTERTYPE_STATIC()) {
next;
}
$dostatic++;
......
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