diff --git a/AUTHORS b/AUTHORS index e2a3f72934..cb1fc11d33 100644 --- a/AUTHORS +++ b/AUTHORS @@ -133,6 +133,7 @@ Patches have also been contributed by: Lai Jiangshan Harsh Prateek Bora John Morrissey + Osier Yang [....send patches to get your name here....] diff --git a/tools/virsh.c b/tools/virsh.c index 3e37b06329..2da9489ffd 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -8292,6 +8292,7 @@ static const vshCmdOptDef opts_attach_interface[] = { {"target", VSH_OT_DATA, 0, N_("target network name")}, {"mac", VSH_OT_DATA, 0, N_("MAC address")}, {"script", VSH_OT_DATA, 0, N_("script used to bridge network interface")}, + {"model", VSH_OT_DATA, 0, N_("model type")}, {"persistent", VSH_OT_BOOL, 0, N_("persist interface attachment")}, {NULL, 0, 0, NULL} }; @@ -8300,7 +8301,7 @@ static int cmdAttachInterface(vshControl *ctl, const vshCmd *cmd) { virDomainPtr dom = NULL; - char *mac, *target, *script, *type, *source; + char *mac, *target, *script, *type, *source, *model; int typ, ret = FALSE; unsigned int flags; virBuffer buf = VIR_BUFFER_INITIALIZER; @@ -8319,6 +8320,7 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd) target = vshCommandOptString(cmd, "target", NULL); mac = vshCommandOptString(cmd, "mac", NULL); script = vshCommandOptString(cmd, "script", NULL); + model = vshCommandOptString(cmd, "model", NULL); /* check interface type */ if (STREQ(type, "network")) { @@ -8345,6 +8347,8 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd) virBufferVSprintf(&buf, " \n", mac); if (script != NULL) virBufferVSprintf(&buf, "