mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 23:52:18 +00:00
lib: add ZEBRA_FLAG_OUTOFSYNC to dump_flags function
Right where the zapi route flags are defined, there's a comment asking that the flag-dumper-function also be updated. Also apply clang-format's preferences, so next person won't have to. Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
parent
4cedd22253
commit
c943b71c9f
@ -4670,21 +4670,25 @@ char *zclient_dump_route_flags(uint32_t flags, char *buf, size_t len)
|
||||
return buf;
|
||||
}
|
||||
|
||||
snprintfrr(
|
||||
buf, len, "%s%s%s%s%s%s%s%s%s%s",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_ALLOW_RECURSION) ? "Recursion "
|
||||
: "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_SELFROUTE) ? "Self " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_IBGP) ? "iBGP " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_SELECTED) ? "Selected " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_FIB_OVERRIDE) ? "Override " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_EVPN_ROUTE) ? "Evpn " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_RR_USE_DISTANCE) ? "RR Distance "
|
||||
: "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_TRAPPED) ? "Trapped " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_OFFLOADED) ? "Offloaded " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_OFFLOAD_FAILED) ? "Offload Failed "
|
||||
: "");
|
||||
snprintfrr(buf, len, "%s%s%s%s%s%s%s%s%s%s%s",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_ALLOW_RECURSION) ? "Recursion "
|
||||
: "",
|
||||
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_SELFROUTE) ? "Self " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_IBGP) ? "iBGP " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_SELECTED) ? "Selected " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_FIB_OVERRIDE) ? "Override " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_EVPN_ROUTE) ? "Evpn " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_RR_USE_DISTANCE) ? "RR Distance "
|
||||
: "",
|
||||
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_TRAPPED) ? "Trapped " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_OFFLOADED) ? "Offloaded " : "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_OFFLOAD_FAILED)
|
||||
? "Offload Failed "
|
||||
: "",
|
||||
CHECK_FLAG(flags, ZEBRA_FLAG_OUTOFSYNC) ? "OutOfSync " : "");
|
||||
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user