Merge pull request #1599 from chiragshah6/mdev

ospfd: Fix no passive interface command parsing
This commit is contained in:
Jafar Al-Gharaibeh 2018-01-08 11:36:45 -06:00 committed by GitHub
commit 4060fcc47b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -534,11 +534,11 @@ DEFUN (no_ospf_passive_interface,
}
if (ospf->vrf_id != VRF_UNKNOWN)
ifp = if_get_by_name(argv[1]->arg, ospf->vrf_id, 0);
ifp = if_get_by_name(argv[2]->arg, ospf->vrf_id, 0);
if (ifp == NULL) {
vty_out(vty, "interface %s not found.\n",
(char *)argv[1]->arg);
(char *)argv[2]->arg);
return CMD_WARNING_CONFIG_FAILED;
}