I think you do not need to do this, because the control plane will do such 
route stuff, but the premise is that you have listened to the change of the 
control plane.



[email protected]
 
From: Matej Klotton -X (mklotton - PANTHEON TECHNOLOGIES at Cisco)
Date: 2017-01-02 23:29
To: Neale Ranns (nranns); [email protected]
Subject: Re: [vpp-dev] admin_up_down flag for loopback interface
Hi Neale, 
 
> Yes.
> The golden rule of FIB programming – do as you’re told and no more. The
> route will stay in the FIB until the control plane chooses to remove them –
> and this is the same control plane that has chosen to admin down the
> interface.
 
So the correct API calls, for disabling interface, should look like:
  sw_interface_set_flags(admin_up_down=0)
  then should I remove address from interface or  remove route from fib?
 
Thanks, 
  Matej
 
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to