diff options
| author | Russ White <russ@riw.us> | 2019-09-30 07:46:19 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-30 07:46:19 -0400 |
| commit | 9898a2fb3441e7382dba4190233f466b8271deae (patch) | |
| tree | 9629a5ce665db95addf0d0bc0f46864ef71b5a49 /lib/if.h | |
| parent | 5c256b572ca09b5d15b67ba0236c8a2678dda19c (diff) | |
| parent | 26f8f6fe7fb90208d4a5eb285fdf0dca83bde508 (diff) | |
Merge pull request #5009 from donaldsharp/interface_deletion
lib, zebra: Allow for interface deletion when kernel event happens
Diffstat (limited to 'lib/if.h')
| -rw-r--r-- | lib/if.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -293,6 +293,12 @@ struct interface { struct route_node *node; vrf_id_t vrf_id; + /* + * Has the end users entered `interface XXXX` from the cli in some + * fashion? + */ + bool configured; + QOBJ_FIELDS }; @@ -552,6 +558,16 @@ void if_link_params_free(struct interface *); /* Northbound. */ extern void if_cmd_init(void); +extern void if_zapi_callbacks(int (*create)(struct interface *ifp), + int (*up)(struct interface *ifp), + int (*down)(struct interface *ifp), + int (*destroy)(struct interface *ifp)); + +extern void if_new_via_zapi(struct interface *ifp); +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 const struct frr_yang_module_info frr_interface_info; #ifdef __cplusplus |
