]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
1cbf96a8 | 2 | /* |
3 | * isis_ldp_sync.h: ISIS LDP-IGP Sync handling routines | |
4 | * Copyright (C) 2020 Volta Networks, Inc. | |
1cbf96a8 | 5 | */ |
6 | ||
7 | #ifndef _ZEBRA_ISIS_LDP_SYNC_H | |
8 | #define _ZEBRA_ISIS_LDP_SYNC_H | |
9 | ||
cb135cc9 KS |
10 | #include "zclient.h" |
11 | ||
1cbf96a8 | 12 | /* Macro to log debug message */ |
13 | #define ils_debug(...) \ | |
14 | do { \ | |
15 | if (IS_DEBUG_LDP_SYNC) \ | |
16 | zlog_debug(__VA_ARGS__); \ | |
17 | } while (0) | |
18 | ||
ec62fbaa IR |
19 | extern void isis_area_ldp_sync_enable(struct isis_area *area); |
20 | extern void isis_area_ldp_sync_disable(struct isis_area *area); | |
21 | extern void isis_area_ldp_sync_set_holddown(struct isis_area *area, | |
22 | uint16_t holddown); | |
23 | extern void isis_if_ldp_sync_enable(struct isis_circuit *circuit); | |
24 | extern void isis_if_ldp_sync_disable(struct isis_circuit *circuit); | |
1cbf96a8 | 25 | extern void isis_if_set_ldp_sync_holddown(struct isis_circuit *circuit); |
1cbf96a8 | 26 | extern void isis_ldp_sync_if_start(struct isis_circuit *circuit, |
27 | bool send_state_req); | |
1cbf96a8 | 28 | extern void isis_ldp_sync_if_complete(struct isis_circuit *circuit); |
29 | extern void isis_ldp_sync_holddown_timer_add(struct isis_circuit *circuit); | |
cb135cc9 KS |
30 | extern void |
31 | isis_ldp_sync_handle_client_close(struct zapi_client_close_info *info); | |
1cbf96a8 | 32 | extern void isis_ldp_sync_ldp_fail(struct isis_circuit *circuit); |
33 | extern int isis_ldp_sync_state_update(struct ldp_igp_sync_if_state state); | |
34 | extern int isis_ldp_sync_announce_update(struct ldp_igp_sync_announce announce); | |
1cbf96a8 | 35 | extern void isis_ldp_sync_state_req_msg(struct isis_circuit *circuit); |
36 | extern void isis_ldp_sync_set_if_metric(struct isis_circuit *circuit, | |
37 | bool run_regen); | |
38 | extern bool isis_ldp_sync_if_metric_config(struct isis_circuit *circuit, | |
39 | int level, int metric); | |
40 | extern void isis_ldp_sync_init(void); | |
1cbf96a8 | 41 | #endif /* _ZEBRA_ISIS_LDP_SYNC_H */ |