]> andersk Git - moira.git/commitdiff
Warn users that billing info for hosts on private subnets is superceded
authorzacheiss <zacheiss>
Wed, 22 Aug 2001 08:08:41 +0000 (08:08 +0000)
committerzacheiss <zacheiss>
Wed, 22 Aug 2001 08:08:41 +0000 (08:08 +0000)
by billing information for the subnet.

clients/stella/stella.c

index ce130407c38d08354e40d9447e7652a09d563376..1df37978c1dd23eb19322170fccf8cdc8367b787 100644 (file)
@@ -690,6 +690,15 @@ int main(int argc, char **argv)
       show_host_info_unformatted(argv);
     else
       show_host_info(argv);
+    args[0] = argv[M_SUBNET];
+    status = wrap_mr_query("get_subnet", 1, args, store_host_info, argv);
+    if (status)
+      com_err(whoami, status, "while getting subnet information");
+    if (atoi(argv[SN_STATUS]) == SNET_STATUS_PRIVATE)
+      {
+       fprintf(stderr, "\nWarning:  This host is on a private subnet.\n");
+       fprintf(stderr, "Billing information shown is superceded by billing information for the subnet.\n");
+      }
   }
 
   /* list cluster mappings if needed */
This page took 0.043801 seconds and 5 git commands to generate.