add duplicate cmd entries for vlan and vlandev that are marked !clone

so they can be used when not doing a create operation

Reviewed by:	ed
This commit is contained in:
Sam Leffler 2008-10-02 20:03:41 +00:00
parent 0cf07094ca
commit 24994b364c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183554

View File

@ -174,6 +174,9 @@ DECL_CMD_FUNC(unsetvlandev, val, d)
static struct cmd vlan_cmds[] = {
DEF_CLONE_CMD_ARG("vlan", setvlantag),
DEF_CLONE_CMD_ARG("vlandev", setvlandev),
/* NB: non-clone cmds */
DEF_CMD_ARG("vlan", setvlantag),
DEF_CMD_ARG("vlandev", setvlandev),
/* XXX For compatibility. Should become DEF_CMD() some day. */
DEF_CMD_OPTARG("-vlandev", unsetvlandev),
DEF_CMD("vlanmtu", IFCAP_VLAN_MTU, setifcap),