-
Notifications
You must be signed in to change notification settings - Fork 5
/
spfclihandler.h
131 lines (99 loc) · 4 KB
/
spfclihandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
* =====================================================================================
*
* Filename: spfclihandler.h
*
* Description: This file declares the routines regarding CLI handlers
*
* Version: 1.0
* Created: Sunday 03 September 2017 10:46:08 IST
* Revision: 1.0
* Compiler: gcc
*
* Author: Er. Abhishek Sagar, Networking Developer (AS), sachinites@gmail.com
* Company: Brocade Communications(Jul 2012- Mar 2016), Current : Juniper Networks(Apr 2017 - Present)
*
* This file is part of the SPFComputation distribution (https://github.com/sachinites).
* Copyright (c) 2017 Abhishek Sagar.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* =====================================================================================
*/
#ifndef __SPFCLIHANDLER__
#define __SPFCLIHANDLER__
#include "instance.h"
#include "libcli.h"
int
validate_debug_log_enable_disable(char *value_passed);
int
validate_node_extistence(char *node_name);
int
validate_level_no(char *value_passed);
boolean
is_global_sid_value_valid(unsigned int sid_value);
int
validate_global_sid_value(char *value_passed);
int
validate_index_range_value(char *value_passed);
int
validate_metric_value(char *value_passed);
void
spf_node_slot_enable_disable(node_t *node, char *slot_name,
op_mode enable_or_disable);
void
spf_node_slot_metric_change(node_t *node, char *slot_name,
LEVEL level, unsigned int new_metric);
void
display_instance_nodes(param_t *param, ser_buff_t *tlv_buf);
void
display_instance_node_interfaces(param_t *param, ser_buff_t *tlv_buf);
int
validate_ipv4_mask(char *mask);
int
show_route_tree_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
run_spf_run_all_nodes(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
boolean
insert_lsp_as_forward_adjacency(node_t *node, char *lsp_name, unsigned int metric,
char *tail_end_ip, LEVEL level);
int
lfa_rlfa_config_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
debug_show_node_lfas(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
void
show_spf_initialization(node_t *spf_root, LEVEL level);
int
debug_show_node_impacted_destinations(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
debug_show_node_back_up_spf_results(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
display_logging_status(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
instance_node_spring_config_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
instance_node_spring_show_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
debug_trace_mpls_stack_label(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
instance_node_ldp_config_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
instance_node_rsvp_config_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
void
show_spf_path_predecessors(node_t *spf_root, LEVEL level);
int
clear_instance_node_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
node_slot_adj_sid_config_handler(param_t *param, ser_buff_t *tlv_buf, op_mode enable_or_disable);
int
validate_static_adjsid_label_range(char *value);
#endif /* __SPFCLIHANDLER__ */