diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-07-15 18:29:41 -0400 | 
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-07-15 19:24:24 -0400 | 
| commit | 0ef63eb5cc5c9ddddb972a2327318e519192b142 (patch) | |
| tree | 1dcf3efa548f073b9b4dcb861eb9f72a029f6902 /zebra/zebra_evpn_mac.c | |
| parent | f8ac2afb537be0275805bcf04f064eefe1923900 (diff) | |
zebra: correctly display one debug flag about ES Peer
Since the `mac->flags` with `ZEBRA_MAC_ES_PEER_ACTIVE` is about ES Peer,
it should be displayed as `PEER Active`.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
| -rw-r--r-- | zebra/zebra_evpn_mac.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c index 38a36cc7ae..cbdc17653b 100644 --- a/zebra/zebra_evpn_mac.c +++ b/zebra/zebra_evpn_mac.c @@ -374,8 +374,9 @@ static char *zebra_evpn_zebra_mac_flag_dump(struct zebra_mac *mac, char *buf,  								: "",  		CHECK_FLAG(mac->flags, ZEBRA_MAC_DUPLICATE) ? "DUP " : "",  		CHECK_FLAG(mac->flags, ZEBRA_MAC_FPM_SENT) ? "FPM " : "", -		CHECK_FLAG(mac->flags, ZEBRA_MAC_ES_PEER_ACTIVE) ? "LOC Active " -								 : "", +		CHECK_FLAG(mac->flags, ZEBRA_MAC_ES_PEER_ACTIVE) +			? "PEER Active " +			: "",  		CHECK_FLAG(mac->flags, ZEBRA_MAC_ES_PEER_PROXY) ? "PROXY " : "",  		CHECK_FLAG(mac->flags, ZEBRA_MAC_LOCAL_INACTIVE)  			? "LOC Inactive "  | 
