nh_ids[i].id);
strlcat(nh_str, nh_buf, sizeof(nh_str));
}
- zlog_debug("es %s nhg 0x%x add %s",
- es->esi_str, es->nhg_id, nh_str);
+ zlog_debug("es %s nhg %u add %s", es->esi_str,
+ es->nhg_id, nh_str);
}
es->flags |= ZEBRA_EVPNES_NHG_ACTIVE;
} else {
if (es->flags & ZEBRA_EVPNES_NHG_ACTIVE) {
if (IS_ZEBRA_DEBUG_EVPN_MH_NH)
- zlog_debug("es %s nhg 0x%x del",
- es->esi_str, es->nhg_id);
+ zlog_debug("es %s nhg %u del", es->esi_str,
+ es->nhg_id);
es->flags &= ~ZEBRA_EVPNES_NHG_ACTIVE;
/* remove backup NHG from the br-port */
if ((es->flags & ZEBRA_EVPNES_LOCAL))
return;
if (IS_ZEBRA_DEBUG_EVPN_MH_NH)
- zlog_debug("es %s vtep %pI4 nh 0x%x add",
- es_vtep->es->esi_str,
- &es_vtep->vtep_ip, es_vtep->nh_id);
+ zlog_debug("es %s vtep %pI4 nh %u add", es_vtep->es->esi_str,
+ &es_vtep->vtep_ip, es_vtep->nh_id);
/* install the NH */
kernel_upd_mac_nh(es_vtep->nh_id, es_vtep->vtep_ip);
/* add the NH to the parent NHG */
return;
if (IS_ZEBRA_DEBUG_EVPN_MH_NH)
- zlog_debug("es %s vtep %pI4 nh 0x%x del",
- es_vtep->es->esi_str,
- &es_vtep->vtep_ip, es_vtep->nh_id);
+ zlog_debug("es %s vtep %pI4 nh %u del", es_vtep->es->esi_str,
+ &es_vtep->vtep_ip, es_vtep->nh_id);
nh_id = es_vtep->nh_id;
es_vtep->nh_id = 0;
es->nhg_id = zebra_evpn_nhid_alloc(true);
if (IS_ZEBRA_DEBUG_EVPN_MH_ES)
- zlog_debug("es %s nhg 0x%x new", es->esi_str, es->nhg_id);
+ zlog_debug("es %s nhg %u new", es->esi_str, es->nhg_id);
return es;
}
return;
if (IS_ZEBRA_DEBUG_EVPN_MH_ES)
- zlog_debug("local es %s add; nhg 0x%x if %s",
- es->esi_str, es->nhg_id, zif->ifp->name);
+ zlog_debug("local es %s add; nhg %u if %s", es->esi_str,
+ es->nhg_id, zif->ifp->name);
es->flags |= ZEBRA_EVPNES_LOCAL;
listnode_init(&es->local_es_listnode, es);
if (IS_ZEBRA_DEBUG_EVPN_MH_ES) {
zif = es->zif;
- zlog_debug("local es %s del; nhg 0x%x if %s",
- es->esi_str, es->nhg_id,
- zif ? zif->ifp->name : "-");
+ zlog_debug("local es %s del; nhg %u if %s", es->esi_str,
+ es->nhg_id, zif ? zif->ifp->name : "-");
}
/* remove all ES-EVIs associated with the ES */
if (!(es->flags & ZEBRA_EVPNES_REMOTE)) {
es->flags |= ZEBRA_EVPNES_REMOTE;
if (IS_ZEBRA_DEBUG_EVPN_MH_ES)
- zlog_debug("remote es %s add; nhg 0x%x",
- es->esi_str, es->nhg_id);
+ zlog_debug("remote es %s add; nhg %u",
+ es->esi_str, es->nhg_id);
}
} else {
if (es->flags & ZEBRA_EVPNES_REMOTE) {
es->flags &= ~ZEBRA_EVPNES_REMOTE;
if (IS_ZEBRA_DEBUG_EVPN_MH_ES)
- zlog_debug("remote es %s del; nhg 0x%x",
- es->esi_str, es->nhg_id);
+ zlog_debug("remote es %s del; nhg %u",
+ es->esi_str, es->nhg_id);
zebra_evpn_es_free(esp);
}
}
vty_out(vty, " DF: status: %s preference: %u\n",
(es->flags & ZEBRA_EVPNES_NON_DF) ? "non-df" : "df",
es->df_pref);
- vty_out(vty, " Nexthop group: 0x%x\n", es->nhg_id);
+ vty_out(vty, " Nexthop group: %u\n", es->nhg_id);
vty_out(vty, " VTEPs:\n");
for (ALL_LIST_ELEMENTS_RO(es->es_vtep_list, node, es_vtep)) {
vty_out(vty, " %pI4",
alg_buf,
sizeof(alg_buf)),
es_vtep->df_pref);
- vty_out(vty, " nh: 0x%x\n", es_vtep->nh_id);
+ vty_out(vty, " nh: %u\n", es_vtep->nh_id);
}
vty_out(vty, "\n");