Symptom
On a Cisco Nexus 9000 Series switch configured for segment routing, EVPN, and BGP address-family IPv4 unicast and address-family IPv4 labeled-unicast going to the same neighbor, when you reload your loopback is advertised in both the IPv4 unicast address family and the labeled-unicast address family. This is despite having the configuration no advertise local-labeled-route which should prevent this.
Conditions
-no advertisement local-labeled-route is configured on peer template and neighbor inherits from it.
-address-family ipv4 unicast command is configured under peer template only, not under the neighbor directly.
-neighbor is ebgp
-remote-as command is configured directly on the neighbor, not on the template.
Workaround
There are multiple ways to break these necessary conditions:
-Configure no advertisement local-labeled-route directly on the peer.
-Configure remote-as command under the template, not under the neighbor.
-Configure the address-family ipv4 unicast command under the neighbor, no more commands under that mode are needed.
Further Problem Description