]> andersk Git - moira.git/commitdiff
Deal with private subnets with more granularity than "Private".
authorzacheiss <zacheiss>
Sun, 16 Sep 2001 00:18:32 +0000 (00:18 +0000)
committerzacheiss <zacheiss>
Sun, 16 Sep 2001 00:18:32 +0000 (00:18 +0000)
clients/moira/cluster.c

index dbd75b54226c56e12d07494475ee48a8abd88422..98bb4819862a9ee57cd8d1e71e5ca7b81c44b542 100644 (file)
@@ -86,9 +86,11 @@ static char *states[] = {
 static char *subnet_states[] = {
   "Reserved (0)",
   "Billable (1)",
-  "Private (2)",
-  "Resnet (3)",
-  "Infrastructure (4)"
+  "Private, 10 Mbps (2)",
+  "Private, 100 Mbps (3)",
+  "Private, Other (4)",
+  "Resnet (5)",
+  "Infrastructure (6)"
 };
 
 static char *MacState(int state)
@@ -107,7 +109,7 @@ static char *SubnetState(int state)
 {
   static char buf[BUFSIZ];
 
-  if (state < 0 || state > 4)
+  if (state < 0 || state > 6)
     {
       sprintf(buf, "Unknown (%d)", state);
       return buf;
@@ -732,7 +734,7 @@ char **AskMCDInfo(char **info, int type, Bool name)
          if (isdigit(info[SN_STATUS][0]))
            break;
          Put_message("Valid status numbers:");
-         for (i = 0; i < 5; i++)
+         for (i = 0; i < 7; i++)
            Put_message(subnet_states[i]);
        }
       if (GetValueFromUser("Network's contact", &info[SN_CONTACT]) == SUB_ERROR)
This page took 0.091219 seconds and 5 git commands to generate.