diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-28 03:46:01 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-12-29 03:06:09 +0100 |
commit | 4a582888941f9ae9f148f2ba95afb60fedcf0d09 (patch) | |
tree | e426128e4cda1bc246452b609d4ed30d724f86fb /staticd | |
parent | Merge pull request #3535 from kareiva/master (diff) | |
download | frr-4a582888941f9ae9f148f2ba95afb60fedcf0d09.tar.xz frr-4a582888941f9ae9f148f2ba95afb60fedcf0d09.zip |
staticd: Do not ready prefix for printing till it's decoded
The static daemon is setting up the prefix for printing
before it is decoded when we get notified about our
route.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_zebra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 1e23f597b..d6db60d3e 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -154,11 +154,11 @@ static int route_notify_owner(int command, struct zclient *zclient, uint32_t table_id; char buf[PREFIX_STRLEN]; - prefix2str(&p, buf, sizeof(buf)); - if (!zapi_route_notify_decode(zclient->ibuf, &p, &table_id, ¬e)) return -1; + prefix2str(&p, buf, sizeof(buf)); + switch (note) { case ZAPI_ROUTE_FAIL_INSTALL: zlog_warn("%s: Route %s failed to install for table: %u", |