summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2018-01-06 20:22:32 +0000
committerbryanv <bryanv@FreeBSD.org>2018-01-06 20:22:32 +0000
commite3e5b73481296937b221c398cc5ae4c8bd22ca87 (patch)
treec537ea2e5eb78bfb839b605aa22c187dcdabe320 /sbin
parent398541ce5847c7f10480dc86eee27d7ddeb7183a (diff)
downloadFreeBSD-src-e3e5b73481296937b221c398cc5ae4c8bd22ca87.zip
FreeBSD-src-e3e5b73481296937b221c398cc5ae4c8bd22ca87.tar.gz
MFC r326654:
Use consistent name for the vxlan VNI parameter name and provide shorthand
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/ifvxlan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifvxlan.c b/sbin/ifconfig/ifvxlan.c
index 91c2538..ba4f7fa 100644
--- a/sbin/ifconfig/ifvxlan.c
+++ b/sbin/ifconfig/ifvxlan.c
@@ -594,6 +594,7 @@ setvxlan_flush(const char *val, int d, int s, const struct afswtch *afp)
static struct cmd vxlan_cmds[] = {
+ DEF_CLONE_CMD_ARG("vni", setvxlan_vni),
DEF_CLONE_CMD_ARG("vxlanid", setvxlan_vni),
DEF_CLONE_CMD_ARG("vxlanlocal", setvxlan_local),
DEF_CLONE_CMD_ARG("vxlanremote", setvxlan_remote),
@@ -608,7 +609,8 @@ static struct cmd vxlan_cmds[] = {
DEF_CLONE_CMD("vxlanlearn", 1, setvxlan_learn),
DEF_CLONE_CMD("-vxlanlearn", 0, setvxlan_learn),
- DEF_CMD_ARG("vxlanvni", setvxlan_vni),
+ DEF_CMD_ARG("vni", setvxlan_vni),
+ DEF_CMD_ARG("vxlanid", setvxlan_vni),
DEF_CMD_ARG("vxlanlocal", setvxlan_local),
DEF_CMD_ARG("vxlanremote", setvxlan_remote),
DEF_CMD_ARG("vxlangroup", setvxlan_group),
OpenPOWER on IntegriCloud