diff options
| author | Christian Hopps <chopps@labn.net> | 2024-12-01 19:48:53 -0500 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2025-01-13 23:40:52 -0500 |
| commit | 80c6f98ea7b8229eb1e1f7e9e4bc5da7dae1cee7 (patch) | |
| tree | 48692beb179dfcbeea346ab7d4d40faea4bb63fd /lib/if.h | |
| parent | e64966876ce454e6b7f8ccc67f630ed5e0dc0235 (diff) | |
lib: if: track oper-state inline
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/if.h')
| -rw-r--r-- | lib/if.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -297,6 +297,8 @@ struct interface { struct vrf *vrf; + struct lyd_node *state; + /* * Has the end users entered `interface XXXX` from the cli in some * fashion? @@ -633,6 +635,14 @@ extern void if_up_via_zapi(struct interface *ifp); extern void if_down_via_zapi(struct interface *ifp); extern void if_destroy_via_zapi(struct interface *ifp); +extern void if_update_state(struct interface *ifp); +extern void if_update_state_metric(struct interface *ifp, uint32_t metric); +extern void if_update_state_mtu(struct interface *ifp, uint mtu); +extern void if_update_state_mtu6(struct interface *ifp, uint mtu); +extern void if_update_state_hw_addr(struct interface *ifp, const uint8_t *hw_addr, uint len); +extern void if_update_state_speed(struct interface *ifp, uint32_t speed); + +extern bool if_notify_oper_changes; extern const struct frr_yang_module_info frr_interface_info; extern const struct frr_yang_module_info frr_interface_cli_info; |
