return CMD_WARNING;
}
- if (CHECK_FLAG (vrfp->status, ZEBRA_VRF_ACTIVE))
+ if (CHECK_FLAG (vrfp->status, VRF_ACTIVE))
{
vty_out (vty, "%% Only inactive VRFs can be deleted%s",
VTY_NEWLINE);
zlog_err("vrf_create(%s): corruption detected -- vrf with this "
"name exists already with vrf-id %u!", vrfp->name, vrfp->vrf_id);
- UNSET_FLAG(vrfp->status, ZEBRA_VRF_ACTIVE);
+ UNSET_FLAG(vrfp->status, VRF_ACTIVE);
if (vrf_master.vrf_new_hook)
(*vrf_master.vrf_new_hook) (0, name, &vrfp->info);
if (vrf_master.vrf_delete_hook)
(*vrf_master.vrf_delete_hook) (vrf->vrf_id, vrf->name, &vrf->info);
- if (CHECK_FLAG (vrf->status, ZEBRA_VRF_ACTIVE))
+ if (CHECK_FLAG (vrf->status, VRF_ACTIVE))
if_terminate (vrf->vrf_id, &vrf->iflist);
if (vrf->node)
static int
vrf_is_enabled (struct vrf *vrf)
{
- return vrf && CHECK_FLAG (vrf->status, ZEBRA_VRF_ACTIVE);
+ return vrf && CHECK_FLAG (vrf->status, VRF_ACTIVE);
/*Pending: figure out the real use of this routine.. it used to be..
return vrf && vrf->vrf_id == VRF_DEFAULT;
{
zebra_vrf_add_update (vrf_info_lookup (vrfp->vrf_id));
- if (! CHECK_FLAG (vrfp->status, ZEBRA_VRF_ACTIVE))
+ if (! CHECK_FLAG (vrfp->status, VRF_ACTIVE))
{
- SET_FLAG (vrfp->status, ZEBRA_VRF_ACTIVE);
+ SET_FLAG (vrfp->status, VRF_ACTIVE);
//Pending: Check if the equivalent of if_addr_wakeup (ifp) is needed here.
vrf_delete_update (struct vrf *vrfp)
{
/* Mark VRF as inactive */
- UNSET_FLAG (vrfp->status, ZEBRA_VRF_ACTIVE);
+ UNSET_FLAG (vrfp->status, VRF_ACTIVE);
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug ("VRF %s id %u is now inactive.",