]> andersk Git - moira.git/commitdiff
new status for GigE private subnets.
authorzacheiss <zacheiss>
Wed, 16 Jan 2002 21:40:39 +0000 (21:40 +0000)
committerzacheiss <zacheiss>
Wed, 16 Jan 2002 21:40:39 +0000 (21:40 +0000)
clients/moira/cluster.c
clients/stella/stella.c
server/qsetup.pc

index dfe442368eba350d9c920a1c109b141f3451bb4b..244aa939b085e136fa13a07d3edd1048f6287aad 100644 (file)
@@ -90,7 +90,8 @@ static char *subnet_states[] = {
   "Private, 100 Mbps (3)",
   "Private, Other (4)",
   "Resnet (5)",
-  "Infrastructure (6)"
+  "Infrastructure (6)",
+  "Private, 1000 Mbps (7)"
 };
 
 static char *MacState(int state)
@@ -109,7 +110,7 @@ static char *SubnetState(int state)
 {
   static char buf[BUFSIZ];
 
-  if (state < 0 || state > 6)
+  if (state < 0 || state > 7)
     {
       sprintf(buf, "Unknown (%d)", state);
       return buf;
@@ -298,7 +299,8 @@ static char *PrintMachInfo(char **info)
   if (stat)
     com_err(program_name, stat, " looking up subnet info");
   else if (atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_10MBPS ||
-          atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_100MBPS)
+          atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_100MBPS ||
+          atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE_1000MBPS)
     {
       Put_message("");
       sprintf(buf, "Warning:  This host is on a private subnet.");
@@ -734,7 +736,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 < 7; i++)
+         for (i = 0; i < 8; i++)
            Put_message(subnet_states[i]);
        }
       if (GetValueFromUser("Network's contact", &info[SN_CONTACT]) == SUB_ERROR)
index c9ceaab4c0544444a88a9ccaeb09a492a48deabd..ca0a0377ceefcf07a78b0c9b66094b0c402b4a12 100644 (file)
@@ -695,7 +695,8 @@ int main(int argc, char **argv)
     if (status)
       com_err(whoami, status, "while getting subnet information");
     if (atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_10MBPS ||
-       atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_100MBPS)
+       atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_100MBPS ||
+       atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE_1000MBPS)
       {
        fprintf(stderr, "\nWarning:  This host is on a private subnet.\n");
        fprintf(stderr, "Billing information shown is superseded by billing information for the subnet.\n");
index 83b6d228711faeecc169207b3c59b0a3b802f4d8..040d9533da8b32d7a1cc6c952f3af41dcb4fce65 100644 (file)
@@ -264,7 +264,8 @@ int setup_asnt(struct query *q, char *argv[], client *cl)
    * number.
    */
   if (status == SNET_STATUS_PRIVATE_10MBPS || 
-      status == SNET_STATUS_PRIVATE_100MBPS)
+      status == SNET_STATUS_PRIVATE_100MBPS ||
+      status == SNET_STATUS_PRIVATE_1000MBPS)
     {
       EXEC SQL SELECT account_number FROM accountnumbers
        WHERE account_number = :account_number;
This page took 0.20248 seconds and 5 git commands to generate.