if (nbr_str) {
struct ospf *ospf = NULL;
- ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
+ ospf = ospf_lookup_by_vrf(ifp->vrf);
if (ospf) {
oi = ospf_if_lookup_by_local_addr(ospf, ifp, addr);
if (oi)
if (argc == 1) {
struct ospf *ospf = NULL;
- ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
+ ospf = ospf_lookup_by_vrf(ifp->vrf);
if (ospf) {
oi = ospf_if_lookup_by_local_addr(ospf, ifp, addr);
if (oi)
argv_find(argv, argc, "area", &idx);
areaid = argv[idx + 1]->arg;
- if (ifp->vrf_id && !instance)
- ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
+ if (ifp->vrf && ifp->vrf->vrf_id && !instance)
+ ospf = ospf_lookup_by_vrf(ifp->vrf);
else
ospf = ospf_lookup_instance(instance);
if (argv_find(argv, argc, "(1-65535)", &idx))
instance = strtol(argv[idx]->arg, NULL, 10);
- if (ifp->vrf_id && !instance)
- ospf = ospf_lookup_by_vrf_id(ifp->vrf_id);
+ if (ifp->vrf && ifp->vrf->vrf_id && !instance)
+ ospf = ospf_lookup_by_vrf(ifp->vrf);
else
ospf = ospf_lookup_instance(instance);
continue;
vty_frame(vty, "!\n");
- if (ifp->vrf_id == VRF_DEFAULT)
+ if (ifp->vrf->vrf_id == VRF_DEFAULT)
vty_frame(vty, "interface %s\n", ifp->name);
else
vty_frame(vty, "interface %s vrf %s\n", ifp->name,