* include/libvirt/virterror.h src/virterror.c: if a driver's
virInterfaceLookupByMACString() function finds more than one interface
with the desired MAC Address, this new error is raised.
VIR_WAR_NO_INTERFACE, /* failed to start interface driver */
VIR_ERR_NO_INTERFACE, /* interface driver not running */
VIR_ERR_INVALID_INTERFACE, /* invalid interface object */
+ VIR_ERR_MULTIPLE_INTERFACES, /* more than one matching interface found */
} virErrorNumber;
/**
else
errmsg = _("invalid interface pointer in %s");
break;
+ case VIR_ERR_MULTIPLE_INTERFACES:
+ if (info == NULL)
+ errmsg = _("multiple matching interfaces found");
+ else
+ errmsg = _("multiple matching interfaces found: %s");
+ break;
}
return (errmsg);
}