Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddRPMCmd = &subcommands.Command{ UsageLine: "rpm [Options...]", ShortDesc: "Add a rpm to a rack", LongDesc: cmdhelp.AddRPMLongDesc, CommandRun: func() subcommands.CommandRun { c := &addRPM{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.RPMFileText) c.Flags.BoolVar(&c.interactive, "i", false, "enable interactive mode for input") c.Flags.StringVar(&c.rackName, "rack", "", "name of the rack to associate the rpm") c.Flags.StringVar(&c.rpmName, "name", "", "the name of the rpm to add") c.Flags.StringVar(&c.macAddress, "mac", "", "the mac address of the rpm to add") c.Flags.StringVar(&c.description, "desc", "", "the description of the rpm to add") c.Flags.IntVar(&c.capacity, "capacity", 0, "indicate how many ports this rpm support") c.Flags.StringVar(&c.tags, "tags", "", "comma separated tags. You can only append/add new tags here.") return c }, }
AddRPMCmd add RPM in the lab.
View Source
var DeleteRPMCmd = &subcommands.Command{ UsageLine: "rpm {RPM Name}", ShortDesc: "Delete a rpm on a rack", LongDesc: `Delete a rpm on a rack. Example: shivas delete rpm {RPM Name} Deletes the given rpm.`, CommandRun: func() subcommands.CommandRun { c := &deleteRPM{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) return c }, }
DeleteRPMCmd delete RPM by given name.
View Source
var GetRPMCmd = &subcommands.Command{ UsageLine: "rpm ...", ShortDesc: "Get rpm details by filters", LongDesc: `Get rpm details by filters. Example: shivas get rpm name1 name2 shivas get rpm -n 10 shivas get rpm -tag tag1 -zone zone2 Gets the rpm and prints the output in the user-specified format.`, CommandRun: func() subcommands.CommandRun { c := &getRPM{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.outputFlags.Register(&c.Flags) c.Flags.IntVar(&c.pageSize, "n", 0, cmdhelp.ListPageSizeDesc) c.Flags.BoolVar(&c.keysOnly, "keys", false, cmdhelp.KeysOnlyText) c.Flags.Var(flag.StringSlice(&c.zones), "zone", "Name(s) of a zone to filter by. Can be specified multiple times."+cmdhelp.ZoneFilterHelpText) c.Flags.Var(flag.StringSlice(&c.racks), "rack", "Name(s) of a rack to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.tags), "tag", "Name(s) of a tag to filter by. Can be specified multiple times.") c.Flags.Var(flag.StringSlice(&c.states), "state", "Name(s) of a state to filter by. Can be specified multiple times."+cmdhelp.StateFilterHelpText) return c }, }
GetRPMCmd get rpm by given name.
View Source
var UpdateRPMCmd = &subcommands.Command{ UsageLine: "rpm [Options...]", ShortDesc: "Update a rpm on a rack", LongDesc: cmdhelp.UpdateRPMLongDesc, CommandRun: func() subcommands.CommandRun { c := &updateRPM{} c.authFlags.Register(&c.Flags, site.DefaultAuthOptions) c.envFlags.Register(&c.Flags) c.commonFlags.Register(&c.Flags) c.Flags.StringVar(&c.newSpecsFile, "f", "", cmdhelp.RPMFileText) c.Flags.StringVar(&c.vlanName, "vlan", "", "the vlan to assign the rpm to") c.Flags.BoolVar(&c.deleteVlan, "delete-vlan", false, "if deleting the ip assignment for the rpm") c.Flags.StringVar(&c.ip, "ip", "", "the ip to assign the rpm to") c.Flags.StringVar(&c.rackName, "rack", "", "name of the rack to associate the rpm.") c.Flags.StringVar(&c.rpmName, "name", "", "the name of the rpm to update") c.Flags.StringVar(&c.macAddress, "mac", "", "the mac address of the rpm to update"+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.description, "desc", "", "the description of the switch to update ."+cmdhelp.ClearFieldHelpText) c.Flags.IntVar(&c.capacity, "capacity", 0, "indicate how many ports this switch support. "+"To clear this field set it to -1.") c.Flags.StringVar(&c.tags, "tags", "", "comma separated tags. You can only append/add new tags here. "+cmdhelp.ClearFieldHelpText) c.Flags.StringVar(&c.state, "state", "", cmdhelp.StateHelp) return c }, }
UpdateRPMCmd Update rpm by given name.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.