Signed-off-by: Lin Ma <lma(a)suse.com>
---
tools/virsh-domain.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index d50fdbad26..ed7307cdb6 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -12291,12 +12291,7 @@ static const vshCmdOptDef opts_detach_interface[] = {
.flags = VSH_OFLAG_REQ,
.help = N_("network interface type")
},
- {.name = "mac",
- .type = VSH_OT_STRING,
- .completer = virshDomainInterfaceCompleter,
- .completer_flags = VIRSH_DOMAIN_INTERFACE_COMPLETER_MAC,
- .help = N_("MAC address")
- },
+ VIRSH_DOMAIN_OPT_MAC(N_("MAC address"), VSH_OFLAG_REQ_OPT),
VIRSH_COMMON_OPT_DOMAIN_PERSISTENT,
VIRSH_COMMON_OPT_DOMAIN_CONFIG,
VIRSH_COMMON_OPT_DOMAIN_LIVE,
--
2.26.0