* "iface-edit" command
*/
static const vshCmdInfo info_interface_edit[] = {
- {"help", N_("edit XML configuration for a physical host interface")},
- {"desc", N_("Edit the XML configuration for a physical host interface.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("edit XML configuration for a physical host interface")
+ },
+ {.name = "desc",
+ .data = N_("Edit the XML configuration for a physical host interface.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_edit[] = {
* "iface-list" command
*/
static const vshCmdInfo info_interface_list[] = {
- {"help", N_("list physical host interfaces")},
- {"desc", N_("Returns list of physical host interfaces.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("list physical host interfaces")
+ },
+ {.name = "desc",
+ .data = N_("Returns list of physical host interfaces.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_list[] = {
* "iface-name" command
*/
static const vshCmdInfo info_interface_name[] = {
- {"help", N_("convert an interface MAC address to interface name")},
- {"desc", ""},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("convert an interface MAC address to interface name")
+ },
+ {.name = "desc",
+ .data = ""
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_name[] = {
* "iface-mac" command
*/
static const vshCmdInfo info_interface_mac[] = {
- {"help", N_("convert an interface name to interface MAC address")},
- {"desc", ""},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("convert an interface name to interface MAC address")
+ },
+ {.name = "desc",
+ .data = ""
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_mac[] = {
* "iface-dumpxml" command
*/
static const vshCmdInfo info_interface_dumpxml[] = {
- {"help", N_("interface information in XML")},
- {"desc", N_("Output the physical host interface information as an XML dump to stdout.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("interface information in XML")
+ },
+ {.name = "desc",
+ .data = N_("Output the physical host interface information as an XML dump to stdout.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_dumpxml[] = {
* "iface-define" command
*/
static const vshCmdInfo info_interface_define[] = {
- {"help", N_("define (but don't start) a physical host interface from an XML file")},
- {"desc", N_("Define a physical host interface.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("define (but don't start) a physical host interface from an XML file")
+ },
+ {.name = "desc",
+ .data = N_("Define a physical host interface.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_define[] = {
* "iface-undefine" command
*/
static const vshCmdInfo info_interface_undefine[] = {
- {"help", N_("undefine a physical host interface (remove it from configuration)")},
- {"desc", N_("undefine an interface.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("undefine a physical host interface (remove it from configuration)")
+ },
+ {.name = "desc",
+ .data = N_("undefine an interface.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_undefine[] = {
* "iface-start" command
*/
static const vshCmdInfo info_interface_start[] = {
- {"help", N_("start a physical host interface (enable it / \"if-up\")")},
- {"desc", N_("start a physical host interface.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("start a physical host interface (enable it / \"if-up\")")
+ },
+ {.name = "desc",
+ .data = N_("start a physical host interface.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_start[] = {
* "iface-destroy" command
*/
static const vshCmdInfo info_interface_destroy[] = {
- {"help", N_("destroy a physical host interface (disable it / \"if-down\")")},
- {"desc", N_("forcefully stop a physical host interface.")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("destroy a physical host interface (disable it / \"if-down\")")
+ },
+ {.name = "desc",
+ .data = N_("forcefully stop a physical host interface.")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_destroy[] = {
* "iface-begin" command
*/
static const vshCmdInfo info_interface_begin[] = {
- {"help", N_("create a snapshot of current interfaces settings, "
+ {.name = "help",
+ .data = N_("create a snapshot of current interfaces settings, "
"which can be later committed (iface-commit) or "
- "restored (iface-rollback)")},
- {"desc", N_("Create a restore point for interfaces settings")},
- {NULL, NULL}
+ "restored (iface-rollback)")
+ },
+ {.name = "desc",
+ .data = N_("Create a restore point for interfaces settings")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_begin[] = {
* "iface-commit" command
*/
static const vshCmdInfo info_interface_commit[] = {
- {"help", N_("commit changes made since iface-begin and free restore point")},
- {"desc", N_("commit changes and free restore point")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("commit changes made since iface-begin and free restore point")
+ },
+ {.name = "desc",
+ .data = N_("commit changes and free restore point")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_commit[] = {
* "iface-rollback" command
*/
static const vshCmdInfo info_interface_rollback[] = {
- {"help", N_("rollback to previous saved configuration created via iface-begin")},
- {"desc", N_("rollback to previous restore point")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("rollback to previous saved configuration created via iface-begin")
+ },
+ {.name = "desc",
+ .data = N_("rollback to previous restore point")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_rollback[] = {
* "iface-bridge" command
*/
static const vshCmdInfo info_interface_bridge[] = {
- {"help", N_("create a bridge device and attach an existing network device to it")},
- {"desc", N_("bridge an existing network device")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("create a bridge device and attach an existing network device to it")
+ },
+ {.name = "desc",
+ .data = N_("bridge an existing network device")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_bridge[] = {
* "iface-unbridge" command
*/
static const vshCmdInfo info_interface_unbridge[] = {
- {"help", N_("undefine a bridge device after detaching its slave device")},
- {"desc", N_("unbridge a network device")},
- {NULL, NULL}
+ {.name = "help",
+ .data = N_("undefine a bridge device after detaching its slave device")
+ },
+ {.name = "desc",
+ .data = N_("unbridge a network device")
+ },
+ {.name = NULL}
};
static const vshCmdOptDef opts_interface_unbridge[] = {