}
};
+/*
+ * Machine to Container Mappings Menu
+ */
+
+Menu cmappings_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Machine to Container Mappings Menu",
+ 5,
+ {
+ { MachineToContainerMap, NULLMENU, 2, {
+ {"map", "Show Machine to container mapping"},
+ {"name", "Machine's Name: "}
+ } },
+ { AddMachineToContainer, NULLMENU, 3, {
+ {"addcontainer", "Add machine to a container"},
+ {"name", "Machine's Name: "},
+ {"container", "Container's Name: "},
+ } },
+ { RemoveMachineFromContainer, NULLMENU, 3, {
+ {"remcontainer", "Remove machine from a container"},
+ {"name", "Machine's Name: "},
+ {"container", "Container's Name: "},
+ } },
+ { GetMachinesOfContainer, NULLMENU, 2, {
+ {"machofcont", "Show all machines in a container"},
+ {"name", "Container's Name: "},
+ } },
+ SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode),
+ }
+};
+
/*
* Post Office Box Menu
*/
NULLFUNC,
NULLFUNC,
"Machine Menu",
- 8,
+ 9,
{
{ ShowMachineInfo, NULLMENU, 2, {
{"show", "Get machine information"},
{"network", "Network (or leave empty to match any): "}
} },
SIMPLEFUNC("owner", "Lookup machines by owner", MachineByOwner),
+ SIMPLEFUNC("acctnumber", "Lookup machines by account number",
+ MachineByAcctNumber),
{ AddMachine, NULLMENU, 2, {
{"add", "Add a new machine"},
{"network", "Network assignment: "},
{"id", "Show user information by ID number"},
{"ID number", "ID number: "}
} },
+ SIMPLEFUNC("sponsor", "Lookup users by sponsor", UserBySponsor),
{UpdateUser, NULLMENU, 2, {
{"modify", "Change all user fields"},
{"login", "Login name: "}
}
};
+/*
+ * Container Menu
+ */
+
+Menu container_menu = {
+ NULLFUNC,
+ NULLFUNC,
+ "Container Menu",
+ 8,
+ {
+ { ShowContainerInfo, NULLMENU, 2, {
+ {"show", "Get container information"},
+ {"name", "Container's Name: "}
+ } },
+ { AddContainer, NULLMENU, 2, {
+ {"add", "Add a new container"},
+ {"name", "Container's Name: "}
+ } },
+ { UpdateContainer, NULLMENU, 2, {
+ {"update", "Update container information"},
+ {"name", "Container's Name: "}
+ } },
+ { DeleteContainer, NULLMENU, 2, {
+ {"delete", "Delete this container"},
+ {"name", "Container's Name: "}
+ } },
+ { GetSubContainers, NULLMENU, 2, {
+ {"subcont", "Get subcontainers of container"},
+ {"name", "Container's Name: "}
+ } },
+ SIMPLEFUNC("toplevel", "Get all top level containers", GetTopLevelCont),
+ SUBMENU("mappings", "Machine to Container Mappings Menu", &cmappings_menu),
+ SIMPLEFUNC("verbose", "Toggle Verbosity of Delete", ToggleVerboseMode)
+ }
+};
+
/*
* Miscellaneous Menu
*/
NULLFUNC,
NULLFUNC,
"Moira Database Manipulation",
- 11,
+ 13,
{
SUBMENU("cluster", "Cluster Menu", &cluster_menu),
SUBMENU("filesys", "Filesystem Menu", &filesys_menu),
SUBMENU("zephyr", "Zephyr ACLS Menu", &zephyr_menu),
SUBMENU("dcm", "DCM Menu", &dcm_menu),
SUBMENU("acl", "Generic ACL Menu", &acl_menu),
+ SUBMENU("container", "Container Menu", &container_menu),
SUBMENU("misc", "Miscellaneous Menu", &misc_menu)
}
};