Merge pull request #2748 from chiragshah6/evpn_dev

zebra: display consistant mac count
This commit is contained in:
Russ White 2018-07-29 07:53:31 -04:00 committed by GitHub
commit 3688ecb8d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,6 +244,7 @@ static uint32_t num_valid_macs(zebra_vni_t *zvni)
for (hb = hash->index[i]; hb; hb = hb->next) {
mac = (zebra_mac_t *)hb->data;
if (CHECK_FLAG(mac->flags, ZEBRA_MAC_REMOTE)
|| CHECK_FLAG(mac->flags, ZEBRA_MAC_LOCAL)
|| !CHECK_FLAG(mac->flags, ZEBRA_MAC_AUTO))
num_macs++;
}