]> git.proxmox.com Git - mirror_frr.git/commit - lib/zclient.c
zebra: fix interface lookup for vrf configuration
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 10 Feb 2016 17:53:21 +0000 (09:53 -0800)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 10 Feb 2016 21:01:16 +0000 (13:01 -0800)
commit85f9da7f786a8f8d922e254b3a6159068f50b9f6
tree0ef60c189f8c3b2e1f174ce9c88983f5c6b43d95
parente6a59b35055cbff52915e292bd7da156aee03787
zebra: fix interface lookup for vrf configuration

Ticket:CM-9073
Reviewed By: sharpd
Testing Done:Manual, see ticket

Changed logic when "interface swpxx <vrf foo>" entered so that:

1. it matches when the command is entered without a vrf but the interface already exists in a vrf.
2. If the command is entered with a vrf name that is different than is defined by the kernel, the command is rejected.
3. If the call is made from other than the vty session, believe the new information and update the vrf accordingly.
lib/if.c
lib/if.h
lib/zclient.c