2 * Copyright (C) 2001,2002 Sampo Saaristo
3 * Tampere University of Technology
4 * Institute of Communications Engineering
5 * Copyright (C) 2018 Volta Networks
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #include "northbound_cli.h"
33 #include "lib/linklist.h"
34 #include "isisd/isisd.h"
35 #include "isisd/isis_cli.h"
36 #include "isisd/isis_misc.h"
37 #include "isisd/isis_circuit.h"
38 #include "isisd/isis_csm.h"
40 #ifndef VTYSH_EXTRACT_PL
41 #include "isisd/isis_cli_clippy.c"
47 * XPath: /frr-isisd:isis/instance
49 DEFPY_NOSH(router_isis
, router_isis_cmd
, "router isis WORD$tag",
52 "ISO Routing area tag\n")
55 char base_xpath
[XPATH_MAXLEN
];
57 snprintf(base_xpath
, XPATH_MAXLEN
,
58 "/frr-isisd:isis/instance[area-tag='%s']", tag
);
59 nb_cli_enqueue_change(vty
, ".", NB_OP_CREATE
, NULL
);
60 /* default value in yang for is-type is level-1, but in FRR
61 * the first instance is assigned is-type level-1-2. We
62 * need to make sure to set it in the yang model so that it
63 * is consistent with what FRR sees.
65 if (listcount(isis
->area_list
) == 0)
66 nb_cli_enqueue_change(vty
, "./is-type", NB_OP_MODIFY
,
68 ret
= nb_cli_apply_changes(vty
, base_xpath
);
69 if (ret
== CMD_SUCCESS
)
70 VTY_PUSH_XPATH(ISIS_NODE
, base_xpath
);
75 DEFPY(no_router_isis
, no_router_isis_cmd
, "no router isis WORD$tag",
78 "ISO Routing area tag\n")
80 char temp_xpath
[XPATH_MAXLEN
];
81 struct listnode
*node
, *nnode
;
82 struct isis_circuit
*circuit
= NULL
;
83 struct isis_area
*area
= NULL
;
85 if (!yang_dnode_exists(vty
->candidate_config
->dnode
,
86 "/frr-isisd:isis/instance[area-tag='%s']",
88 vty_out(vty
, "ISIS area %s not found.\n", tag
);
89 return CMD_ERR_NOTHING_TODO
;
92 nb_cli_enqueue_change(vty
, ".", NB_OP_DESTROY
, NULL
);
93 area
= isis_area_lookup(tag
);
94 if (area
&& area
->circuit_list
&& listcount(area
->circuit_list
)) {
95 for (ALL_LIST_ELEMENTS(area
->circuit_list
, node
, nnode
,
97 /* add callbacks to delete each of the circuits listed
99 const char *vrf_name
=
100 vrf_lookup_by_id(circuit
->interface
->vrf_id
)
103 temp_xpath
, XPATH_MAXLEN
,
104 "/frr-interface:lib/interface[name='%s'][vrf='%s']/frr-isisd:isis",
105 circuit
->interface
->name
, vrf_name
);
106 nb_cli_enqueue_change(vty
, temp_xpath
, NB_OP_DESTROY
,
111 return nb_cli_apply_changes(
112 vty
, "/frr-isisd:isis/instance[area-tag='%s']", tag
);
115 void cli_show_router_isis(struct vty
*vty
, struct lyd_node
*dnode
,
119 vty_out(vty
, "router isis %s\n",
120 yang_dnode_get_string(dnode
, "./area-tag"));
124 * XPath: /frr-interface:lib/interface/frr-isisd:isis/
125 * XPath: /frr-interface:lib/interface/frr-isisd:isis/ipv4-routing
126 * XPath: /frr-interface:lib/interface/frr-isisd:isis/ipv6-routing
127 * XPath: /frr-isisd:isis/instance
129 DEFPY(ip_router_isis
, ip_router_isis_cmd
, "ip router isis WORD$tag",
130 "Interface Internet Protocol config commands\n"
131 "IP router interface commands\n"
132 "IS-IS routing protocol\n"
133 "Routing process tag\n")
135 char temp_xpath
[XPATH_MAXLEN
];
136 const char *circ_type
;
137 struct isis_area
*area
;
138 struct interface
*ifp
;
140 /* area will be created if it is not present. make sure the yang model
141 * is synced with FRR and call the appropriate NB cb.
143 area
= isis_area_lookup(tag
);
145 snprintf(temp_xpath
, XPATH_MAXLEN
,
146 "/frr-isisd:isis/instance[area-tag='%s']", tag
);
147 nb_cli_enqueue_change(vty
, temp_xpath
, NB_OP_CREATE
, tag
);
148 snprintf(temp_xpath
, XPATH_MAXLEN
,
149 "/frr-isisd:isis/instance[area-tag='%s']/is-type",
151 nb_cli_enqueue_change(
152 vty
, temp_xpath
, NB_OP_MODIFY
,
153 listcount(isis
->area_list
) == 0 ? "level-1-2" : NULL
);
154 nb_cli_enqueue_change(vty
, "./frr-isisd:isis", NB_OP_CREATE
,
156 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/area-tag",
158 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/ipv4-routing",
159 NB_OP_MODIFY
, "true");
160 nb_cli_enqueue_change(
161 vty
, "./frr-isisd:isis/circuit-type", NB_OP_MODIFY
,
162 listcount(isis
->area_list
) == 0 ? "level-1-2"
165 /* area exists, circuit type defaults to its area's is_type */
166 switch (area
->is_type
) {
168 circ_type
= "level-1";
171 circ_type
= "level-2";
173 case IS_LEVEL_1_AND_2
:
174 circ_type
= "level-1-2";
177 /* just to silence compiler warnings */
178 return CMD_WARNING_CONFIG_FAILED
;
180 nb_cli_enqueue_change(vty
, "./frr-isisd:isis", NB_OP_CREATE
,
182 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/area-tag",
184 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/ipv4-routing",
185 NB_OP_MODIFY
, "true");
186 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/circuit-type",
187 NB_OP_MODIFY
, circ_type
);
190 /* check if the interface is a loopback and if so set it as passive */
191 ifp
= nb_running_get_entry(NULL
, VTY_CURR_XPATH
, false);
192 if (ifp
&& if_is_loopback(ifp
))
193 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/passive",
194 NB_OP_MODIFY
, "true");
196 return nb_cli_apply_changes(vty
, NULL
);
199 DEFPY(ip6_router_isis
, ip6_router_isis_cmd
, "ipv6 router isis WORD$tag",
200 "Interface Internet Protocol config commands\n"
201 "IP router interface commands\n"
202 "IS-IS routing protocol\n"
203 "Routing process tag\n")
205 char temp_xpath
[XPATH_MAXLEN
];
206 const char *circ_type
;
207 struct isis_area
*area
;
208 struct interface
*ifp
;
210 /* area will be created if it is not present. make sure the yang model
211 * is synced with FRR and call the appropriate NB cb.
213 area
= isis_area_lookup(tag
);
215 snprintf(temp_xpath
, XPATH_MAXLEN
,
216 "/frr-isisd:isis/instance[area-tag='%s']", tag
);
217 nb_cli_enqueue_change(vty
, temp_xpath
, NB_OP_CREATE
, tag
);
218 snprintf(temp_xpath
, XPATH_MAXLEN
,
219 "/frr-isisd:isis/instance[area-tag='%s']/is-type",
221 nb_cli_enqueue_change(
222 vty
, temp_xpath
, NB_OP_MODIFY
,
223 listcount(isis
->area_list
) == 0 ? "level-1-2" : NULL
);
224 nb_cli_enqueue_change(vty
, "./frr-isisd:isis", NB_OP_CREATE
,
226 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/area-tag",
228 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/ipv6-routing",
229 NB_OP_MODIFY
, "true");
230 nb_cli_enqueue_change(
231 vty
, "./frr-isisd:isis/circuit-type", NB_OP_MODIFY
,
232 listcount(isis
->area_list
) == 0 ? "level-1-2"
235 /* area exists, circuit type defaults to its area's is_type */
236 switch (area
->is_type
) {
238 circ_type
= "level-1";
241 circ_type
= "level-2";
243 case IS_LEVEL_1_AND_2
:
244 circ_type
= "level-1-2";
247 /* just to silence compiler warnings */
248 return CMD_WARNING_CONFIG_FAILED
;
250 nb_cli_enqueue_change(vty
, "./frr-isisd:isis", NB_OP_CREATE
,
252 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/area-tag",
254 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/ipv6-routing",
255 NB_OP_MODIFY
, "true");
256 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/circuit-type",
257 NB_OP_MODIFY
, circ_type
);
260 /* check if the interface is a loopback and if so set it as passive */
261 ifp
= nb_running_get_entry(NULL
, VTY_CURR_XPATH
, false);
262 if (ifp
&& if_is_loopback(ifp
))
263 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/passive",
264 NB_OP_MODIFY
, "true");
266 return nb_cli_apply_changes(vty
, NULL
);
269 DEFPY(no_ip_router_isis
, no_ip_router_isis_cmd
,
270 "no <ip|ipv6>$ip router isis [WORD]$tag",
272 "Interface Internet Protocol config commands\n"
273 "IP router interface commands\n"
274 "IP router interface commands\n"
275 "IS-IS routing protocol\n"
276 "Routing process tag\n")
278 const struct lyd_node
*dnode
;
280 dnode
= yang_dnode_get(vty
->candidate_config
->dnode
,
281 "%s/frr-isisd:isis", VTY_CURR_XPATH
);
286 * If both ipv4 and ipv6 are off delete the interface isis container.
288 if (strmatch(ip
, "ipv6")) {
289 if (!yang_dnode_get_bool(dnode
, "./ipv4-routing"))
290 nb_cli_enqueue_change(vty
, "./frr-isisd:isis",
291 NB_OP_DESTROY
, NULL
);
293 nb_cli_enqueue_change(vty
,
294 "./frr-isisd:isis/ipv6-routing",
295 NB_OP_MODIFY
, "false");
297 if (!yang_dnode_get_bool(dnode
, "./ipv6-routing"))
298 nb_cli_enqueue_change(vty
, "./frr-isisd:isis",
299 NB_OP_DESTROY
, NULL
);
301 nb_cli_enqueue_change(vty
,
302 "./frr-isisd:isis/ipv4-routing",
303 NB_OP_MODIFY
, "false");
306 return nb_cli_apply_changes(vty
, NULL
);
309 void cli_show_ip_isis_ipv4(struct vty
*vty
, struct lyd_node
*dnode
,
312 if (!yang_dnode_get_bool(dnode
, NULL
))
314 vty_out(vty
, " ip router isis %s\n",
315 yang_dnode_get_string(dnode
, "../area-tag"));
318 void cli_show_ip_isis_ipv6(struct vty
*vty
, struct lyd_node
*dnode
,
321 if (!yang_dnode_get_bool(dnode
, NULL
))
323 vty_out(vty
, " ipv6 router isis %s\n",
324 yang_dnode_get_string(dnode
, "../area-tag"));
328 * XPath: /frr-isisd:isis/instance/area-address
330 DEFPY(net
, net_cmd
, "[no] net WORD",
331 "Remove an existing Network Entity Title for this process\n"
332 "A Network Entity Title for this process (OSI only)\n"
333 "XX.XXXX. ... .XXX.XX Network entity title (NET)\n")
335 nb_cli_enqueue_change(vty
, "./area-address",
336 no
? NB_OP_DESTROY
: NB_OP_CREATE
, net
);
338 return nb_cli_apply_changes(vty
, NULL
);
341 void cli_show_isis_area_address(struct vty
*vty
, struct lyd_node
*dnode
,
344 vty_out(vty
, " net %s\n", yang_dnode_get_string(dnode
, NULL
));
348 * XPath: /frr-isisd:isis/instance/is-type
350 DEFPY(is_type
, is_type_cmd
, "is-type <level-1|level-1-2|level-2-only>$level",
351 "IS Level for this routing process (OSI only)\n"
352 "Act as a station router only\n"
353 "Act as both a station router and an area router\n"
354 "Act as an area router only\n")
356 nb_cli_enqueue_change(vty
, "./is-type", NB_OP_MODIFY
,
357 strmatch(level
, "level-2-only") ? "level-2"
360 return nb_cli_apply_changes(vty
, NULL
);
363 DEFPY(no_is_type
, no_is_type_cmd
,
364 "no is-type [<level-1|level-1-2|level-2-only>]",
366 "IS Level for this routing process (OSI only)\n"
367 "Act as a station router only\n"
368 "Act as both a station router and an area router\n"
369 "Act as an area router only\n")
371 const char *value
= NULL
;
372 struct isis_area
*area
;
374 area
= nb_running_get_entry(NULL
, VTY_CURR_XPATH
, false);
377 * Put the is-type back to defaults:
378 * - level-1-2 on first area
379 * - level-1 for the rest
381 if (area
&& listgetdata(listhead(isis
->area_list
)) == area
)
385 nb_cli_enqueue_change(vty
, "./is-type", NB_OP_MODIFY
, value
);
387 return nb_cli_apply_changes(vty
, NULL
);
390 void cli_show_isis_is_type(struct vty
*vty
, struct lyd_node
*dnode
,
393 int is_type
= yang_dnode_get_enum(dnode
, NULL
);
397 vty_out(vty
, " is-type level-1\n");
400 vty_out(vty
, " is-type level-2-only\n");
402 case IS_LEVEL_1_AND_2
:
403 vty_out(vty
, " is-type level-1-2\n");
409 * XPath: /frr-isisd:isis/instance/dynamic-hostname
411 DEFPY(dynamic_hostname
, dynamic_hostname_cmd
, "[no] hostname dynamic",
413 "Dynamic hostname for IS-IS\n"
414 "Dynamic hostname\n")
416 nb_cli_enqueue_change(vty
, "./dynamic-hostname", NB_OP_MODIFY
,
417 no
? "false" : "true");
419 return nb_cli_apply_changes(vty
, NULL
);
422 void cli_show_isis_dynamic_hostname(struct vty
*vty
, struct lyd_node
*dnode
,
425 if (!yang_dnode_get_bool(dnode
, NULL
))
428 vty_out(vty
, " hostname dynamic\n");
432 * XPath: /frr-isisd:isis/instance/overload
434 DEFPY(set_overload_bit
, set_overload_bit_cmd
, "[no] set-overload-bit",
435 "Reset overload bit to accept transit traffic\n"
436 "Set overload bit to avoid any transit traffic\n")
438 nb_cli_enqueue_change(vty
, "./overload", NB_OP_MODIFY
,
439 no
? "false" : "true");
441 return nb_cli_apply_changes(vty
, NULL
);
444 void cli_show_isis_overload(struct vty
*vty
, struct lyd_node
*dnode
,
447 if (!yang_dnode_get_bool(dnode
, NULL
))
449 vty_out(vty
, " set-overload-bit\n");
453 * XPath: /frr-isisd:isis/instance/attached
455 DEFPY(set_attached_bit
, set_attached_bit_cmd
, "[no] set-attached-bit",
456 "Reset attached bit\n"
457 "Set attached bit to identify as L1/L2 router for inter-area traffic\n")
459 nb_cli_enqueue_change(vty
, "./attached", NB_OP_MODIFY
,
460 no
? "false" : "true");
462 return nb_cli_apply_changes(vty
, NULL
);
465 void cli_show_isis_attached(struct vty
*vty
, struct lyd_node
*dnode
,
468 if (!yang_dnode_get_bool(dnode
, NULL
))
470 vty_out(vty
, " set-attached-bit\n");
474 * XPath: /frr-isisd:isis/instance/metric-style
476 DEFPY(metric_style
, metric_style_cmd
,
477 "metric-style <narrow|transition|wide>$style",
478 "Use old-style (ISO 10589) or new-style packet formats\n"
479 "Use old style of TLVs with narrow metric\n"
480 "Send and accept both styles of TLVs during transition\n"
481 "Use new style of TLVs to carry wider metric\n")
483 nb_cli_enqueue_change(vty
, "./metric-style", NB_OP_MODIFY
, style
);
485 return nb_cli_apply_changes(vty
, NULL
);
488 DEFPY(no_metric_style
, no_metric_style_cmd
,
489 "no metric-style [narrow|transition|wide]",
491 "Use old-style (ISO 10589) or new-style packet formats\n"
492 "Use old style of TLVs with narrow metric\n"
493 "Send and accept both styles of TLVs during transition\n"
494 "Use new style of TLVs to carry wider metric\n")
496 nb_cli_enqueue_change(vty
, "./metric-style", NB_OP_MODIFY
, "narrow");
498 return nb_cli_apply_changes(vty
, NULL
);
501 void cli_show_isis_metric_style(struct vty
*vty
, struct lyd_node
*dnode
,
504 int metric
= yang_dnode_get_enum(dnode
, NULL
);
507 case ISIS_NARROW_METRIC
:
508 vty_out(vty
, " metric-style narrow\n");
510 case ISIS_WIDE_METRIC
:
511 vty_out(vty
, " metric-style wide\n");
513 case ISIS_TRANSITION_METRIC
:
514 vty_out(vty
, " metric-style transition\n");
520 * XPath: /frr-isisd:isis/instance/area-password
522 DEFPY(area_passwd
, area_passwd_cmd
,
523 "area-password <clear|md5>$pwd_type WORD$pwd [authenticate snp <send-only|validate>$snp]",
524 "Configure the authentication password for an area\n"
525 "Clear-text authentication type\n"
526 "MD5 authentication type\n"
527 "Level-wide password\n"
530 "Send but do not check PDUs on receiving\n"
531 "Send and check PDUs on receiving\n")
533 nb_cli_enqueue_change(vty
, "./area-password", NB_OP_CREATE
, NULL
);
534 nb_cli_enqueue_change(vty
, "./area-password/password", NB_OP_MODIFY
,
536 nb_cli_enqueue_change(vty
, "./area-password/password-type",
537 NB_OP_MODIFY
, pwd_type
);
538 nb_cli_enqueue_change(vty
, "./area-password/authenticate-snp",
539 NB_OP_MODIFY
, snp
? snp
: "none");
541 return nb_cli_apply_changes(vty
, NULL
);
544 void cli_show_isis_area_pwd(struct vty
*vty
, struct lyd_node
*dnode
,
549 vty_out(vty
, " area-password %s %s",
550 yang_dnode_get_string(dnode
, "./password-type"),
551 yang_dnode_get_string(dnode
, "./password"));
552 snp
= yang_dnode_get_string(dnode
, "./authenticate-snp");
553 if (!strmatch("none", snp
))
554 vty_out(vty
, " authenticate snp %s", snp
);
559 * XPath: /frr-isisd:isis/instance/domain-password
561 DEFPY(domain_passwd
, domain_passwd_cmd
,
562 "domain-password <clear|md5>$pwd_type WORD$pwd [authenticate snp <send-only|validate>$snp]",
563 "Set the authentication password for a routing domain\n"
564 "Clear-text authentication type\n"
565 "MD5 authentication type\n"
566 "Level-wide password\n"
569 "Send but do not check PDUs on receiving\n"
570 "Send and check PDUs on receiving\n")
572 nb_cli_enqueue_change(vty
, "./domain-password", NB_OP_CREATE
, NULL
);
573 nb_cli_enqueue_change(vty
, "./domain-password/password", NB_OP_MODIFY
,
575 nb_cli_enqueue_change(vty
, "./domain-password/password-type",
576 NB_OP_MODIFY
, pwd_type
);
577 nb_cli_enqueue_change(vty
, "./domain-password/authenticate-snp",
578 NB_OP_MODIFY
, snp
? snp
: "none");
580 return nb_cli_apply_changes(vty
, NULL
);
583 DEFPY(no_area_passwd
, no_area_passwd_cmd
,
584 "no <area-password|domain-password>$cmd",
586 "Configure the authentication password for an area\n"
587 "Set the authentication password for a routing domain\n")
589 nb_cli_enqueue_change(vty
, ".", NB_OP_DESTROY
, NULL
);
591 return nb_cli_apply_changes(vty
, "./%s", cmd
);
594 void cli_show_isis_domain_pwd(struct vty
*vty
, struct lyd_node
*dnode
,
599 vty_out(vty
, " domain-password %s %s",
600 yang_dnode_get_string(dnode
, "./password-type"),
601 yang_dnode_get_string(dnode
, "./password"));
602 snp
= yang_dnode_get_string(dnode
, "./authenticate-snp");
603 if (!strmatch("none", snp
))
604 vty_out(vty
, " authenticate snp %s", snp
);
609 * XPath: /frr-isisd:isis/instance/lsp/generation-interval
611 DEFPY(lsp_gen_interval
, lsp_gen_interval_cmd
,
612 "lsp-gen-interval [level-1|level-2]$level (1-120)$val",
613 "Minimum interval between regenerating same LSP\n"
614 "Set interval for level 1 only\n"
615 "Set interval for level 2 only\n"
616 "Minimum interval in seconds\n")
618 if (!level
|| strmatch(level
, "level-1"))
619 nb_cli_enqueue_change(vty
, "./lsp/generation-interval/level-1",
620 NB_OP_MODIFY
, val_str
);
621 if (!level
|| strmatch(level
, "level-2"))
622 nb_cli_enqueue_change(vty
, "./lsp/generation-interval/level-2",
623 NB_OP_MODIFY
, val_str
);
625 return nb_cli_apply_changes(vty
, NULL
);
628 DEFPY(no_lsp_gen_interval
, no_lsp_gen_interval_cmd
,
629 "no lsp-gen-interval [level-1|level-2]$level [(1-120)]",
631 "Minimum interval between regenerating same LSP\n"
632 "Set interval for level 1 only\n"
633 "Set interval for level 2 only\n"
634 "Minimum interval in seconds\n")
636 if (!level
|| strmatch(level
, "level-1"))
637 nb_cli_enqueue_change(vty
, "./lsp/generation-interval/level-1",
639 if (!level
|| strmatch(level
, "level-2"))
640 nb_cli_enqueue_change(vty
, "./lsp/generation-interval/level-2",
643 return nb_cli_apply_changes(vty
, NULL
);
646 void cli_show_isis_lsp_gen_interval(struct vty
*vty
, struct lyd_node
*dnode
,
649 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
650 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
652 if (strmatch(l1
, l2
))
653 vty_out(vty
, " lsp-gen-interval %s\n", l1
);
655 vty_out(vty
, " lsp-gen-interval level-1 %s\n", l1
);
656 vty_out(vty
, " lsp-gen-interval level-2 %s\n", l2
);
661 * XPath: /frr-isisd:isis/instance/lsp/refresh-interval
663 DEFPY(lsp_refresh_interval
, lsp_refresh_interval_cmd
,
664 "lsp-refresh-interval [level-1|level-2]$level (1-65235)$val",
665 "LSP refresh interval\n"
666 "LSP refresh interval for Level 1 only\n"
667 "LSP refresh interval for Level 2 only\n"
668 "LSP refresh interval in seconds\n")
670 if (!level
|| strmatch(level
, "level-1"))
671 nb_cli_enqueue_change(vty
, "./lsp/refresh-interval/level-1",
672 NB_OP_MODIFY
, val_str
);
673 if (!level
|| strmatch(level
, "level-2"))
674 nb_cli_enqueue_change(vty
, "./lsp/refresh-interval/level-2",
675 NB_OP_MODIFY
, val_str
);
677 return nb_cli_apply_changes(vty
, NULL
);
680 DEFPY(no_lsp_refresh_interval
, no_lsp_refresh_interval_cmd
,
681 "no lsp-refresh-interval [level-1|level-2]$level [(1-65235)]",
683 "LSP refresh interval\n"
684 "LSP refresh interval for Level 1 only\n"
685 "LSP refresh interval for Level 2 only\n"
686 "LSP refresh interval in seconds\n")
688 if (!level
|| strmatch(level
, "level-1"))
689 nb_cli_enqueue_change(vty
, "./lsp/refresh-interval/level-1",
691 if (!level
|| strmatch(level
, "level-2"))
692 nb_cli_enqueue_change(vty
, "./lsp/refresh-interval/level-2",
695 return nb_cli_apply_changes(vty
, NULL
);
698 void cli_show_isis_lsp_ref_interval(struct vty
*vty
, struct lyd_node
*dnode
,
701 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
702 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
704 if (strmatch(l1
, l2
))
705 vty_out(vty
, " lsp-refresh-interval %s\n", l1
);
707 vty_out(vty
, " lsp-refresh-interval level-1 %s\n", l1
);
708 vty_out(vty
, " lsp-refresh-interval level-2 %s\n", l2
);
713 * XPath: /frr-isisd:isis/instance/lsp/maximum-lifetime
715 DEFPY(max_lsp_lifetime
, max_lsp_lifetime_cmd
,
716 "max-lsp-lifetime [level-1|level-2]$level (350-65535)$val",
717 "Maximum LSP lifetime\n"
718 "Maximum LSP lifetime for Level 1 only\n"
719 "Maximum LSP lifetime for Level 2 only\n"
720 "LSP lifetime in seconds\n")
722 if (!level
|| strmatch(level
, "level-1"))
723 nb_cli_enqueue_change(vty
, "./lsp/maximum-lifetime/level-1",
724 NB_OP_MODIFY
, val_str
);
725 if (!level
|| strmatch(level
, "level-2"))
726 nb_cli_enqueue_change(vty
, "./lsp/maximum-lifetime/level-2",
727 NB_OP_MODIFY
, val_str
);
729 return nb_cli_apply_changes(vty
, NULL
);
732 DEFPY(no_max_lsp_lifetime
, no_max_lsp_lifetime_cmd
,
733 "no max-lsp-lifetime [level-1|level-2]$level [(350-65535)]",
735 "Maximum LSP lifetime\n"
736 "Maximum LSP lifetime for Level 1 only\n"
737 "Maximum LSP lifetime for Level 2 only\n"
738 "LSP lifetime in seconds\n")
740 if (!level
|| strmatch(level
, "level-1"))
741 nb_cli_enqueue_change(vty
, "./lsp/maximum-lifetime/level-1",
743 if (!level
|| strmatch(level
, "level-2"))
744 nb_cli_enqueue_change(vty
, "./lsp/maximum-lifetime/level-2",
747 return nb_cli_apply_changes(vty
, NULL
);
750 void cli_show_isis_lsp_max_lifetime(struct vty
*vty
, struct lyd_node
*dnode
,
753 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
754 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
756 if (strmatch(l1
, l2
))
757 vty_out(vty
, " max-lsp-lifetime %s\n", l1
);
759 vty_out(vty
, " max-lsp-lifetime level-1 %s\n", l1
);
760 vty_out(vty
, " max-lsp-lifetime level-2 %s\n", l2
);
765 * XPath: /frr-isisd:isis/instance/lsp/mtu
767 DEFPY(area_lsp_mtu
, area_lsp_mtu_cmd
, "lsp-mtu (128-4352)$val",
768 "Configure the maximum size of generated LSPs\n"
769 "Maximum size of generated LSPs\n")
771 nb_cli_enqueue_change(vty
, "./lsp/mtu", NB_OP_MODIFY
, val_str
);
773 return nb_cli_apply_changes(vty
, NULL
);
776 DEFPY(no_area_lsp_mtu
, no_area_lsp_mtu_cmd
, "no lsp-mtu [(128-4352)]",
778 "Configure the maximum size of generated LSPs\n"
779 "Maximum size of generated LSPs\n")
781 nb_cli_enqueue_change(vty
, "./lsp/mtu", NB_OP_MODIFY
, NULL
);
783 return nb_cli_apply_changes(vty
, NULL
);
786 void cli_show_isis_lsp_mtu(struct vty
*vty
, struct lyd_node
*dnode
,
789 vty_out(vty
, " lsp-mtu %s\n", yang_dnode_get_string(dnode
, NULL
));
793 * XPath: /frr-isisd:isis/instance/spf/minimum-interval
795 DEFPY(spf_interval
, spf_interval_cmd
,
796 "spf-interval [level-1|level-2]$level (1-120)$val",
797 "Minimum interval between SPF calculations\n"
798 "Set interval for level 1 only\n"
799 "Set interval for level 2 only\n"
800 "Minimum interval between consecutive SPFs in seconds\n")
802 if (!level
|| strmatch(level
, "level-1"))
803 nb_cli_enqueue_change(vty
, "./spf/minimum-interval/level-1",
804 NB_OP_MODIFY
, val_str
);
805 if (!level
|| strmatch(level
, "level-2"))
806 nb_cli_enqueue_change(vty
, "./spf/minimum-interval/level-2",
807 NB_OP_MODIFY
, val_str
);
809 return nb_cli_apply_changes(vty
, NULL
);
812 DEFPY(no_spf_interval
, no_spf_interval_cmd
,
813 "no spf-interval [level-1|level-2]$level [(1-120)]",
815 "Minimum interval between SPF calculations\n"
816 "Set interval for level 1 only\n"
817 "Set interval for level 2 only\n"
818 "Minimum interval between consecutive SPFs in seconds\n")
820 if (!level
|| strmatch(level
, "level-1"))
821 nb_cli_enqueue_change(vty
, "./spf/minimum-interval/level-1",
823 if (!level
|| strmatch(level
, "level-2"))
824 nb_cli_enqueue_change(vty
, "./spf/minimum-interval/level-2",
827 return nb_cli_apply_changes(vty
, NULL
);
830 void cli_show_isis_spf_min_interval(struct vty
*vty
, struct lyd_node
*dnode
,
833 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
834 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
836 if (strmatch(l1
, l2
))
837 vty_out(vty
, " spf-interval %s\n", l1
);
839 vty_out(vty
, " spf-interval level-1 %s\n", l1
);
840 vty_out(vty
, " spf-interval level-2 %s\n", l2
);
845 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay
847 DEFPY(spf_delay_ietf
, spf_delay_ietf_cmd
,
848 "spf-delay-ietf init-delay (0-60000) short-delay (0-60000) long-delay (0-60000) holddown (0-60000) time-to-learn (0-60000)",
849 "IETF SPF delay algorithm\n"
850 "Delay used while in QUIET state\n"
851 "Delay used while in QUIET state in milliseconds\n"
852 "Delay used while in SHORT_WAIT state\n"
853 "Delay used while in SHORT_WAIT state in milliseconds\n"
854 "Delay used while in LONG_WAIT\n"
855 "Delay used while in LONG_WAIT state in milliseconds\n"
856 "Time with no received IGP events before considering IGP stable\n"
857 "Time with no received IGP events before considering IGP stable (in milliseconds)\n"
858 "Maximum duration needed to learn all the events related to a single failure\n"
859 "Maximum duration needed to learn all the events related to a single failure (in milliseconds)\n")
861 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay", NB_OP_CREATE
,
863 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay/init-delay",
864 NB_OP_MODIFY
, init_delay_str
);
865 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay/short-delay",
866 NB_OP_MODIFY
, short_delay_str
);
867 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay/long-delay",
868 NB_OP_MODIFY
, long_delay_str
);
869 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay/hold-down",
870 NB_OP_MODIFY
, holddown_str
);
871 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay/time-to-learn",
872 NB_OP_MODIFY
, time_to_learn_str
);
874 return nb_cli_apply_changes(vty
, NULL
);
877 DEFPY(no_spf_delay_ietf
, no_spf_delay_ietf_cmd
,
878 "no spf-delay-ietf [init-delay (0-60000) short-delay (0-60000) long-delay (0-60000) holddown (0-60000) time-to-learn (0-60000)]",
880 "IETF SPF delay algorithm\n"
881 "Delay used while in QUIET state\n"
882 "Delay used while in QUIET state in milliseconds\n"
883 "Delay used while in SHORT_WAIT state\n"
884 "Delay used while in SHORT_WAIT state in milliseconds\n"
885 "Delay used while in LONG_WAIT\n"
886 "Delay used while in LONG_WAIT state in milliseconds\n"
887 "Time with no received IGP events before considering IGP stable\n"
888 "Time with no received IGP events before considering IGP stable (in milliseconds)\n"
889 "Maximum duration needed to learn all the events related to a single failure\n"
890 "Maximum duration needed to learn all the events related to a single failure (in milliseconds)\n")
892 nb_cli_enqueue_change(vty
, "./spf/ietf-backoff-delay", NB_OP_DESTROY
,
895 return nb_cli_apply_changes(vty
, NULL
);
898 void cli_show_isis_spf_ietf_backoff(struct vty
*vty
, struct lyd_node
*dnode
,
902 " spf-delay-ietf init-delay %s short-delay %s long-delay %s holddown %s time-to-learn %s\n",
903 yang_dnode_get_string(dnode
, "./init-delay"),
904 yang_dnode_get_string(dnode
, "./short-delay"),
905 yang_dnode_get_string(dnode
, "./long-delay"),
906 yang_dnode_get_string(dnode
, "./hold-down"),
907 yang_dnode_get_string(dnode
, "./time-to-learn"));
911 * XPath: /frr-isisd:isis/instance/purge-originator
913 DEFPY(area_purge_originator
, area_purge_originator_cmd
, "[no] purge-originator",
914 NO_STR
"Use the RFC 6232 purge-originator\n")
916 nb_cli_enqueue_change(vty
, "./purge-originator", NB_OP_MODIFY
,
917 no
? "false" : "true");
919 return nb_cli_apply_changes(vty
, NULL
);
922 void cli_show_isis_purge_origin(struct vty
*vty
, struct lyd_node
*dnode
,
925 if (!yang_dnode_get_bool(dnode
, NULL
))
927 vty_out(vty
, " purge-originator\n");
931 * XPath: /frr-isisd:isis/instance/mpls-te
933 DEFPY(isis_mpls_te_on
, isis_mpls_te_on_cmd
, "mpls-te on",
934 MPLS_TE_STR
"Enable the MPLS-TE functionality\n")
936 nb_cli_enqueue_change(vty
, "./mpls-te", NB_OP_CREATE
,
939 return nb_cli_apply_changes(vty
, NULL
);
942 DEFPY(no_isis_mpls_te_on
, no_isis_mpls_te_on_cmd
, "no mpls-te [on]",
944 "Disable the MPLS-TE functionality\n"
945 "Disable the MPLS-TE functionality\n")
947 nb_cli_enqueue_change(vty
, "./mpls-te", NB_OP_DESTROY
,
950 return nb_cli_apply_changes(vty
, NULL
);
953 void cli_show_isis_mpls_te(struct vty
*vty
, struct lyd_node
*dnode
,
956 vty_out(vty
, " mpls-te on\n");
960 * XPath: /frr-isisd:isis/instance/mpls-te/router-address
962 DEFPY(isis_mpls_te_router_addr
, isis_mpls_te_router_addr_cmd
,
963 "mpls-te router-address A.B.C.D",
965 "Stable IP address of the advertising router\n"
966 "MPLS-TE router address in IPv4 address format\n")
968 nb_cli_enqueue_change(vty
, "./mpls-te/router-address",
969 NB_OP_MODIFY
, router_address_str
);
971 return nb_cli_apply_changes(vty
, NULL
);
974 DEFPY(no_isis_mpls_te_router_addr
, no_isis_mpls_te_router_addr_cmd
,
975 "no mpls-te router-address [A.B.C.D]",
977 "Delete IP address of the advertising router\n"
978 "MPLS-TE router address in IPv4 address format\n")
980 nb_cli_enqueue_change(vty
, "./mpls-te/router-address",
981 NB_OP_DESTROY
, NULL
);
983 return nb_cli_apply_changes(vty
, NULL
);
986 void cli_show_isis_mpls_te_router_addr(struct vty
*vty
, struct lyd_node
*dnode
,
989 vty_out(vty
, " mpls-te router-address %s\n",
990 yang_dnode_get_string(dnode
, NULL
));
993 DEFPY(isis_mpls_te_inter_as
, isis_mpls_te_inter_as_cmd
,
994 "[no] mpls-te inter-as [level-1|level-1-2|level-2-only]",
996 "Configure MPLS-TE Inter-AS support\n"
997 "AREA native mode self originate INTER-AS LSP with L1 only flooding scope\n"
998 "AREA native mode self originate INTER-AS LSP with L1 and L2 flooding scope\n"
999 "AS native mode self originate INTER-AS LSP with L2 only flooding scope\n")
1001 vty_out(vty
, "MPLS-TE Inter-AS is not yet supported\n");
1006 * XPath: /frr-isisd:isis/instance/default-information-originate
1008 DEFPY(isis_default_originate
, isis_default_originate_cmd
,
1009 "[no] default-information originate <ipv4|ipv6>$ip"
1010 " <level-1|level-2>$level [always]$always"
1011 " [{metric (0-16777215)$metric|route-map WORD$rmap}]",
1013 "Control distribution of default information\n"
1014 "Distribute a default route\n"
1015 "Distribute default route for IPv4\n"
1016 "Distribute default route for IPv6\n"
1017 "Distribute default route into level-1\n"
1018 "Distribute default route into level-2\n"
1019 "Always advertise default route\n"
1020 "Metric for default route\n"
1021 "ISIS default metric\n"
1022 "Route map reference\n"
1023 "Pointer to route-map entries\n")
1026 nb_cli_enqueue_change(vty
, ".", NB_OP_DESTROY
, NULL
);
1028 nb_cli_enqueue_change(vty
, ".", NB_OP_CREATE
, NULL
);
1029 nb_cli_enqueue_change(vty
, "./always", NB_OP_MODIFY
,
1030 always
? "true" : "false");
1031 nb_cli_enqueue_change(vty
, "./route-map",
1032 rmap
? NB_OP_MODIFY
: NB_OP_DESTROY
,
1033 rmap
? rmap
: NULL
);
1034 nb_cli_enqueue_change(vty
, "./metric", NB_OP_MODIFY
,
1035 metric_str
? metric_str
: NULL
);
1036 if (strmatch(ip
, "ipv6") && !always
) {
1038 "Zebra doesn't implement default-originate for IPv6 yet\n");
1040 "so use with care or use default-originate always.\n");
1044 return nb_cli_apply_changes(
1045 vty
, "./default-information-originate/%s[level='%s']", ip
,
1049 static void vty_print_def_origin(struct vty
*vty
, struct lyd_node
*dnode
,
1050 const char *family
, const char *level
,
1053 vty_out(vty
, " default-information originate %s %s", family
, level
);
1054 if (yang_dnode_get_bool(dnode
, "./always"))
1055 vty_out(vty
, " always");
1057 if (yang_dnode_exists(dnode
, "./route-map"))
1058 vty_out(vty
, " route-map %s",
1059 yang_dnode_get_string(dnode
, "./route-map"));
1060 if (show_defaults
|| !yang_dnode_is_default(dnode
, "./metric"))
1061 vty_out(vty
, " metric %s",
1062 yang_dnode_get_string(dnode
, "./metric"));
1067 void cli_show_isis_def_origin_ipv4(struct vty
*vty
, struct lyd_node
*dnode
,
1070 const char *level
= yang_dnode_get_string(dnode
, "./level");
1072 vty_print_def_origin(vty
, dnode
, "ipv4", level
, show_defaults
);
1075 void cli_show_isis_def_origin_ipv6(struct vty
*vty
, struct lyd_node
*dnode
,
1078 const char *level
= yang_dnode_get_string(dnode
, "./level");
1080 vty_print_def_origin(vty
, dnode
, "ipv6", level
, show_defaults
);
1084 * XPath: /frr-isisd:isis/instance/redistribute
1086 DEFPY(isis_redistribute
, isis_redistribute_cmd
,
1087 "[no] redistribute <ipv4|ipv6>$ip " PROTO_REDIST_STR
1089 " <level-1|level-2>$level"
1090 " [{metric (0-16777215)|route-map WORD}]",
1092 "Redistribute IPv4 routes\n"
1093 "Redistribute IPv6 routes\n" PROTO_REDIST_HELP
1094 "Redistribute into level-1\n"
1095 "Redistribute into level-2\n"
1096 "Metric for redistributed routes\n"
1097 "ISIS default metric\n"
1098 "Route map reference\n"
1099 "Pointer to route-map entries\n")
1102 nb_cli_enqueue_change(vty
, ".", NB_OP_DESTROY
, NULL
);
1104 nb_cli_enqueue_change(vty
, ".", NB_OP_CREATE
, NULL
);
1105 nb_cli_enqueue_change(vty
, "./route-map",
1106 route_map
? NB_OP_MODIFY
: NB_OP_DESTROY
,
1107 route_map
? route_map
: NULL
);
1108 nb_cli_enqueue_change(vty
, "./metric", NB_OP_MODIFY
,
1109 metric_str
? metric_str
: NULL
);
1112 return nb_cli_apply_changes(
1113 vty
, "./redistribute/%s[protocol='%s'][level='%s']", ip
, proto
,
1117 static void vty_print_redistribute(struct vty
*vty
, struct lyd_node
*dnode
,
1118 bool show_defaults
, const char *family
)
1120 const char *level
= yang_dnode_get_string(dnode
, "./level");
1121 const char *protocol
= yang_dnode_get_string(dnode
, "./protocol");
1123 vty_out(vty
, " redistribute %s %s %s", family
, protocol
, level
);
1124 if (show_defaults
|| !yang_dnode_is_default(dnode
, "./metric"))
1125 vty_out(vty
, " metric %s",
1126 yang_dnode_get_string(dnode
, "./metric"));
1127 if (yang_dnode_exists(dnode
, "./route-map"))
1128 vty_out(vty
, " route-map %s",
1129 yang_dnode_get_string(dnode
, "./route-map"));
1133 void cli_show_isis_redistribute_ipv4(struct vty
*vty
, struct lyd_node
*dnode
,
1136 vty_print_redistribute(vty
, dnode
, show_defaults
, "ipv4");
1138 void cli_show_isis_redistribute_ipv6(struct vty
*vty
, struct lyd_node
*dnode
,
1141 vty_print_redistribute(vty
, dnode
, show_defaults
, "ipv6");
1145 * XPath: /frr-isisd:isis/instance/multi-topology
1147 DEFPY(isis_topology
, isis_topology_cmd
,
1155 "|ipv6-dstsrc>$topology "
1156 "[overload]$overload",
1158 "Configure IS-IS topologies\n"
1159 "IPv4 unicast topology\n"
1160 "IPv4 management topology\n"
1161 "IPv6 unicast topology\n"
1162 "IPv4 multicast topology\n"
1163 "IPv6 multicast topology\n"
1164 "IPv6 management topology\n"
1165 "IPv6 dst-src topology\n"
1166 "Set overload bit for topology\n")
1168 char base_xpath
[XPATH_MAXLEN
];
1170 /* Since IPv4-unicast is not configurable it is not present in the
1171 * YANG model, so we need to validate it here
1173 if (strmatch(topology
, "ipv4-unicast")) {
1174 vty_out(vty
, "Cannot configure IPv4 unicast topology\n");
1175 return CMD_WARNING_CONFIG_FAILED
;
1178 if (strmatch(topology
, "ipv4-mgmt"))
1179 snprintf(base_xpath
, XPATH_MAXLEN
,
1180 "./multi-topology/ipv4-management");
1181 else if (strmatch(topology
, "ipv6-mgmt"))
1182 snprintf(base_xpath
, XPATH_MAXLEN
,
1183 "./multi-topology/ipv6-management");
1185 snprintf(base_xpath
, XPATH_MAXLEN
, "./multi-topology/%s",
1189 nb_cli_enqueue_change(vty
, ".", NB_OP_DESTROY
, NULL
);
1191 nb_cli_enqueue_change(vty
, ".", NB_OP_CREATE
, NULL
);
1192 nb_cli_enqueue_change(vty
, "./overload", NB_OP_MODIFY
,
1193 overload
? "true" : "false");
1196 return nb_cli_apply_changes(vty
, base_xpath
);
1199 void cli_show_isis_mt_ipv4_multicast(struct vty
*vty
, struct lyd_node
*dnode
,
1202 vty_out(vty
, " topology ipv4-multicast");
1203 if (yang_dnode_get_bool(dnode
, "./overload"))
1204 vty_out(vty
, " overload");
1208 void cli_show_isis_mt_ipv4_mgmt(struct vty
*vty
, struct lyd_node
*dnode
,
1211 vty_out(vty
, " topology ipv4-mgmt");
1212 if (yang_dnode_get_bool(dnode
, "./overload"))
1213 vty_out(vty
, " overload");
1217 void cli_show_isis_mt_ipv6_unicast(struct vty
*vty
, struct lyd_node
*dnode
,
1220 vty_out(vty
, " topology ipv6-unicast");
1221 if (yang_dnode_get_bool(dnode
, "./overload"))
1222 vty_out(vty
, " overload");
1226 void cli_show_isis_mt_ipv6_multicast(struct vty
*vty
, struct lyd_node
*dnode
,
1229 vty_out(vty
, " topology ipv6-multicast");
1230 if (yang_dnode_get_bool(dnode
, "./overload"))
1231 vty_out(vty
, " overload");
1235 void cli_show_isis_mt_ipv6_mgmt(struct vty
*vty
, struct lyd_node
*dnode
,
1238 vty_out(vty
, " topology ipv6-mgmt");
1239 if (yang_dnode_get_bool(dnode
, "./overload"))
1240 vty_out(vty
, " overload");
1244 void cli_show_isis_mt_ipv6_dstsrc(struct vty
*vty
, struct lyd_node
*dnode
,
1247 vty_out(vty
, " topology ipv6-dstsrc");
1248 if (yang_dnode_get_bool(dnode
, "./overload"))
1249 vty_out(vty
, " overload");
1254 * XPath: /frr-interface:lib/interface/frr-isisd:isis/passive
1256 DEFPY(isis_passive
, isis_passive_cmd
, "[no] isis passive",
1258 "IS-IS routing protocol\n"
1259 "Configure the passive mode for interface\n")
1261 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/passive", NB_OP_MODIFY
,
1262 no
? "false" : "true");
1264 return nb_cli_apply_changes(vty
, NULL
);
1267 void cli_show_ip_isis_passive(struct vty
*vty
, struct lyd_node
*dnode
,
1270 if (!yang_dnode_get_bool(dnode
, NULL
))
1271 vty_out(vty
, " no");
1272 vty_out(vty
, " isis passive\n");
1276 * XPath: /frr-interface:lib/interface/frr-isisd:isis/password
1279 DEFPY(isis_passwd
, isis_passwd_cmd
, "isis password <md5|clear>$type WORD$pwd",
1280 "IS-IS routing protocol\n"
1281 "Configure the authentication password for a circuit\n"
1282 "HMAC-MD5 authentication\n"
1283 "Cleartext password\n"
1284 "Circuit password\n")
1286 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/password", NB_OP_CREATE
,
1288 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/password/password",
1290 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/password/password-type",
1291 NB_OP_MODIFY
, type
);
1293 return nb_cli_apply_changes(vty
, NULL
);
1296 DEFPY(no_isis_passwd
, no_isis_passwd_cmd
, "no isis password [<md5|clear> WORD]",
1298 "IS-IS routing protocol\n"
1299 "Configure the authentication password for a circuit\n"
1300 "HMAC-MD5 authentication\n"
1301 "Cleartext password\n"
1302 "Circuit password\n")
1304 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/password", NB_OP_DESTROY
,
1307 return nb_cli_apply_changes(vty
, NULL
);
1310 void cli_show_ip_isis_password(struct vty
*vty
, struct lyd_node
*dnode
,
1313 vty_out(vty
, " isis password %s %s\n",
1314 yang_dnode_get_string(dnode
, "./password-type"),
1315 yang_dnode_get_string(dnode
, "./password"));
1319 * XPath: /frr-interface:lib/interface/frr-isisd:isis/metric
1321 DEFPY(isis_metric
, isis_metric_cmd
,
1322 "isis metric [level-1|level-2]$level (0-16777215)$met",
1323 "IS-IS routing protocol\n"
1324 "Set default metric for circuit\n"
1325 "Specify metric for level-1 routing\n"
1326 "Specify metric for level-2 routing\n"
1327 "Default metric value\n")
1329 if (!level
|| strmatch(level
, "level-1"))
1330 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/metric/level-1",
1331 NB_OP_MODIFY
, met_str
);
1332 if (!level
|| strmatch(level
, "level-2"))
1333 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/metric/level-2",
1334 NB_OP_MODIFY
, met_str
);
1336 return nb_cli_apply_changes(vty
, NULL
);
1339 DEFPY(no_isis_metric
, no_isis_metric_cmd
,
1340 "no isis metric [level-1|level-2]$level [(0-16777215)]",
1342 "IS-IS routing protocol\n"
1343 "Set default metric for circuit\n"
1344 "Specify metric for level-1 routing\n"
1345 "Specify metric for level-2 routing\n"
1346 "Default metric value\n")
1348 if (!level
|| strmatch(level
, "level-1"))
1349 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/metric/level-1",
1350 NB_OP_MODIFY
, NULL
);
1351 if (!level
|| strmatch(level
, "level-2"))
1352 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/metric/level-2",
1353 NB_OP_MODIFY
, NULL
);
1355 return nb_cli_apply_changes(vty
, NULL
);
1358 void cli_show_ip_isis_metric(struct vty
*vty
, struct lyd_node
*dnode
,
1361 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1362 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1364 if (strmatch(l1
, l2
))
1365 vty_out(vty
, " isis metric %s\n", l1
);
1367 vty_out(vty
, " isis metric %s level-1\n", l1
);
1368 vty_out(vty
, " isis metric %s level-2\n", l2
);
1373 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/interval
1375 DEFPY(isis_hello_interval
, isis_hello_interval_cmd
,
1376 "isis hello-interval [level-1|level-2]$level (1-600)$intv",
1377 "IS-IS routing protocol\n"
1378 "Set Hello interval\n"
1379 "Specify hello-interval for level-1 IIHs\n"
1380 "Specify hello-interval for level-2 IIHs\n"
1381 "Holdtime 1 seconds, interval depends on multiplier\n")
1383 if (!level
|| strmatch(level
, "level-1"))
1384 nb_cli_enqueue_change(vty
,
1385 "./frr-isisd:isis/hello/interval/level-1",
1386 NB_OP_MODIFY
, intv_str
);
1387 if (!level
|| strmatch(level
, "level-2"))
1388 nb_cli_enqueue_change(vty
,
1389 "./frr-isisd:isis/hello/interval/level-2",
1390 NB_OP_MODIFY
, intv_str
);
1392 return nb_cli_apply_changes(vty
, NULL
);
1395 DEFPY(no_isis_hello_interval
, no_isis_hello_interval_cmd
,
1396 "no isis hello-interval [level-1|level-2]$level [(1-600)]",
1398 "IS-IS routing protocol\n"
1399 "Set Hello interval\n"
1400 "Specify hello-interval for level-1 IIHs\n"
1401 "Specify hello-interval for level-2 IIHs\n"
1402 "Holdtime 1 second, interval depends on multiplier\n")
1404 if (!level
|| strmatch(level
, "level-1"))
1405 nb_cli_enqueue_change(vty
,
1406 "./frr-isisd:isis/hello/interval/level-1",
1407 NB_OP_MODIFY
, NULL
);
1408 if (!level
|| strmatch(level
, "level-2"))
1409 nb_cli_enqueue_change(vty
,
1410 "./frr-isisd:isis/hello/interval/level-2",
1411 NB_OP_MODIFY
, NULL
);
1413 return nb_cli_apply_changes(vty
, NULL
);
1416 void cli_show_ip_isis_hello_interval(struct vty
*vty
, struct lyd_node
*dnode
,
1419 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1420 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1422 if (strmatch(l1
, l2
))
1423 vty_out(vty
, " isis hello-interval %s\n", l1
);
1425 vty_out(vty
, " isis hello-interval %s level-1\n", l1
);
1426 vty_out(vty
, " isis hello-interval %s level-2\n", l2
);
1431 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/multiplier
1433 DEFPY(isis_hello_multiplier
, isis_hello_multiplier_cmd
,
1434 "isis hello-multiplier [level-1|level-2]$level (2-100)$mult",
1435 "IS-IS routing protocol\n"
1436 "Set multiplier for Hello holding time\n"
1437 "Specify hello multiplier for level-1 IIHs\n"
1438 "Specify hello multiplier for level-2 IIHs\n"
1439 "Hello multiplier value\n")
1441 if (!level
|| strmatch(level
, "level-1"))
1442 nb_cli_enqueue_change(
1443 vty
, "./frr-isisd:isis/hello/multiplier/level-1",
1444 NB_OP_MODIFY
, mult_str
);
1445 if (!level
|| strmatch(level
, "level-2"))
1446 nb_cli_enqueue_change(
1447 vty
, "./frr-isisd:isis/hello/multiplier/level-2",
1448 NB_OP_MODIFY
, mult_str
);
1450 return nb_cli_apply_changes(vty
, NULL
);
1453 DEFPY(no_isis_hello_multiplier
, no_isis_hello_multiplier_cmd
,
1454 "no isis hello-multiplier [level-1|level-2]$level [(2-100)]",
1456 "IS-IS routing protocol\n"
1457 "Set multiplier for Hello holding time\n"
1458 "Specify hello multiplier for level-1 IIHs\n"
1459 "Specify hello multiplier for level-2 IIHs\n"
1460 "Hello multiplier value\n")
1462 if (!level
|| strmatch(level
, "level-1"))
1463 nb_cli_enqueue_change(
1464 vty
, "./frr-isisd:isis/hello/multiplier/level-1",
1465 NB_OP_MODIFY
, NULL
);
1466 if (!level
|| strmatch(level
, "level-2"))
1467 nb_cli_enqueue_change(
1468 vty
, "./frr-isisd:isis/hello/multiplier/level-2",
1469 NB_OP_MODIFY
, NULL
);
1471 return nb_cli_apply_changes(vty
, NULL
);
1474 void cli_show_ip_isis_hello_multi(struct vty
*vty
, struct lyd_node
*dnode
,
1477 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1478 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1480 if (strmatch(l1
, l2
))
1481 vty_out(vty
, " isis hello-multiplier %s\n", l1
);
1483 vty_out(vty
, " isis hello-multiplier %s level-1\n", l1
);
1484 vty_out(vty
, " isis hello-multiplier %s level-2\n", l2
);
1490 * /frr-interface:lib/interface/frr-isisd:isis/disable-three-way-handshake
1492 DEFPY(isis_threeway_adj
, isis_threeway_adj_cmd
, "[no] isis three-way-handshake",
1495 "Enable/Disable three-way handshake\n")
1497 nb_cli_enqueue_change(vty
,
1498 "./frr-isisd:isis/disable-three-way-handshake",
1499 NB_OP_MODIFY
, no
? "true" : "false");
1501 return nb_cli_apply_changes(vty
, NULL
);
1504 void cli_show_ip_isis_threeway_shake(struct vty
*vty
, struct lyd_node
*dnode
,
1507 if (yang_dnode_get_bool(dnode
, NULL
))
1508 vty_out(vty
, " no");
1509 vty_out(vty
, " isis three-way-handshake\n");
1513 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/padding
1515 DEFPY(isis_hello_padding
, isis_hello_padding_cmd
, "[no] isis hello padding",
1517 "IS-IS routing protocol\n"
1518 "Add padding to IS-IS hello packets\n"
1519 "Pad hello packets\n")
1521 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/hello/padding",
1522 NB_OP_MODIFY
, no
? "false" : "true");
1524 return nb_cli_apply_changes(vty
, NULL
);
1527 void cli_show_ip_isis_hello_padding(struct vty
*vty
, struct lyd_node
*dnode
,
1530 if (!yang_dnode_get_bool(dnode
, NULL
))
1531 vty_out(vty
, " no");
1533 vty_out(vty
, " isis hello padding\n");
1537 * XPath: /frr-interface:lib/interface/frr-isisd:isis/csnp-interval
1539 DEFPY(csnp_interval
, csnp_interval_cmd
,
1540 "isis csnp-interval (1-600)$intv [level-1|level-2]$level",
1541 "IS-IS routing protocol\n"
1542 "Set CSNP interval in seconds\n"
1543 "CSNP interval value\n"
1544 "Specify interval for level-1 CSNPs\n"
1545 "Specify interval for level-2 CSNPs\n")
1547 if (!level
|| strmatch(level
, "level-1"))
1548 nb_cli_enqueue_change(vty
,
1549 "./frr-isisd:isis/csnp-interval/level-1",
1550 NB_OP_MODIFY
, intv_str
);
1551 if (!level
|| strmatch(level
, "level-2"))
1552 nb_cli_enqueue_change(vty
,
1553 "./frr-isisd:isis/csnp-interval/level-2",
1554 NB_OP_MODIFY
, intv_str
);
1556 return nb_cli_apply_changes(vty
, NULL
);
1559 DEFPY(no_csnp_interval
, no_csnp_interval_cmd
,
1560 "no isis csnp-interval [(1-600)] [level-1|level-2]$level",
1562 "IS-IS routing protocol\n"
1563 "Set CSNP interval in seconds\n"
1564 "CSNP interval value\n"
1565 "Specify interval for level-1 CSNPs\n"
1566 "Specify interval for level-2 CSNPs\n")
1568 if (!level
|| strmatch(level
, "level-1"))
1569 nb_cli_enqueue_change(vty
,
1570 "./frr-isisd:isis/csnp-interval/level-1",
1571 NB_OP_MODIFY
, NULL
);
1572 if (!level
|| strmatch(level
, "level-2"))
1573 nb_cli_enqueue_change(vty
,
1574 "./frr-isisd:isis/csnp-interval/level-2",
1575 NB_OP_MODIFY
, NULL
);
1577 return nb_cli_apply_changes(vty
, NULL
);
1580 void cli_show_ip_isis_csnp_interval(struct vty
*vty
, struct lyd_node
*dnode
,
1583 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1584 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1586 if (strmatch(l1
, l2
))
1587 vty_out(vty
, " isis csnp-interval %s\n", l1
);
1589 vty_out(vty
, " isis csnp-interval %s level-1\n", l1
);
1590 vty_out(vty
, " isis csnp-interval %s level-2\n", l2
);
1595 * XPath: /frr-interface:lib/interface/frr-isisd:isis/psnp-interval
1597 DEFPY(psnp_interval
, psnp_interval_cmd
,
1598 "isis psnp-interval (1-120)$intv [level-1|level-2]$level",
1599 "IS-IS routing protocol\n"
1600 "Set PSNP interval in seconds\n"
1601 "PSNP interval value\n"
1602 "Specify interval for level-1 PSNPs\n"
1603 "Specify interval for level-2 PSNPs\n")
1605 if (!level
|| strmatch(level
, "level-1"))
1606 nb_cli_enqueue_change(vty
,
1607 "./frr-isisd:isis/psnp-interval/level-1",
1608 NB_OP_MODIFY
, intv_str
);
1609 if (!level
|| strmatch(level
, "level-2"))
1610 nb_cli_enqueue_change(vty
,
1611 "./frr-isisd:isis/psnp-interval/level-2",
1612 NB_OP_MODIFY
, intv_str
);
1614 return nb_cli_apply_changes(vty
, NULL
);
1617 DEFPY(no_psnp_interval
, no_psnp_interval_cmd
,
1618 "no isis psnp-interval [(1-120)] [level-1|level-2]$level",
1620 "IS-IS routing protocol\n"
1621 "Set PSNP interval in seconds\n"
1622 "PSNP interval value\n"
1623 "Specify interval for level-1 PSNPs\n"
1624 "Specify interval for level-2 PSNPs\n")
1626 if (!level
|| strmatch(level
, "level-1"))
1627 nb_cli_enqueue_change(vty
,
1628 "./frr-isisd:isis/psnp-interval/level-1",
1629 NB_OP_MODIFY
, NULL
);
1630 if (!level
|| strmatch(level
, "level-2"))
1631 nb_cli_enqueue_change(vty
,
1632 "./frr-isisd:isis/psnp-interval/level-2",
1633 NB_OP_MODIFY
, NULL
);
1635 return nb_cli_apply_changes(vty
, NULL
);
1638 void cli_show_ip_isis_psnp_interval(struct vty
*vty
, struct lyd_node
*dnode
,
1641 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1642 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1644 if (strmatch(l1
, l2
))
1645 vty_out(vty
, " isis psnp-interval %s\n", l1
);
1647 vty_out(vty
, " isis psnp-interval %s level-1\n", l1
);
1648 vty_out(vty
, " isis psnp-interval %s level-2\n", l2
);
1653 * XPath: /frr-interface:lib/interface/frr-isisd:isis/multi-topology
1655 DEFPY(circuit_topology
, circuit_topology_cmd
,
1656 "[no] isis topology"
1666 "IS-IS routing protocol\n"
1667 "Configure interface IS-IS topologies\n"
1668 "IPv4 unicast topology\n"
1669 "IPv4 management topology\n"
1670 "IPv6 unicast topology\n"
1671 "IPv4 multicast topology\n"
1672 "IPv6 multicast topology\n"
1673 "IPv6 management topology\n"
1674 "IPv6 dst-src topology\n")
1676 nb_cli_enqueue_change(vty
, ".", NB_OP_MODIFY
, no
? "false" : "true");
1678 if (strmatch(topology
, "ipv4-mgmt"))
1679 return nb_cli_apply_changes(
1680 vty
, "./frr-isisd:isis/multi-topology/ipv4-management");
1681 else if (strmatch(topology
, "ipv6-mgmt"))
1682 return nb_cli_apply_changes(
1683 vty
, "./frr-isisd:isis/multi-topology/ipv6-management");
1685 return nb_cli_apply_changes(
1686 vty
, "./frr-isisd:isis/multi-topology/%s", topology
);
1689 void cli_show_ip_isis_mt_ipv4_unicast(struct vty
*vty
, struct lyd_node
*dnode
,
1692 if (!yang_dnode_get_bool(dnode
, NULL
))
1693 vty_out(vty
, " no");
1694 vty_out(vty
, " isis topology ipv4-unicast\n");
1697 void cli_show_ip_isis_mt_ipv4_multicast(struct vty
*vty
, struct lyd_node
*dnode
,
1700 if (!yang_dnode_get_bool(dnode
, NULL
))
1701 vty_out(vty
, " no");
1702 vty_out(vty
, " isis topology ipv4-multicast\n");
1705 void cli_show_ip_isis_mt_ipv4_mgmt(struct vty
*vty
, struct lyd_node
*dnode
,
1708 if (!yang_dnode_get_bool(dnode
, NULL
))
1709 vty_out(vty
, " no");
1710 vty_out(vty
, " isis topology ipv4-mgmt\n");
1713 void cli_show_ip_isis_mt_ipv6_unicast(struct vty
*vty
, struct lyd_node
*dnode
,
1716 if (!yang_dnode_get_bool(dnode
, NULL
))
1717 vty_out(vty
, " no");
1718 vty_out(vty
, " isis topology ipv6-unicast\n");
1721 void cli_show_ip_isis_mt_ipv6_multicast(struct vty
*vty
, struct lyd_node
*dnode
,
1724 if (!yang_dnode_get_bool(dnode
, NULL
))
1725 vty_out(vty
, " no");
1726 vty_out(vty
, " isis topology ipv6-multicast\n");
1729 void cli_show_ip_isis_mt_ipv6_mgmt(struct vty
*vty
, struct lyd_node
*dnode
,
1732 if (!yang_dnode_get_bool(dnode
, NULL
))
1733 vty_out(vty
, " no");
1734 vty_out(vty
, " isis topology ipv6-mgmt\n");
1737 void cli_show_ip_isis_mt_ipv6_dstsrc(struct vty
*vty
, struct lyd_node
*dnode
,
1740 if (!yang_dnode_get_bool(dnode
, NULL
))
1741 vty_out(vty
, " no");
1742 vty_out(vty
, " isis topology ipv6-dstsrc\n");
1746 * XPath: /frr-interface:lib/interface/frr-isisd:isis/circuit-type
1748 DEFPY(isis_circuit_type
, isis_circuit_type_cmd
,
1749 "isis circuit-type <level-1|level-1-2|level-2-only>$type",
1750 "IS-IS routing protocol\n"
1751 "Configure circuit type for interface\n"
1752 "Level-1 only adjacencies are formed\n"
1753 "Level-1-2 adjacencies are formed\n"
1754 "Level-2 only adjacencies are formed\n")
1756 nb_cli_enqueue_change(
1757 vty
, "./frr-isisd:isis/circuit-type", NB_OP_MODIFY
,
1758 strmatch(type
, "level-2-only") ? "level-2" : type
);
1760 return nb_cli_apply_changes(vty
, NULL
);
1763 DEFPY(no_isis_circuit_type
, no_isis_circuit_type_cmd
,
1764 "no isis circuit-type [level-1|level-1-2|level-2-only]",
1766 "IS-IS routing protocol\n"
1767 "Configure circuit type for interface\n"
1768 "Level-1 only adjacencies are formed\n"
1769 "Level-1-2 adjacencies are formed\n"
1770 "Level-2 only adjacencies are formed\n")
1772 struct interface
*ifp
;
1773 struct isis_circuit
*circuit
;
1775 const char *circ_type
;
1778 * Default value depends on whether the circuit is part of an area,
1779 * and the is-type of the area if there is one. So we need to do this
1782 ifp
= nb_running_get_entry(NULL
, VTY_CURR_XPATH
, false);
1786 circuit
= circuit_scan_by_ifp(ifp
);
1790 if (circuit
->state
== C_STATE_UP
)
1791 is_type
= circuit
->area
->is_type
;
1797 circ_type
= "level-1";
1800 circ_type
= "level-2";
1802 case IS_LEVEL_1_AND_2
:
1803 circ_type
= "level-1-2";
1806 return CMD_ERR_NO_MATCH
;
1808 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/circuit-type",
1809 NB_OP_MODIFY
, circ_type
);
1811 return nb_cli_apply_changes(vty
, NULL
);
1814 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/circuit-type",
1815 NB_OP_MODIFY
, NULL
);
1817 return nb_cli_apply_changes(vty
, NULL
);
1820 void cli_show_ip_isis_circ_type(struct vty
*vty
, struct lyd_node
*dnode
,
1823 int level
= yang_dnode_get_enum(dnode
, NULL
);
1827 vty_out(vty
, " isis circuit-type level-1\n");
1830 vty_out(vty
, " isis circuit-type level-2-only\n");
1832 case IS_LEVEL_1_AND_2
:
1833 vty_out(vty
, " isis circuit-type level-1-2\n");
1839 * XPath: /frr-interface:lib/interface/frr-isisd:isis/network-type
1841 DEFPY(isis_network
, isis_network_cmd
, "[no] isis network point-to-point",
1843 "IS-IS routing protocol\n"
1844 "Set network type\n"
1845 "point-to-point network type\n")
1847 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/network-type",
1849 no
? "broadcast" : "point-to-point");
1851 return nb_cli_apply_changes(vty
, NULL
);
1854 void cli_show_ip_isis_network_type(struct vty
*vty
, struct lyd_node
*dnode
,
1857 if (yang_dnode_get_enum(dnode
, NULL
) != CIRCUIT_T_P2P
)
1858 vty_out(vty
, " no");
1860 vty_out(vty
, " isis network point-to-point\n");
1864 * XPath: /frr-interface:lib/interface/frr-isisd:isis/priority
1866 DEFPY(isis_priority
, isis_priority_cmd
,
1867 "isis priority (0-127)$prio [level-1|level-2]$level",
1868 "IS-IS routing protocol\n"
1869 "Set priority for Designated Router election\n"
1871 "Specify priority for level-1 routing\n"
1872 "Specify priority for level-2 routing\n")
1874 if (!level
|| strmatch(level
, "level-1"))
1875 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/priority/level-1",
1876 NB_OP_MODIFY
, prio_str
);
1877 if (!level
|| strmatch(level
, "level-2"))
1878 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/priority/level-2",
1879 NB_OP_MODIFY
, prio_str
);
1881 return nb_cli_apply_changes(vty
, NULL
);
1884 DEFPY(no_isis_priority
, no_isis_priority_cmd
,
1885 "no isis priority [(0-127)] [level-1|level-2]$level",
1887 "IS-IS routing protocol\n"
1888 "Set priority for Designated Router election\n"
1890 "Specify priority for level-1 routing\n"
1891 "Specify priority for level-2 routing\n")
1893 if (!level
|| strmatch(level
, "level-1"))
1894 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/priority/level-1",
1895 NB_OP_MODIFY
, NULL
);
1896 if (!level
|| strmatch(level
, "level-2"))
1897 nb_cli_enqueue_change(vty
, "./frr-isisd:isis/priority/level-2",
1898 NB_OP_MODIFY
, NULL
);
1900 return nb_cli_apply_changes(vty
, NULL
);
1903 void cli_show_ip_isis_priority(struct vty
*vty
, struct lyd_node
*dnode
,
1906 const char *l1
= yang_dnode_get_string(dnode
, "./level-1");
1907 const char *l2
= yang_dnode_get_string(dnode
, "./level-2");
1909 if (strmatch(l1
, l2
))
1910 vty_out(vty
, " isis priority %s\n", l1
);
1912 vty_out(vty
, " isis priority %s level-1\n", l1
);
1913 vty_out(vty
, " isis priority %s level-2\n", l2
);
1918 * XPath: /frr-isisd:isis/instance/log-adjacency-changes
1920 DEFPY(log_adj_changes
, log_adj_changes_cmd
, "[no] log-adjacency-changes",
1921 NO_STR
"Log changes in adjacency state\n")
1923 nb_cli_enqueue_change(vty
, "./log-adjacency-changes", NB_OP_MODIFY
,
1924 no
? "false" : "true");
1926 return nb_cli_apply_changes(vty
, NULL
);
1929 void cli_show_isis_log_adjacency(struct vty
*vty
, struct lyd_node
*dnode
,
1932 if (!yang_dnode_get_bool(dnode
, NULL
))
1933 vty_out(vty
, " no");
1934 vty_out(vty
, " log-adjacency-changes\n");
1937 void isis_cli_init(void)
1939 install_element(CONFIG_NODE
, &router_isis_cmd
);
1940 install_element(CONFIG_NODE
, &no_router_isis_cmd
);
1942 install_element(INTERFACE_NODE
, &ip_router_isis_cmd
);
1943 install_element(INTERFACE_NODE
, &ip6_router_isis_cmd
);
1944 install_element(INTERFACE_NODE
, &no_ip_router_isis_cmd
);
1946 install_element(ISIS_NODE
, &net_cmd
);
1948 install_element(ISIS_NODE
, &is_type_cmd
);
1949 install_element(ISIS_NODE
, &no_is_type_cmd
);
1951 install_element(ISIS_NODE
, &dynamic_hostname_cmd
);
1953 install_element(ISIS_NODE
, &set_overload_bit_cmd
);
1954 install_element(ISIS_NODE
, &set_attached_bit_cmd
);
1956 install_element(ISIS_NODE
, &metric_style_cmd
);
1957 install_element(ISIS_NODE
, &no_metric_style_cmd
);
1959 install_element(ISIS_NODE
, &area_passwd_cmd
);
1960 install_element(ISIS_NODE
, &domain_passwd_cmd
);
1961 install_element(ISIS_NODE
, &no_area_passwd_cmd
);
1963 install_element(ISIS_NODE
, &lsp_gen_interval_cmd
);
1964 install_element(ISIS_NODE
, &no_lsp_gen_interval_cmd
);
1965 install_element(ISIS_NODE
, &lsp_refresh_interval_cmd
);
1966 install_element(ISIS_NODE
, &no_lsp_refresh_interval_cmd
);
1967 install_element(ISIS_NODE
, &max_lsp_lifetime_cmd
);
1968 install_element(ISIS_NODE
, &no_max_lsp_lifetime_cmd
);
1969 install_element(ISIS_NODE
, &area_lsp_mtu_cmd
);
1970 install_element(ISIS_NODE
, &no_area_lsp_mtu_cmd
);
1972 install_element(ISIS_NODE
, &spf_interval_cmd
);
1973 install_element(ISIS_NODE
, &no_spf_interval_cmd
);
1974 install_element(ISIS_NODE
, &spf_delay_ietf_cmd
);
1975 install_element(ISIS_NODE
, &no_spf_delay_ietf_cmd
);
1977 install_element(ISIS_NODE
, &area_purge_originator_cmd
);
1979 install_element(ISIS_NODE
, &isis_mpls_te_on_cmd
);
1980 install_element(ISIS_NODE
, &no_isis_mpls_te_on_cmd
);
1981 install_element(ISIS_NODE
, &isis_mpls_te_router_addr_cmd
);
1982 install_element(ISIS_NODE
, &no_isis_mpls_te_router_addr_cmd
);
1983 install_element(ISIS_NODE
, &isis_mpls_te_inter_as_cmd
);
1985 install_element(ISIS_NODE
, &isis_default_originate_cmd
);
1986 install_element(ISIS_NODE
, &isis_redistribute_cmd
);
1988 install_element(ISIS_NODE
, &isis_topology_cmd
);
1990 install_element(INTERFACE_NODE
, &isis_passive_cmd
);
1992 install_element(INTERFACE_NODE
, &isis_passwd_cmd
);
1993 install_element(INTERFACE_NODE
, &no_isis_passwd_cmd
);
1995 install_element(INTERFACE_NODE
, &isis_metric_cmd
);
1996 install_element(INTERFACE_NODE
, &no_isis_metric_cmd
);
1998 install_element(INTERFACE_NODE
, &isis_hello_interval_cmd
);
1999 install_element(INTERFACE_NODE
, &no_isis_hello_interval_cmd
);
2001 install_element(INTERFACE_NODE
, &isis_hello_multiplier_cmd
);
2002 install_element(INTERFACE_NODE
, &no_isis_hello_multiplier_cmd
);
2004 install_element(INTERFACE_NODE
, &isis_threeway_adj_cmd
);
2006 install_element(INTERFACE_NODE
, &isis_hello_padding_cmd
);
2008 install_element(INTERFACE_NODE
, &csnp_interval_cmd
);
2009 install_element(INTERFACE_NODE
, &no_csnp_interval_cmd
);
2011 install_element(INTERFACE_NODE
, &psnp_interval_cmd
);
2012 install_element(INTERFACE_NODE
, &no_psnp_interval_cmd
);
2014 install_element(INTERFACE_NODE
, &circuit_topology_cmd
);
2016 install_element(INTERFACE_NODE
, &isis_circuit_type_cmd
);
2017 install_element(INTERFACE_NODE
, &no_isis_circuit_type_cmd
);
2019 install_element(INTERFACE_NODE
, &isis_network_cmd
);
2021 install_element(INTERFACE_NODE
, &isis_priority_cmd
);
2022 install_element(INTERFACE_NODE
, &no_isis_priority_cmd
);
2024 install_element(ISIS_NODE
, &log_adj_changes_cmd
);
2027 #endif /* ifndef FABRICD */