summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@cumulusnetworks.com>2018-01-11 09:00:23 -0800
committerGitHub <noreply@github.com>2018-01-11 09:00:23 -0800
commit9bb77a5b3dec12a71ef816699e491e2b832343ec (patch)
treee046f33132343f975e28bfcf2b9999c69a1c70eb /lib/if.c
parent523cafc4181b4d9f26147d44f71ba0d9b7adef53 (diff)
parentc1240044fbf081bb7407b1449d3954e4b63fec9f (diff)
Merge branch 'master' into evpn-symmetric-routing
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index 0fe7da1c0d..8e6a9a6968 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -663,8 +663,9 @@ DEFUN_NOSH (no_interface,
"Interface's name\n"
VRF_CMD_HELP_STR)
{
+ int idx_vrf = 4;
const char *ifname = argv[2]->arg;
- const char *vrfname = (argc > 3) ? argv[3]->arg : NULL;
+ const char *vrfname = (argc > 3) ? argv[idx_vrf]->arg : NULL;
// deleting interface
struct interface *ifp;