leonshaw
leonshaw
### Background Sometimes we need to dial inside another net namespace and switch back. On linux, namespace is thread-level, so a thread lock is needed. With `"github.com/vishvananda/netns"` for example: ```go...
Add start/end config commands to batch configs from file. Follow the same way as `vtysh_read_file()`. Tested with 3k static routes in staticd.conf. It takes more than 3 minutes to startup...
Add getAll() without parameters to class CfgHosts. Useful for, e.g., "dhcp4_srv_configured" hooks that want to iterator over all host reservations.
Add "XFRR_{start,end}_configuration" in vty_read_file() to batch configs and reduce startup time in individual config file mode. This has been done for integrated config in vtysh_read_file(). With staticd.conf of 3k routes,...
If VRF backend is netns, bridges and SVIs are in the VRF's netns. Get link information from there, rather than NS_DEFAULT.
IPv4 and IPv4-mapped IPv6 address of a VTEP is used as nexthops of EVPN routes. Thus should check for both IPv4 and IPv6 before removing RMAC. Otherwise, withdrawing the last...
Fix two issues during netns deletion: 1. Free global netlink message buffer only when zebra is shutting down (not when netns is deleted). 2. Clean up queued dataplane update contexts...
Fix issues of IPv6 src-dest route: (confg)# ipv6 route 1::1/128 from 2::2/128 fe80::1 eth0 1. staticd doesn't handle them on nht event 2. linux kernel rejects routes with both source...
The netlink socket in `zebra_ns_id_get()` is only used to get netns id. There's no need to subscribe to multicast groups. In some heavy-loaded cases, unexpected notification races with normal reply...