]> andersk Git - moira.git/blobdiff - clients/stella/stella.c
Warn users that billing info for hosts on private subnets is superceded
[moira.git] / 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.982695 seconds and 4 git commands to generate.