Open kwind opened 4 years ago
Is there some functional or operational problem that you observe? it's normal for there to be internal data-structure differences between zebra and the routing daemons - they need and use different information in many cases.
yeah, I encountered a problem. When the interface is "IFF_UP" status, but not "IFF_RUNNING", a static route with gateway and the interface, may not be sent to zebra, that's just my opinion。
hmm, can you be more specific? I don't see use of "IFF_UP", or "if_is_up", or "if_is_running" in staticd at all, for example.
For example, when the Network cable is unplugged, the NIC status are "IFF_UP"、“BROADCAST”、“MULTICAST”, etc., but without "IFF_RUNNING", so, I think, a static route with gateway and the interface may not be sent to zebra, judging by NIC’ status.
Describe the bug The interface information is difference between static and zebra, call "if_lookup_by_name" and "if_lookup_by_index" with the same interface name or index, got the difference interface information, such as, the interface flags value .
Screenshots zebra:
static:
Versions OS Kernel: [e.g. Linux, OpenBSD, etc] [version]: centos 7 FRR Version [version]:7.2 Additional context libyang: libyang-devel-0.16.111-0.x86_64 and libyang-0.16.111-0.x86_64