]> andersk Git - moira.git/blobdiff - clients/moira/menus.c
added hosttable stuff
[moira.git] / clients / moira / menus.c
index 1000ffeb2cb40df598dffc78338841f366b73e20..a911fb7dc90dc5f855ea8effe8bdbe03d946c2a1 100644 (file)
@@ -375,6 +375,57 @@ Menu filesys_menu = {
   }
 };
 
+Menu subnet_menu = {
+  NULLFUNC,
+  NULLFUNC,
+  "Subnet Menu",
+  5,
+  {
+    { ShowSubnetInfo, NULLMENU, 2, {
+      {"show","Get subnet information"},
+      {"name","Subnet's Name: "}
+    } },
+    { AddSubnet, NULLMENU, 2, {
+      {"add","Add a new subnet"},
+      {"name","Subnet's Name: "},
+    } },
+    { UpdateSubnet, NULLMENU, 2, {
+      {"update","Update subnet information"},
+      {"name","Subnet's Name: "},
+    } },
+    { DeleteSubnet, NULLMENU, 2, {
+      {"delete","Delete this subnet"},
+      {"name","Subnet's Name: "}
+    } },
+    SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+  }
+};
+
+Menu cname_menu = {
+  NULLFUNC,
+  NULLFUNC,
+  "Host Alias Menu",
+  4,
+  {
+    { ShowCname, NULLMENU, 3, {
+      {"show","Get host alias information"},
+      {"alias","Alias Name (Cname): "},
+      {"host","Canonical Host Name: "}
+    } },
+    { AddCname, NULLMENU, 3, {
+      {"add","Add a new host alias"},
+      {"alias","Alias Name (Cname): "},
+      {"host","Canonical Host Name: "}
+    } },
+    { DeleteCname, NULLMENU, 3, {
+      {"delete","Delete this alias"},
+      {"alias","Alias Name (Cname): "},
+      {"host","Canonical Host Name: "}
+    } },
+    SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+  }
+};
+
 /*
  * Machine Menu
  */
@@ -383,12 +434,19 @@ Menu machine_menu = {
   NULLFUNC,
   NULLFUNC,
   "Machine Menu",
-  6,
+  7,
   {
     { ShowMachineInfo, NULLMENU, 2, {
       {"show","Get machine information"},
       {"name","Machine's Name: "}
     } },
+    { ShowMachineQuery, NULLMENU, 5, {
+       {"query", "Lookup machines"},
+       {"name", "Machine Name (or leave empty to match any): "},
+       {"address", "Address in dotted notation (or leave empty to match any): "},
+       {"location", "Location (or leave empty to match any): "},
+       {"contact", "Contact person (or leave empty to match any): "}
+    } },
     { AddMachine, NULLMENU, 2, {
       {"add","Add a new machine"},
       {"name","Machine's Name: "},
@@ -401,8 +459,8 @@ Menu machine_menu = {
       {"delete","Delete this machine"},
       {"name","Machine's Name: "}
     } },
+    SUBMENU("cnames","Alias names for machines", &cname_menu),
     SUBMENU("mappings","Machine To Cluster Mappings Menu", &mappings_menu),
-    SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
   }
 };
 
@@ -712,12 +770,13 @@ Menu moira_top_menu = {
   NULLFUNC,
   NULLFUNC,
   "Moira Database Manipulation",
-  11,
+  12,
   {
     SUBMENU("cluster","Cluster Menu",&cluster_menu),
     SUBMENU("filesys","Filesystem Menu", &filesys_menu),
     SUBMENU("list","Lists and Group Menu", &list_menu),
     SUBMENU("machine","Machine Menu",&machine_menu),
+    SUBMENU("subnet", "Subnet Menu", &subnet_menu),
     SUBMENU("nfs","NFS Physical Menu", &nfsphys_menu),
     SUBMENU("user","User Menu", &user_menu),
     SUBMENU("printcap", "Printcap Printer Menu", &printer_menu),
This page took 0.077967 seconds and 4 git commands to generate.