diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-10 21:54:35 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-18 00:43:47 +0200 |
commit | d7b3ad40165abcd8073c694456a6b34b519806e9 (patch) | |
tree | b68170b4e34af66a35d04f577ea1f96020268938 /pbrd/pbr_zebra.c | |
parent | lib: Store nexthop information independently (diff) | |
download | frr-d7b3ad40165abcd8073c694456a6b34b519806e9.tar.xz frr-d7b3ad40165abcd8073c694456a6b34b519806e9.zip |
pbrd: Use proper decode function for interface
Use a proper decode function for a interface state change.
Ticket: CM-20489
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | pbrd/pbr_zebra.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/pbrd/pbr_zebra.c b/pbrd/pbr_zebra.c index 931874748..4e5b5f3dd 100644 --- a/pbrd/pbr_zebra.c +++ b/pbrd/pbr_zebra.c @@ -45,17 +45,6 @@ DEFINE_MTYPE_STATIC(PBRD, PBR_INTERFACE, "PBR Interface") /* Zebra structure to hold current status. */ struct zclient *zclient; -static struct interface *zebra_interface_if_lookup(struct stream *s) -{ - char ifname_tmp[INTERFACE_NAMSIZ]; - - /* Read interface name. */ - stream_get(ifname_tmp, s, INTERFACE_NAMSIZ); - - /* And look it up. */ - return if_lookup_by_name(ifname_tmp, VRF_DEFAULT); -} - struct pbr_interface *pbr_if_new(struct interface *ifp) { struct pbr_interface *pbr_ifp; @@ -140,7 +129,7 @@ static int interface_state_up(int command, struct zclient *zclient, zebra_size_t length, vrf_id_t vrf_id) { - zebra_interface_if_lookup(zclient->ibuf); + zebra_interface_state_read(zclient->ibuf, vrf_id); return 0; } |