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
25 #include "northbound.h"
29 #include "spf_backoff.h"
30 #include "lib_errors.h"
33 #include "isisd/isisd.h"
34 #include "isisd/isis_nb.h"
35 #include "isisd/isis_common.h"
36 #include "isisd/isis_bfd.h"
37 #include "isisd/isis_circuit.h"
38 #include "isisd/isis_lsp.h"
39 #include "isisd/isis_dynhn.h"
40 #include "isisd/isis_misc.h"
41 #include "isisd/isis_csm.h"
42 #include "isisd/isis_adjacency.h"
43 #include "isisd/isis_spf.h"
44 #include "isisd/isis_te.h"
45 #include "isisd/isis_memory.h"
46 #include "isisd/isis_mt.h"
47 #include "isisd/isis_redist.h"
50 * XPath: /frr-isisd:isis/instance
52 int isis_instance_create(struct nb_cb_create_args
*args
)
54 struct isis_area
*area
;
57 if (args
->event
!= NB_EV_APPLY
)
60 area_tag
= yang_dnode_get_string(args
->dnode
, "./area-tag");
61 area
= isis_area_lookup(area_tag
);
63 return NB_ERR_INCONSISTENCY
;
65 area
= isis_area_create(area_tag
);
66 /* save area in dnode to avoid looking it up all the time */
67 nb_running_set_entry(args
->dnode
, area
);
72 int isis_instance_destroy(struct nb_cb_destroy_args
*args
)
74 struct isis_area
*area
;
76 if (args
->event
!= NB_EV_APPLY
)
79 area
= nb_running_unset_entry(args
->dnode
);
80 isis_area_destroy(area
->area_tag
);
86 * XPath: /frr-isisd:isis/instance/is-type
88 int isis_instance_is_type_modify(struct nb_cb_modify_args
*args
)
90 struct isis_area
*area
;
93 if (args
->event
!= NB_EV_APPLY
)
96 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
97 type
= yang_dnode_get_enum(args
->dnode
, NULL
);
98 isis_area_is_type_set(area
, type
);
104 * XPath: /frr-isisd:isis/instance/area-address
106 int isis_instance_area_address_create(struct nb_cb_create_args
*args
)
108 struct isis_area
*area
;
109 struct area_addr addr
, *addrr
= NULL
, *addrp
= NULL
;
110 struct listnode
*node
;
112 const char *net_title
= yang_dnode_get_string(args
->dnode
, NULL
);
114 switch (args
->event
) {
116 addr
.addr_len
= dotformat2buff(buff
, net_title
);
117 memcpy(addr
.area_addr
, buff
, addr
.addr_len
);
118 if (addr
.area_addr
[addr
.addr_len
- 1] != 0) {
120 EC_LIB_NB_CB_CONFIG_VALIDATE
,
121 "nsel byte (last byte) in area address must be 0");
122 return NB_ERR_VALIDATION
;
124 if (isis
->sysid_set
) {
125 /* Check that the SystemID portions match */
126 if (memcmp(isis
->sysid
, GETSYSID((&addr
)),
129 EC_LIB_NB_CB_CONFIG_VALIDATE
,
130 "System ID must not change when defining additional area addresses");
131 return NB_ERR_VALIDATION
;
136 addrr
= XMALLOC(MTYPE_ISIS_AREA_ADDR
, sizeof(struct area_addr
));
137 addrr
->addr_len
= dotformat2buff(buff
, net_title
);
138 memcpy(addrr
->area_addr
, buff
, addrr
->addr_len
);
139 args
->resource
->ptr
= addrr
;
142 XFREE(MTYPE_ISIS_AREA_ADDR
, args
->resource
->ptr
);
145 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
146 addrr
= args
->resource
->ptr
;
148 if (isis
->sysid_set
== 0) {
150 * First area address - get the SystemID for this router
152 memcpy(isis
->sysid
, GETSYSID(addrr
), ISIS_SYS_ID_LEN
);
155 /* check that we don't already have this address */
156 for (ALL_LIST_ELEMENTS_RO(area
->area_addrs
, node
,
158 if ((addrp
->addr_len
+ ISIS_SYS_ID_LEN
160 != (addrr
->addr_len
))
162 if (!memcmp(addrp
->area_addr
, addrr
->area_addr
,
164 XFREE(MTYPE_ISIS_AREA_ADDR
, addrr
);
165 return NB_OK
; /* silent fail */
170 /*Forget the systemID part of the address */
171 addrr
->addr_len
-= (ISIS_SYS_ID_LEN
+ ISIS_NSEL_LEN
);
172 assert(area
->area_addrs
); /* to silence scan-build sillyness */
173 listnode_add(area
->area_addrs
, addrr
);
175 /* only now we can safely generate our LSPs for this area */
176 if (listcount(area
->area_addrs
) > 0) {
177 if (area
->is_type
& IS_LEVEL_1
)
178 lsp_generate(area
, IS_LEVEL_1
);
179 if (area
->is_type
& IS_LEVEL_2
)
180 lsp_generate(area
, IS_LEVEL_2
);
188 int isis_instance_area_address_destroy(struct nb_cb_destroy_args
*args
)
190 struct area_addr addr
, *addrp
= NULL
;
191 struct listnode
*node
;
193 struct isis_area
*area
;
194 const char *net_title
;
196 if (args
->event
!= NB_EV_APPLY
)
199 net_title
= yang_dnode_get_string(args
->dnode
, NULL
);
200 addr
.addr_len
= dotformat2buff(buff
, net_title
);
201 memcpy(addr
.area_addr
, buff
, (int)addr
.addr_len
);
202 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
203 for (ALL_LIST_ELEMENTS_RO(area
->area_addrs
, node
, addrp
)) {
204 if ((addrp
->addr_len
+ ISIS_SYS_ID_LEN
+ 1) == addr
.addr_len
205 && !memcmp(addrp
->area_addr
, addr
.area_addr
, addr
.addr_len
))
209 return NB_ERR_INCONSISTENCY
;
211 listnode_delete(area
->area_addrs
, addrp
);
212 XFREE(MTYPE_ISIS_AREA_ADDR
, addrp
);
214 * Last area address - reset the SystemID for this router
216 if (listcount(area
->area_addrs
) == 0) {
217 memset(isis
->sysid
, 0, ISIS_SYS_ID_LEN
);
219 if (isis
->debugs
& DEBUG_EVENTS
)
220 zlog_debug("Router has no SystemID");
227 * XPath: /frr-isisd:isis/instance/dynamic-hostname
229 int isis_instance_dynamic_hostname_modify(struct nb_cb_modify_args
*args
)
231 struct isis_area
*area
;
233 if (args
->event
!= NB_EV_APPLY
)
236 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
237 isis_area_dynhostname_set(area
, yang_dnode_get_bool(args
->dnode
, NULL
));
243 * XPath: /frr-isisd:isis/instance/attached
245 int isis_instance_attached_modify(struct nb_cb_modify_args
*args
)
247 struct isis_area
*area
;
250 if (args
->event
!= NB_EV_APPLY
)
253 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
254 attached
= yang_dnode_get_bool(args
->dnode
, NULL
);
255 isis_area_attached_bit_set(area
, attached
);
261 * XPath: /frr-isisd:isis/instance/overload
263 int isis_instance_overload_modify(struct nb_cb_modify_args
*args
)
265 struct isis_area
*area
;
268 if (args
->event
!= NB_EV_APPLY
)
271 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
272 overload
= yang_dnode_get_bool(args
->dnode
, NULL
);
273 isis_area_overload_bit_set(area
, overload
);
279 * XPath: /frr-isisd:isis/instance/metric-style
281 int isis_instance_metric_style_modify(struct nb_cb_modify_args
*args
)
283 struct isis_area
*area
;
284 bool old_metric
, new_metric
;
285 enum isis_metric_style metric_style
=
286 yang_dnode_get_enum(args
->dnode
, NULL
);
288 if (args
->event
!= NB_EV_APPLY
)
291 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
292 old_metric
= (metric_style
== ISIS_WIDE_METRIC
) ? false : true;
293 new_metric
= (metric_style
== ISIS_NARROW_METRIC
) ? false : true;
294 isis_area_metricstyle_set(area
, old_metric
, new_metric
);
300 * XPath: /frr-isisd:isis/instance/purge-originator
302 int isis_instance_purge_originator_modify(struct nb_cb_modify_args
*args
)
304 struct isis_area
*area
;
306 if (args
->event
!= NB_EV_APPLY
)
309 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
310 area
->purge_originator
= yang_dnode_get_bool(args
->dnode
, NULL
);
316 * XPath: /frr-isisd:isis/instance/lsp/mtu
318 int isis_instance_lsp_mtu_modify(struct nb_cb_modify_args
*args
)
320 struct listnode
*node
;
321 struct isis_circuit
*circuit
;
322 uint16_t lsp_mtu
= yang_dnode_get_uint16(args
->dnode
, NULL
);
323 struct isis_area
*area
;
325 switch (args
->event
) {
327 area
= nb_running_get_entry(args
->dnode
, NULL
, false);
330 for (ALL_LIST_ELEMENTS_RO(area
->circuit_list
, node
, circuit
)) {
331 if (circuit
->state
!= C_STATE_INIT
332 && circuit
->state
!= C_STATE_UP
)
334 if (lsp_mtu
> isis_circuit_pdu_size(circuit
)) {
336 EC_LIB_NB_CB_CONFIG_VALIDATE
,
337 "ISIS area contains circuit %s, which has a maximum PDU size of %zu",
338 circuit
->interface
->name
,
339 isis_circuit_pdu_size(circuit
));
340 return NB_ERR_VALIDATION
;
348 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
349 isis_area_lsp_mtu_set(area
, lsp_mtu
);
357 * XPath: /frr-isisd:isis/instance/lsp/timers/level-1/refresh-interval
359 int isis_instance_lsp_refresh_interval_level_1_modify(
360 struct nb_cb_modify_args
*args
)
362 struct isis_area
*area
;
365 if (args
->event
!= NB_EV_APPLY
)
368 refr_int
= yang_dnode_get_uint16(args
->dnode
, NULL
);
369 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
370 isis_area_lsp_refresh_set(area
, IS_LEVEL_1
, refr_int
);
376 * XPath: /frr-isisd:isis/instance/lsp/timers/level-2/refresh-interval
378 int isis_instance_lsp_refresh_interval_level_2_modify(
379 struct nb_cb_modify_args
*args
)
381 struct isis_area
*area
;
384 if (args
->event
!= NB_EV_APPLY
)
387 refr_int
= yang_dnode_get_uint16(args
->dnode
, NULL
);
388 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
389 isis_area_lsp_refresh_set(area
, IS_LEVEL_2
, refr_int
);
395 * XPath: /frr-isisd:isis/instance/lsp/timers/level-1/maximum-lifetime
397 int isis_instance_lsp_maximum_lifetime_level_1_modify(
398 struct nb_cb_modify_args
*args
)
400 struct isis_area
*area
;
403 if (args
->event
!= NB_EV_APPLY
)
406 max_lt
= yang_dnode_get_uint16(args
->dnode
, NULL
);
407 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
408 isis_area_max_lsp_lifetime_set(area
, IS_LEVEL_1
, max_lt
);
414 * XPath: /frr-isisd:isis/instance/lsp/timers/level-2/maximum-lifetime
416 int isis_instance_lsp_maximum_lifetime_level_2_modify(
417 struct nb_cb_modify_args
*args
)
419 struct isis_area
*area
;
422 if (args
->event
!= NB_EV_APPLY
)
425 max_lt
= yang_dnode_get_uint16(args
->dnode
, NULL
);
426 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
427 isis_area_max_lsp_lifetime_set(area
, IS_LEVEL_2
, max_lt
);
433 * XPath: /frr-isisd:isis/instance/lsp/timers/level-1/generation-interval
435 int isis_instance_lsp_generation_interval_level_1_modify(
436 struct nb_cb_modify_args
*args
)
438 struct isis_area
*area
;
441 if (args
->event
!= NB_EV_APPLY
)
444 gen_int
= yang_dnode_get_uint16(args
->dnode
, NULL
);
445 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
446 area
->lsp_gen_interval
[0] = gen_int
;
452 * XPath: /frr-isisd:isis/instance/lsp/timers/level-2/generation-interval
454 int isis_instance_lsp_generation_interval_level_2_modify(
455 struct nb_cb_modify_args
*args
)
457 struct isis_area
*area
;
460 if (args
->event
!= NB_EV_APPLY
)
463 gen_int
= yang_dnode_get_uint16(args
->dnode
, NULL
);
464 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
465 area
->lsp_gen_interval
[1] = gen_int
;
471 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay
473 void ietf_backoff_delay_apply_finish(struct nb_cb_apply_finish_args
*args
)
475 long init_delay
= yang_dnode_get_uint16(args
->dnode
, "./init-delay");
476 long short_delay
= yang_dnode_get_uint16(args
->dnode
, "./short-delay");
477 long long_delay
= yang_dnode_get_uint16(args
->dnode
, "./long-delay");
478 long holddown
= yang_dnode_get_uint16(args
->dnode
, "./hold-down");
480 yang_dnode_get_uint16(args
->dnode
, "./time-to-learn");
481 struct isis_area
*area
= nb_running_get_entry(args
->dnode
, NULL
, true);
482 size_t bufsiz
= strlen(area
->area_tag
) + sizeof("IS-IS Lx");
483 char *buf
= XCALLOC(MTYPE_TMP
, bufsiz
);
485 snprintf(buf
, bufsiz
, "IS-IS %s L1", area
->area_tag
);
486 spf_backoff_free(area
->spf_delay_ietf
[0]);
487 area
->spf_delay_ietf
[0] =
488 spf_backoff_new(master
, buf
, init_delay
, short_delay
,
489 long_delay
, holddown
, timetolearn
);
491 snprintf(buf
, bufsiz
, "IS-IS %s L2", area
->area_tag
);
492 spf_backoff_free(area
->spf_delay_ietf
[1]);
493 area
->spf_delay_ietf
[1] =
494 spf_backoff_new(master
, buf
, init_delay
, short_delay
,
495 long_delay
, holddown
, timetolearn
);
497 XFREE(MTYPE_TMP
, buf
);
500 int isis_instance_spf_ietf_backoff_delay_create(struct nb_cb_create_args
*args
)
502 /* All the work is done in the apply_finish */
506 int isis_instance_spf_ietf_backoff_delay_destroy(
507 struct nb_cb_destroy_args
*args
)
509 struct isis_area
*area
;
511 if (args
->event
!= NB_EV_APPLY
)
514 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
515 spf_backoff_free(area
->spf_delay_ietf
[0]);
516 spf_backoff_free(area
->spf_delay_ietf
[1]);
517 area
->spf_delay_ietf
[0] = NULL
;
518 area
->spf_delay_ietf
[1] = NULL
;
524 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay/init-delay
526 int isis_instance_spf_ietf_backoff_delay_init_delay_modify(
527 struct nb_cb_modify_args
*args
)
529 /* All the work is done in the apply_finish */
534 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay/short-delay
536 int isis_instance_spf_ietf_backoff_delay_short_delay_modify(
537 struct nb_cb_modify_args
*args
)
539 /* All the work is done in the apply_finish */
544 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay/long-delay
546 int isis_instance_spf_ietf_backoff_delay_long_delay_modify(
547 struct nb_cb_modify_args
*args
)
549 /* All the work is done in the apply_finish */
554 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay/hold-down
556 int isis_instance_spf_ietf_backoff_delay_hold_down_modify(
557 struct nb_cb_modify_args
*args
)
559 /* All the work is done in the apply_finish */
564 * XPath: /frr-isisd:isis/instance/spf/ietf-backoff-delay/time-to-learn
566 int isis_instance_spf_ietf_backoff_delay_time_to_learn_modify(
567 struct nb_cb_modify_args
*args
)
569 /* All the work is done in the apply_finish */
574 * XPath: /frr-isisd:isis/instance/spf/minimum-interval/level-1
576 int isis_instance_spf_minimum_interval_level_1_modify(
577 struct nb_cb_modify_args
*args
)
579 struct isis_area
*area
;
581 if (args
->event
!= NB_EV_APPLY
)
584 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
585 area
->min_spf_interval
[0] = yang_dnode_get_uint16(args
->dnode
, NULL
);
591 * XPath: /frr-isisd:isis/instance/spf/minimum-interval/level-2
593 int isis_instance_spf_minimum_interval_level_2_modify(
594 struct nb_cb_modify_args
*args
)
596 struct isis_area
*area
;
598 if (args
->event
!= NB_EV_APPLY
)
601 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
602 area
->min_spf_interval
[1] = yang_dnode_get_uint16(args
->dnode
, NULL
);
608 * XPath: /frr-isisd:isis/instance/area-password
610 void area_password_apply_finish(struct nb_cb_apply_finish_args
*args
)
612 const char *password
= yang_dnode_get_string(args
->dnode
, "./password");
613 struct isis_area
*area
= nb_running_get_entry(args
->dnode
, NULL
, true);
614 int pass_type
= yang_dnode_get_enum(args
->dnode
, "./password-type");
616 yang_dnode_get_enum(args
->dnode
, "./authenticate-snp");
619 case ISIS_PASSWD_TYPE_CLEARTXT
:
620 isis_area_passwd_cleartext_set(area
, IS_LEVEL_1
, password
,
623 case ISIS_PASSWD_TYPE_HMAC_MD5
:
624 isis_area_passwd_hmac_md5_set(area
, IS_LEVEL_1
, password
,
630 int isis_instance_area_password_create(struct nb_cb_create_args
*args
)
632 /* actual setting is done in apply_finish */
636 int isis_instance_area_password_destroy(struct nb_cb_destroy_args
*args
)
638 struct isis_area
*area
;
640 if (args
->event
!= NB_EV_APPLY
)
643 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
644 isis_area_passwd_unset(area
, IS_LEVEL_1
);
650 * XPath: /frr-isisd:isis/instance/area-password/password
652 int isis_instance_area_password_password_modify(struct nb_cb_modify_args
*args
)
654 /* actual setting is done in apply_finish */
659 * XPath: /frr-isisd:isis/instance/area-password/password-type
661 int isis_instance_area_password_password_type_modify(
662 struct nb_cb_modify_args
*args
)
664 /* actual setting is done in apply_finish */
669 * XPath: /frr-isisd:isis/instance/area-password/authenticate-snp
671 int isis_instance_area_password_authenticate_snp_modify(
672 struct nb_cb_modify_args
*args
)
674 /* actual setting is done in apply_finish */
679 * XPath: /frr-isisd:isis/instance/domain-password
681 void domain_password_apply_finish(struct nb_cb_apply_finish_args
*args
)
683 const char *password
= yang_dnode_get_string(args
->dnode
, "./password");
684 struct isis_area
*area
= nb_running_get_entry(args
->dnode
, NULL
, true);
685 int pass_type
= yang_dnode_get_enum(args
->dnode
, "./password-type");
687 yang_dnode_get_enum(args
->dnode
, "./authenticate-snp");
690 case ISIS_PASSWD_TYPE_CLEARTXT
:
691 isis_area_passwd_cleartext_set(area
, IS_LEVEL_2
, password
,
694 case ISIS_PASSWD_TYPE_HMAC_MD5
:
695 isis_area_passwd_hmac_md5_set(area
, IS_LEVEL_2
, password
,
701 int isis_instance_domain_password_create(struct nb_cb_create_args
*args
)
703 /* actual setting is done in apply_finish */
707 int isis_instance_domain_password_destroy(struct nb_cb_destroy_args
*args
)
709 struct isis_area
*area
;
711 if (args
->event
!= NB_EV_APPLY
)
714 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
715 isis_area_passwd_unset(area
, IS_LEVEL_2
);
721 * XPath: /frr-isisd:isis/instance/domain-password/password
723 int isis_instance_domain_password_password_modify(
724 struct nb_cb_modify_args
*args
)
726 /* actual setting is done in apply_finish */
731 * XPath: /frr-isisd:isis/instance/domain-password/password-type
733 int isis_instance_domain_password_password_type_modify(
734 struct nb_cb_modify_args
*args
)
736 /* actual setting is done in apply_finish */
741 * XPath: /frr-isisd:isis/instance/domain-password/authenticate-snp
743 int isis_instance_domain_password_authenticate_snp_modify(
744 struct nb_cb_modify_args
*args
)
746 /* actual setting is done in apply_finish */
751 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv4
753 void default_info_origin_apply_finish(const struct lyd_node
*dnode
, int family
)
755 int originate_type
= DEFAULT_ORIGINATE
;
756 unsigned long metric
= 0;
757 const char *routemap
= NULL
;
758 struct isis_area
*area
= nb_running_get_entry(dnode
, NULL
, true);
759 int level
= yang_dnode_get_enum(dnode
, "./level");
761 if (yang_dnode_get_bool(dnode
, "./always")) {
762 originate_type
= DEFAULT_ORIGINATE_ALWAYS
;
763 } else if (family
== AF_INET6
) {
765 "%s: Zebra doesn't implement default-originate for IPv6 yet, so use with care or use default-originate always.",
769 if (yang_dnode_exists(dnode
, "./metric"))
770 metric
= yang_dnode_get_uint32(dnode
, "./metric");
771 if (yang_dnode_exists(dnode
, "./route-map"))
772 routemap
= yang_dnode_get_string(dnode
, "./route-map");
774 isis_redist_set(area
, level
, family
, DEFAULT_ROUTE
, metric
, routemap
,
778 void default_info_origin_ipv4_apply_finish(struct nb_cb_apply_finish_args
*args
)
780 default_info_origin_apply_finish(args
->dnode
, AF_INET
);
783 void default_info_origin_ipv6_apply_finish(struct nb_cb_apply_finish_args
*args
)
785 default_info_origin_apply_finish(args
->dnode
, AF_INET6
);
788 int isis_instance_default_information_originate_ipv4_create(
789 struct nb_cb_create_args
*args
)
791 /* It's all done by default_info_origin_apply_finish */
795 int isis_instance_default_information_originate_ipv4_destroy(
796 struct nb_cb_destroy_args
*args
)
798 struct isis_area
*area
;
801 if (args
->event
!= NB_EV_APPLY
)
804 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
805 level
= yang_dnode_get_enum(args
->dnode
, "./level");
806 isis_redist_unset(area
, level
, AF_INET
, DEFAULT_ROUTE
);
812 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv4/always
814 int isis_instance_default_information_originate_ipv4_always_modify(
815 struct nb_cb_modify_args
*args
)
817 /* It's all done by default_info_origin_apply_finish */
822 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv4/route-map
824 int isis_instance_default_information_originate_ipv4_route_map_modify(
825 struct nb_cb_modify_args
*args
)
827 /* It's all done by default_info_origin_apply_finish */
831 int isis_instance_default_information_originate_ipv4_route_map_destroy(
832 struct nb_cb_destroy_args
*args
)
834 /* It's all done by default_info_origin_apply_finish */
839 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv4/metric
841 int isis_instance_default_information_originate_ipv4_metric_modify(
842 struct nb_cb_modify_args
*args
)
844 /* It's all done by default_info_origin_apply_finish */
849 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv6
851 int isis_instance_default_information_originate_ipv6_create(
852 struct nb_cb_create_args
*args
)
854 /* It's all done by default_info_origin_apply_finish */
858 int isis_instance_default_information_originate_ipv6_destroy(
859 struct nb_cb_destroy_args
*args
)
861 struct isis_area
*area
;
864 if (args
->event
!= NB_EV_APPLY
)
867 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
868 level
= yang_dnode_get_enum(args
->dnode
, "./level");
869 isis_redist_unset(area
, level
, AF_INET6
, DEFAULT_ROUTE
);
875 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv6/always
877 int isis_instance_default_information_originate_ipv6_always_modify(
878 struct nb_cb_modify_args
*args
)
880 /* It's all done by default_info_origin_apply_finish */
885 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv6/route-map
887 int isis_instance_default_information_originate_ipv6_route_map_modify(
888 struct nb_cb_modify_args
*args
)
890 /* It's all done by default_info_origin_apply_finish */
894 int isis_instance_default_information_originate_ipv6_route_map_destroy(
895 struct nb_cb_destroy_args
*args
)
897 /* It's all done by default_info_origin_apply_finish */
902 * XPath: /frr-isisd:isis/instance/default-information-originate/ipv6/metric
904 int isis_instance_default_information_originate_ipv6_metric_modify(
905 struct nb_cb_modify_args
*args
)
907 /* It's all done by default_info_origin_apply_finish */
912 * XPath: /frr-isisd:isis/instance/redistribute/ipv4
914 void redistribute_apply_finish(const struct lyd_node
*dnode
, int family
)
916 assert(family
== AF_INET
|| family
== AF_INET6
);
918 unsigned long metric
= 0;
919 const char *routemap
= NULL
;
920 struct isis_area
*area
;
922 type
= yang_dnode_get_enum(dnode
, "./protocol");
923 level
= yang_dnode_get_enum(dnode
, "./level");
924 area
= nb_running_get_entry(dnode
, NULL
, true);
926 if (yang_dnode_exists(dnode
, "./metric"))
927 metric
= yang_dnode_get_uint32(dnode
, "./metric");
928 if (yang_dnode_exists(dnode
, "./route-map"))
929 routemap
= yang_dnode_get_string(dnode
, "./route-map");
931 isis_redist_set(area
, level
, family
, type
, metric
, routemap
, 0);
934 void redistribute_ipv4_apply_finish(struct nb_cb_apply_finish_args
*args
)
936 redistribute_apply_finish(args
->dnode
, AF_INET
);
939 void redistribute_ipv6_apply_finish(struct nb_cb_apply_finish_args
*args
)
941 redistribute_apply_finish(args
->dnode
, AF_INET6
);
944 int isis_instance_redistribute_ipv4_create(struct nb_cb_create_args
*args
)
946 /* It's all done by redistribute_apply_finish */
950 int isis_instance_redistribute_ipv4_destroy(struct nb_cb_destroy_args
*args
)
952 struct isis_area
*area
;
955 if (args
->event
!= NB_EV_APPLY
)
958 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
959 level
= yang_dnode_get_enum(args
->dnode
, "./level");
960 type
= yang_dnode_get_enum(args
->dnode
, "./protocol");
961 isis_redist_unset(area
, level
, AF_INET
, type
);
967 * XPath: /frr-isisd:isis/instance/redistribute/ipv4/route-map
969 int isis_instance_redistribute_ipv4_route_map_modify(
970 struct nb_cb_modify_args
*args
)
972 /* It's all done by redistribute_apply_finish */
976 int isis_instance_redistribute_ipv4_route_map_destroy(
977 struct nb_cb_destroy_args
*args
)
979 /* It's all done by redistribute_apply_finish */
984 * XPath: /frr-isisd:isis/instance/redistribute/ipv4/metric
986 int isis_instance_redistribute_ipv4_metric_modify(
987 struct nb_cb_modify_args
*args
)
989 /* It's all done by redistribute_apply_finish */
994 * XPath: /frr-isisd:isis/instance/redistribute/ipv6
996 int isis_instance_redistribute_ipv6_create(struct nb_cb_create_args
*args
)
998 /* It's all done by redistribute_apply_finish */
1002 int isis_instance_redistribute_ipv6_destroy(struct nb_cb_destroy_args
*args
)
1004 struct isis_area
*area
;
1007 if (args
->event
!= NB_EV_APPLY
)
1010 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1011 level
= yang_dnode_get_enum(args
->dnode
, "./level");
1012 type
= yang_dnode_get_enum(args
->dnode
, "./protocol");
1013 isis_redist_unset(area
, level
, AF_INET6
, type
);
1019 * XPath: /frr-isisd:isis/instance/redistribute/ipv6/route-map
1021 int isis_instance_redistribute_ipv6_route_map_modify(
1022 struct nb_cb_modify_args
*args
)
1024 /* It's all done by redistribute_apply_finish */
1028 int isis_instance_redistribute_ipv6_route_map_destroy(
1029 struct nb_cb_destroy_args
*args
)
1031 /* It's all done by redistribute_apply_finish */
1036 * XPath: /frr-isisd:isis/instance/redistribute/ipv6/metric
1038 int isis_instance_redistribute_ipv6_metric_modify(
1039 struct nb_cb_modify_args
*args
)
1041 /* It's all done by redistribute_apply_finish */
1046 * XPath: /frr-isisd:isis/instance/multi-topology/ipv4-multicast
1048 static int isis_multi_topology_common(enum nb_event event
,
1049 const struct lyd_node
*dnode
,
1050 const char *topology
, bool create
)
1052 struct isis_area
*area
;
1053 struct isis_area_mt_setting
*setting
;
1054 uint16_t mtid
= isis_str2mtid(topology
);
1057 case NB_EV_VALIDATE
:
1058 if (mtid
== (uint16_t)-1) {
1059 flog_warn(EC_LIB_NB_CB_CONFIG_VALIDATE
,
1060 "Unknown topology %s", topology
);
1061 return NB_ERR_VALIDATION
;
1068 area
= nb_running_get_entry(dnode
, NULL
, true);
1069 setting
= area_get_mt_setting(area
, mtid
);
1070 setting
->enabled
= create
;
1071 lsp_regenerate_schedule(area
, IS_LEVEL_1
| IS_LEVEL_2
, 0);
1078 static int isis_multi_topology_overload_common(enum nb_event event
,
1079 const struct lyd_node
*dnode
,
1080 const char *topology
)
1082 struct isis_area
*area
;
1083 struct isis_area_mt_setting
*setting
;
1084 uint16_t mtid
= isis_str2mtid(topology
);
1086 /* validation is done in isis_multi_topology_common */
1087 if (event
!= NB_EV_APPLY
)
1090 area
= nb_running_get_entry(dnode
, NULL
, true);
1091 setting
= area_get_mt_setting(area
, mtid
);
1092 setting
->overload
= yang_dnode_get_bool(dnode
, NULL
);
1093 if (setting
->enabled
)
1094 lsp_regenerate_schedule(area
, IS_LEVEL_1
| IS_LEVEL_2
, 0);
1099 int isis_instance_multi_topology_ipv4_multicast_create(
1100 struct nb_cb_create_args
*args
)
1102 return isis_multi_topology_common(args
->event
, args
->dnode
,
1103 "ipv4-multicast", true);
1106 int isis_instance_multi_topology_ipv4_multicast_destroy(
1107 struct nb_cb_destroy_args
*args
)
1109 return isis_multi_topology_common(args
->event
, args
->dnode
,
1110 "ipv4-multicast", false);
1114 * XPath: /frr-isisd:isis/instance/multi-topology/ipv4-multicast/overload
1116 int isis_instance_multi_topology_ipv4_multicast_overload_modify(
1117 struct nb_cb_modify_args
*args
)
1119 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1124 * XPath: /frr-isisd:isis/instance/multi-topology/ipv4-management
1126 int isis_instance_multi_topology_ipv4_management_create(
1127 struct nb_cb_create_args
*args
)
1129 return isis_multi_topology_common(args
->event
, args
->dnode
, "ipv4-mgmt",
1133 int isis_instance_multi_topology_ipv4_management_destroy(
1134 struct nb_cb_destroy_args
*args
)
1136 return isis_multi_topology_common(args
->event
, args
->dnode
, "ipv4-mgmt",
1141 * XPath: /frr-isisd:isis/instance/multi-topology/ipv4-management/overload
1143 int isis_instance_multi_topology_ipv4_management_overload_modify(
1144 struct nb_cb_modify_args
*args
)
1146 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1151 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-unicast
1153 int isis_instance_multi_topology_ipv6_unicast_create(
1154 struct nb_cb_create_args
*args
)
1156 return isis_multi_topology_common(args
->event
, args
->dnode
,
1157 "ipv6-unicast", true);
1160 int isis_instance_multi_topology_ipv6_unicast_destroy(
1161 struct nb_cb_destroy_args
*args
)
1163 return isis_multi_topology_common(args
->event
, args
->dnode
,
1164 "ipv6-unicast", false);
1168 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-unicast/overload
1170 int isis_instance_multi_topology_ipv6_unicast_overload_modify(
1171 struct nb_cb_modify_args
*args
)
1173 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1178 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-multicast
1180 int isis_instance_multi_topology_ipv6_multicast_create(
1181 struct nb_cb_create_args
*args
)
1183 return isis_multi_topology_common(args
->event
, args
->dnode
,
1184 "ipv6-multicast", true);
1187 int isis_instance_multi_topology_ipv6_multicast_destroy(
1188 struct nb_cb_destroy_args
*args
)
1190 return isis_multi_topology_common(args
->event
, args
->dnode
,
1191 "ipv6-multicast", false);
1195 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-multicast/overload
1197 int isis_instance_multi_topology_ipv6_multicast_overload_modify(
1198 struct nb_cb_modify_args
*args
)
1200 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1205 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-management
1207 int isis_instance_multi_topology_ipv6_management_create(
1208 struct nb_cb_create_args
*args
)
1210 return isis_multi_topology_common(args
->event
, args
->dnode
, "ipv6-mgmt",
1214 int isis_instance_multi_topology_ipv6_management_destroy(
1215 struct nb_cb_destroy_args
*args
)
1217 return isis_multi_topology_common(args
->event
, args
->dnode
, "ipv6-mgmt",
1222 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-management/overload
1224 int isis_instance_multi_topology_ipv6_management_overload_modify(
1225 struct nb_cb_modify_args
*args
)
1227 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1232 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-dstsrc
1234 int isis_instance_multi_topology_ipv6_dstsrc_create(
1235 struct nb_cb_create_args
*args
)
1237 return isis_multi_topology_common(args
->event
, args
->dnode
,
1238 "ipv6-dstsrc", true);
1241 int isis_instance_multi_topology_ipv6_dstsrc_destroy(
1242 struct nb_cb_destroy_args
*args
)
1244 return isis_multi_topology_common(args
->event
, args
->dnode
,
1245 "ipv6-dstsrc", false);
1249 * XPath: /frr-isisd:isis/instance/multi-topology/ipv6-dstsrc/overload
1251 int isis_instance_multi_topology_ipv6_dstsrc_overload_modify(
1252 struct nb_cb_modify_args
*args
)
1254 return isis_multi_topology_overload_common(args
->event
, args
->dnode
,
1259 * XPath: /frr-isisd:isis/instance/log-adjacency-changes
1261 int isis_instance_log_adjacency_changes_modify(struct nb_cb_modify_args
*args
)
1263 struct isis_area
*area
;
1264 bool log
= yang_dnode_get_bool(args
->dnode
, NULL
);
1266 if (args
->event
!= NB_EV_APPLY
)
1269 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1270 area
->log_adj_changes
= log
? 1 : 0;
1276 * XPath: /frr-isisd:isis/instance/mpls-te
1278 int isis_instance_mpls_te_create(struct nb_cb_create_args
*args
)
1280 struct listnode
*node
;
1281 struct isis_area
*area
;
1282 struct isis_circuit
*circuit
;
1284 if (args
->event
!= NB_EV_APPLY
)
1287 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1288 if (area
->mta
== NULL
) {
1290 struct mpls_te_area
*new;
1292 zlog_debug("ISIS-TE(%s): Initialize MPLS Traffic Engineering",
1295 new = XCALLOC(MTYPE_ISIS_MPLS_TE
, sizeof(struct mpls_te_area
));
1297 /* Initialize MPLS_TE structure */
1298 new->status
= enable
;
1300 new->inter_as
= off
;
1301 new->interas_areaid
.s_addr
= 0;
1302 new->router_id
.s_addr
= 0;
1306 area
->mta
->status
= enable
;
1309 /* Update Extended TLVs according to Interface link parameters */
1310 for (ALL_LIST_ELEMENTS_RO(area
->circuit_list
, node
, circuit
))
1311 isis_link_params_update(circuit
, circuit
->interface
);
1313 /* Reoriginate STD_TE & GMPLS circuits */
1314 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1319 int isis_instance_mpls_te_destroy(struct nb_cb_destroy_args
*args
)
1321 struct listnode
*node
;
1322 struct isis_area
*area
;
1323 struct isis_circuit
*circuit
;
1325 if (args
->event
!= NB_EV_APPLY
)
1328 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1329 if (IS_MPLS_TE(area
->mta
))
1330 area
->mta
->status
= disable
;
1334 /* Flush LSP if circuit engage */
1335 for (ALL_LIST_ELEMENTS_RO(area
->circuit_list
, node
, circuit
)) {
1336 if (!IS_EXT_TE(circuit
->ext
))
1339 /* disable MPLS_TE Circuit keeping SR one's */
1340 if (IS_SUBTLV(circuit
->ext
, EXT_ADJ_SID
))
1341 circuit
->ext
->status
= EXT_ADJ_SID
;
1342 else if (IS_SUBTLV(circuit
->ext
, EXT_LAN_ADJ_SID
))
1343 circuit
->ext
->status
= EXT_LAN_ADJ_SID
;
1345 circuit
->ext
->status
= 0;
1348 /* Reoriginate STD_TE & GMPLS circuits */
1349 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1351 zlog_debug("ISIS-TE(%s): Disabled MPLS Traffic Engineering",
1358 * XPath: /frr-isisd:isis/instance/mpls-te/router-address
1360 int isis_instance_mpls_te_router_address_modify(struct nb_cb_modify_args
*args
)
1362 struct in_addr value
;
1363 struct isis_area
*area
;
1365 if (args
->event
!= NB_EV_APPLY
)
1368 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1369 /* only proceed if MPLS-TE is enabled */
1370 if (!IS_MPLS_TE(area
->mta
))
1373 /* Update Area Router ID */
1374 yang_dnode_get_ipv4(&value
, args
->dnode
, NULL
);
1375 area
->mta
->router_id
.s_addr
= value
.s_addr
;
1377 /* And re-schedule LSP update */
1378 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1383 int isis_instance_mpls_te_router_address_destroy(
1384 struct nb_cb_destroy_args
*args
)
1386 struct isis_area
*area
;
1388 if (args
->event
!= NB_EV_APPLY
)
1391 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1392 /* only proceed if MPLS-TE is enabled */
1393 if (!IS_MPLS_TE(area
->mta
))
1396 /* Reset Area Router ID */
1397 area
->mta
->router_id
.s_addr
= INADDR_ANY
;
1399 /* And re-schedule LSP update */
1400 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1406 * XPath: /frr-isisd:isis/instance/segment-routing/enabled
1408 int isis_instance_segment_routing_enabled_modify(
1409 struct nb_cb_modify_args
*args
)
1411 struct isis_area
*area
;
1413 if (args
->event
!= NB_EV_APPLY
)
1416 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1417 area
->srdb
.config
.enabled
= yang_dnode_get_bool(args
->dnode
, NULL
);
1419 if (area
->srdb
.config
.enabled
) {
1420 if (IS_DEBUG_ISIS(DEBUG_EVENTS
))
1421 zlog_debug("SR: Segment Routing: OFF -> ON");
1423 if (isis_sr_start(area
) == 0)
1424 area
->srdb
.enabled
= true;
1426 if (IS_DEBUG_ISIS(DEBUG_EVENTS
))
1427 zlog_debug("SR: Segment Routing: ON -> OFF");
1430 area
->srdb
.enabled
= false;
1437 * XPath: /frr-isisd:isis/instance/segment-routing/srgb
1439 void isis_instance_segment_routing_srgb_apply_finish(
1440 struct nb_cb_apply_finish_args
*args
)
1442 struct isis_area
*area
;
1443 uint32_t lower_bound
, upper_bound
;
1446 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1447 lower_bound
= yang_dnode_get_uint32(args
->dnode
, "./lower-bound");
1448 upper_bound
= yang_dnode_get_uint32(args
->dnode
, "./upper-bound");
1450 ret
= isis_sr_cfg_srgb_update(area
, lower_bound
, upper_bound
);
1451 if (area
->srdb
.config
.enabled
) {
1453 area
->srdb
.enabled
= true;
1456 area
->srdb
.enabled
= false;
1462 * XPath: /frr-isisd:isis/instance/segment-routing/srgb/lower-bound
1464 int isis_instance_segment_routing_srgb_lower_bound_modify(
1465 struct nb_cb_modify_args
*args
)
1467 uint32_t lower_bound
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1469 switch (args
->event
) {
1470 case NB_EV_VALIDATE
:
1471 if (!IS_MPLS_UNRESERVED_LABEL(lower_bound
)) {
1472 zlog_warn("Invalid SRGB lower bound: %" PRIu32
,
1474 return NB_ERR_VALIDATION
;
1487 * XPath: /frr-isisd:isis/instance/segment-routing/srgb/upper-bound
1489 int isis_instance_segment_routing_srgb_upper_bound_modify(
1490 struct nb_cb_modify_args
*args
)
1492 uint32_t upper_bound
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1494 switch (args
->event
) {
1495 case NB_EV_VALIDATE
:
1496 if (!IS_MPLS_UNRESERVED_LABEL(upper_bound
)) {
1497 zlog_warn("Invalid SRGB upper bound: %" PRIu32
,
1499 return NB_ERR_VALIDATION
;
1512 * XPath: /frr-isisd:isis/instance/segment-routing/msd/node-msd
1514 int isis_instance_segment_routing_msd_node_msd_modify(
1515 struct nb_cb_modify_args
*args
)
1517 struct isis_area
*area
;
1519 if (args
->event
!= NB_EV_APPLY
)
1522 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1523 area
->srdb
.config
.msd
= yang_dnode_get_uint8(args
->dnode
, NULL
);
1525 /* Update and regenerate LSP */
1526 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1531 int isis_instance_segment_routing_msd_node_msd_destroy(
1532 struct nb_cb_destroy_args
*args
)
1534 struct isis_area
*area
;
1536 if (args
->event
!= NB_EV_APPLY
)
1539 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1540 area
->srdb
.config
.msd
= 0;
1542 /* Update and regenerate LSP */
1543 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1549 * XPath: /frr-isisd:isis/instance/segment-routing/prefix-sid-map/prefix-sid
1551 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_create(
1552 struct nb_cb_create_args
*args
)
1554 struct isis_area
*area
;
1555 struct prefix prefix
;
1556 struct sr_prefix_cfg
*pcfg
;
1558 if (args
->event
!= NB_EV_APPLY
)
1561 area
= nb_running_get_entry(args
->dnode
, NULL
, true);
1562 yang_dnode_get_prefix(&prefix
, args
->dnode
, "./prefix");
1564 pcfg
= isis_sr_cfg_prefix_add(area
, &prefix
);
1565 nb_running_set_entry(args
->dnode
, pcfg
);
1570 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_destroy(
1571 struct nb_cb_destroy_args
*args
)
1573 struct sr_prefix_cfg
*pcfg
;
1574 struct isis_area
*area
;
1576 if (args
->event
!= NB_EV_APPLY
)
1579 pcfg
= nb_running_unset_entry(args
->dnode
);
1581 isis_sr_cfg_prefix_del(pcfg
);
1582 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1587 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_pre_validate(
1588 struct nb_cb_pre_validate_args
*args
)
1590 uint32_t srgb_lbound
;
1591 uint32_t srgb_ubound
;
1592 uint32_t srgb_range
;
1594 enum sr_sid_value_type sid_type
;
1596 srgb_lbound
= yang_dnode_get_uint32(args
->dnode
,
1597 "../../srgb/lower-bound");
1598 srgb_ubound
= yang_dnode_get_uint32(args
->dnode
,
1599 "../../srgb/upper-bound");
1600 sid
= yang_dnode_get_uint32(args
->dnode
, "./sid-value");
1601 sid_type
= yang_dnode_get_enum(args
->dnode
, "./sid-value-type");
1603 srgb_range
= srgb_ubound
- srgb_lbound
+ 1;
1605 case SR_SID_VALUE_TYPE_INDEX
:
1606 if (sid
>= srgb_range
) {
1607 zlog_warn("SID index %u falls outside local SRGB range",
1609 return NB_ERR_VALIDATION
;
1612 case SR_SID_VALUE_TYPE_ABSOLUTE
:
1613 if (!IS_MPLS_UNRESERVED_LABEL(sid
)) {
1614 zlog_warn("Invalid absolute SID %u", sid
);
1615 return NB_ERR_VALIDATION
;
1623 void isis_instance_segment_routing_prefix_sid_map_prefix_sid_apply_finish(
1624 struct nb_cb_apply_finish_args
*args
)
1626 struct sr_prefix_cfg
*pcfg
;
1627 struct isis_area
*area
;
1629 pcfg
= nb_running_get_entry(args
->dnode
, NULL
, true);
1631 lsp_regenerate_schedule(area
, area
->is_type
, 0);
1636 * /frr-isisd:isis/instance/segment-routing/prefix-sid-map/prefix-sid/sid-value-type
1638 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_sid_value_type_modify(
1639 struct nb_cb_modify_args
*args
)
1641 struct sr_prefix_cfg
*pcfg
;
1643 if (args
->event
!= NB_EV_APPLY
)
1646 pcfg
= nb_running_get_entry(args
->dnode
, NULL
, true);
1647 pcfg
->sid_type
= yang_dnode_get_enum(args
->dnode
, NULL
);
1654 * /frr-isisd:isis/instance/segment-routing/prefix-sid-map/prefix-sid/sid-value
1656 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_sid_value_modify(
1657 struct nb_cb_modify_args
*args
)
1659 struct sr_prefix_cfg
*pcfg
;
1661 if (args
->event
!= NB_EV_APPLY
)
1664 pcfg
= nb_running_get_entry(args
->dnode
, NULL
, true);
1665 pcfg
->sid
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1672 * /frr-isisd:isis/instance/segment-routing/prefix-sid-map/prefix-sid/last-hop-behavior
1674 int isis_instance_segment_routing_prefix_sid_map_prefix_sid_last_hop_behavior_modify(
1675 struct nb_cb_modify_args
*args
)
1677 struct sr_prefix_cfg
*pcfg
;
1679 if (args
->event
!= NB_EV_APPLY
)
1682 pcfg
= nb_running_get_entry(args
->dnode
, NULL
, true);
1683 pcfg
->last_hop_behavior
= yang_dnode_get_enum(args
->dnode
, NULL
);
1689 * XPath: /frr-interface:lib/interface/frr-isisd:isis
1691 int lib_interface_isis_create(struct nb_cb_create_args
*args
)
1693 struct isis_area
*area
;
1694 struct interface
*ifp
;
1695 struct isis_circuit
*circuit
;
1696 const char *area_tag
= yang_dnode_get_string(args
->dnode
, "./area-tag");
1697 uint32_t min_mtu
, actual_mtu
;
1699 switch (args
->event
) {
1703 case NB_EV_VALIDATE
:
1704 /* check if interface mtu is sufficient. If the area has not
1705 * been created yet, assume default MTU for the area
1707 ifp
= nb_running_get_entry(args
->dnode
, NULL
, false);
1708 /* zebra might not know yet about the MTU - nothing we can do */
1709 if (!ifp
|| ifp
->mtu
== 0)
1712 if_is_broadcast(ifp
) ? ifp
->mtu
- LLC_LEN
: ifp
->mtu
;
1713 area
= isis_area_lookup(area_tag
);
1715 min_mtu
= area
->lsp_mtu
;
1718 min_mtu
= yang_get_default_uint16(
1719 "/frr-isisd:isis/instance/lsp/mtu");
1721 min_mtu
= DEFAULT_LSP_MTU
;
1722 #endif /* ifndef FABRICD */
1723 if (actual_mtu
< min_mtu
) {
1724 flog_warn(EC_LIB_NB_CB_CONFIG_VALIDATE
,
1725 "Interface %s has MTU %" PRIu32
1726 ", minimum MTU for the area is %" PRIu32
"",
1727 ifp
->name
, actual_mtu
, min_mtu
);
1728 return NB_ERR_VALIDATION
;
1732 area
= isis_area_lookup(area_tag
);
1733 /* The area should have already be created. We are
1734 * setting the priority of the global isis area creation
1735 * slightly lower, so it should be executed first, but I
1736 * cannot rely on that so here I have to check.
1740 EC_LIB_NB_CB_CONFIG_APPLY
,
1741 "%s: attempt to create circuit for area %s before the area has been created",
1742 __func__
, area_tag
);
1746 ifp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1747 circuit
= isis_circuit_create(area
, ifp
);
1749 && (circuit
->state
== C_STATE_CONF
1750 || circuit
->state
== C_STATE_UP
));
1751 nb_running_set_entry(args
->dnode
, circuit
);
1758 int lib_interface_isis_destroy(struct nb_cb_destroy_args
*args
)
1760 struct isis_circuit
*circuit
;
1762 if (args
->event
!= NB_EV_APPLY
)
1765 circuit
= nb_running_unset_entry(args
->dnode
);
1767 return NB_ERR_INCONSISTENCY
;
1769 /* disable both AFs for this circuit. this will also update the
1770 * CSM state by sending an ISIS_DISABLED signal. If there is no
1771 * area associated to the circuit there is nothing to do
1774 isis_circuit_af_set(circuit
, false, false);
1779 * XPath: /frr-interface:lib/interface/frr-isisd:isis/area-tag
1781 int lib_interface_isis_area_tag_modify(struct nb_cb_modify_args
*args
)
1783 struct isis_circuit
*circuit
;
1784 struct interface
*ifp
;
1786 const char *area_tag
, *ifname
, *vrfname
;
1788 if (args
->event
== NB_EV_VALIDATE
) {
1789 /* libyang doesn't like relative paths across module boundaries
1791 ifname
= yang_dnode_get_string(args
->dnode
->parent
->parent
,
1793 vrfname
= yang_dnode_get_string(args
->dnode
->parent
->parent
,
1795 vrf
= vrf_lookup_by_name(vrfname
);
1797 ifp
= if_lookup_by_name(ifname
, vrf
->vrf_id
);
1800 circuit
= circuit_lookup_by_ifp(ifp
, isis
->init_circ_list
);
1801 area_tag
= yang_dnode_get_string(args
->dnode
, NULL
);
1802 if (circuit
&& circuit
->area
&& circuit
->area
->area_tag
1803 && strcmp(circuit
->area
->area_tag
, area_tag
)) {
1804 flog_warn(EC_LIB_NB_CB_CONFIG_VALIDATE
,
1805 "ISIS circuit is already defined on %s",
1806 circuit
->area
->area_tag
);
1807 return NB_ERR_VALIDATION
;
1815 * XPath: /frr-interface:lib/interface/frr-isisd:isis/circuit-type
1817 int lib_interface_isis_circuit_type_modify(struct nb_cb_modify_args
*args
)
1819 int circ_type
= yang_dnode_get_enum(args
->dnode
, NULL
);
1820 struct isis_circuit
*circuit
;
1821 struct interface
*ifp
;
1823 const char *ifname
, *vrfname
;
1825 switch (args
->event
) {
1826 case NB_EV_VALIDATE
:
1827 /* libyang doesn't like relative paths across module boundaries
1829 ifname
= yang_dnode_get_string(args
->dnode
->parent
->parent
,
1831 vrfname
= yang_dnode_get_string(args
->dnode
->parent
->parent
,
1833 vrf
= vrf_lookup_by_name(vrfname
);
1835 ifp
= if_lookup_by_name(ifname
, vrf
->vrf_id
);
1838 circuit
= circuit_lookup_by_ifp(ifp
, isis
->init_circ_list
);
1839 if (circuit
&& circuit
->state
== C_STATE_UP
1840 && circuit
->area
->is_type
!= IS_LEVEL_1_AND_2
1841 && circuit
->area
->is_type
!= circ_type
) {
1842 flog_warn(EC_LIB_NB_CB_CONFIG_VALIDATE
,
1843 "Invalid circuit level for area %s",
1844 circuit
->area
->area_tag
);
1845 return NB_ERR_VALIDATION
;
1852 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1853 isis_circuit_is_type_set(circuit
, circ_type
);
1861 * XPath: /frr-interface:lib/interface/frr-isisd:isis/ipv4-routing
1863 int lib_interface_isis_ipv4_routing_modify(struct nb_cb_modify_args
*args
)
1866 struct isis_circuit
*circuit
;
1868 if (args
->event
!= NB_EV_APPLY
)
1871 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1872 ipv4
= yang_dnode_get_bool(args
->dnode
, NULL
);
1873 ipv6
= yang_dnode_get_bool(args
->dnode
, "../ipv6-routing");
1874 isis_circuit_af_set(circuit
, ipv4
, ipv6
);
1880 * XPath: /frr-interface:lib/interface/frr-isisd:isis/ipv6-routing
1882 int lib_interface_isis_ipv6_routing_modify(struct nb_cb_modify_args
*args
)
1885 struct isis_circuit
*circuit
;
1887 if (args
->event
!= NB_EV_APPLY
)
1890 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1891 ipv4
= yang_dnode_exists(args
->dnode
, "../ipv4-routing");
1892 ipv6
= yang_dnode_get_bool(args
->dnode
, NULL
);
1893 isis_circuit_af_set(circuit
, ipv4
, ipv6
);
1899 * XPath: /frr-interface:lib/interface/frr-isisd:isis/bfd-monitoring
1901 int lib_interface_isis_bfd_monitoring_modify(struct nb_cb_modify_args
*args
)
1903 struct isis_circuit
*circuit
;
1904 bool bfd_monitoring
;
1906 if (args
->event
!= NB_EV_APPLY
)
1909 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1910 bfd_monitoring
= yang_dnode_get_bool(args
->dnode
, NULL
);
1912 if (bfd_monitoring
) {
1913 isis_bfd_circuit_param_set(circuit
, BFD_DEF_MIN_RX
,
1914 BFD_DEF_MIN_TX
, BFD_DEF_DETECT_MULT
,
1917 isis_bfd_circuit_cmd(circuit
, ZEBRA_BFD_DEST_DEREGISTER
);
1918 bfd_info_free(&circuit
->bfd_info
);
1925 * XPath: /frr-interface:lib/interface/frr-isisd:isis/csnp-interval/level-1
1927 int lib_interface_isis_csnp_interval_level_1_modify(
1928 struct nb_cb_modify_args
*args
)
1930 struct isis_circuit
*circuit
;
1932 if (args
->event
!= NB_EV_APPLY
)
1935 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1936 circuit
->csnp_interval
[0] = yang_dnode_get_uint16(args
->dnode
, NULL
);
1942 * XPath: /frr-interface:lib/interface/frr-isisd:isis/csnp-interval/level-2
1944 int lib_interface_isis_csnp_interval_level_2_modify(
1945 struct nb_cb_modify_args
*args
)
1947 struct isis_circuit
*circuit
;
1949 if (args
->event
!= NB_EV_APPLY
)
1952 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1953 circuit
->csnp_interval
[1] = yang_dnode_get_uint16(args
->dnode
, NULL
);
1959 * XPath: /frr-interface:lib/interface/frr-isisd:isis/psnp-interval/level-1
1961 int lib_interface_isis_psnp_interval_level_1_modify(
1962 struct nb_cb_modify_args
*args
)
1964 struct isis_circuit
*circuit
;
1966 if (args
->event
!= NB_EV_APPLY
)
1969 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1970 circuit
->psnp_interval
[0] = yang_dnode_get_uint16(args
->dnode
, NULL
);
1976 * XPath: /frr-interface:lib/interface/frr-isisd:isis/psnp-interval/level-2
1978 int lib_interface_isis_psnp_interval_level_2_modify(
1979 struct nb_cb_modify_args
*args
)
1981 struct isis_circuit
*circuit
;
1983 if (args
->event
!= NB_EV_APPLY
)
1986 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
1987 circuit
->psnp_interval
[1] = yang_dnode_get_uint16(args
->dnode
, NULL
);
1993 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/padding
1995 int lib_interface_isis_hello_padding_modify(struct nb_cb_modify_args
*args
)
1997 struct isis_circuit
*circuit
;
1999 if (args
->event
!= NB_EV_APPLY
)
2002 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2003 circuit
->pad_hellos
= yang_dnode_get_bool(args
->dnode
, NULL
);
2009 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/interval/level-1
2011 int lib_interface_isis_hello_interval_level_1_modify(
2012 struct nb_cb_modify_args
*args
)
2014 struct isis_circuit
*circuit
;
2017 if (args
->event
!= NB_EV_APPLY
)
2020 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2021 interval
= yang_dnode_get_uint32(args
->dnode
, NULL
);
2022 circuit
->hello_interval
[0] = interval
;
2028 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/interval/level-2
2030 int lib_interface_isis_hello_interval_level_2_modify(
2031 struct nb_cb_modify_args
*args
)
2033 struct isis_circuit
*circuit
;
2036 if (args
->event
!= NB_EV_APPLY
)
2039 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2040 interval
= yang_dnode_get_uint32(args
->dnode
, NULL
);
2041 circuit
->hello_interval
[1] = interval
;
2047 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/multiplier/level-1
2049 int lib_interface_isis_hello_multiplier_level_1_modify(
2050 struct nb_cb_modify_args
*args
)
2052 struct isis_circuit
*circuit
;
2055 if (args
->event
!= NB_EV_APPLY
)
2058 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2059 multi
= yang_dnode_get_uint16(args
->dnode
, NULL
);
2060 circuit
->hello_multiplier
[0] = multi
;
2066 * XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/multiplier/level-2
2068 int lib_interface_isis_hello_multiplier_level_2_modify(
2069 struct nb_cb_modify_args
*args
)
2071 struct isis_circuit
*circuit
;
2074 if (args
->event
!= NB_EV_APPLY
)
2077 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2078 multi
= yang_dnode_get_uint16(args
->dnode
, NULL
);
2079 circuit
->hello_multiplier
[1] = multi
;
2085 * XPath: /frr-interface:lib/interface/frr-isisd:isis/metric/level-1
2087 int lib_interface_isis_metric_level_1_modify(struct nb_cb_modify_args
*args
)
2089 struct isis_circuit
*circuit
;
2092 if (args
->event
!= NB_EV_APPLY
)
2095 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2096 met
= yang_dnode_get_uint32(args
->dnode
, NULL
);
2097 isis_circuit_metric_set(circuit
, IS_LEVEL_1
, met
);
2103 * XPath: /frr-interface:lib/interface/frr-isisd:isis/metric/level-2
2105 int lib_interface_isis_metric_level_2_modify(struct nb_cb_modify_args
*args
)
2107 struct isis_circuit
*circuit
;
2110 if (args
->event
!= NB_EV_APPLY
)
2113 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2114 met
= yang_dnode_get_uint32(args
->dnode
, NULL
);
2115 isis_circuit_metric_set(circuit
, IS_LEVEL_2
, met
);
2121 * XPath: /frr-interface:lib/interface/frr-isisd:isis/priority/level-1
2123 int lib_interface_isis_priority_level_1_modify(struct nb_cb_modify_args
*args
)
2125 struct isis_circuit
*circuit
;
2127 if (args
->event
!= NB_EV_APPLY
)
2130 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2131 circuit
->priority
[0] = yang_dnode_get_uint8(args
->dnode
, NULL
);
2137 * XPath: /frr-interface:lib/interface/frr-isisd:isis/priority/level-2
2139 int lib_interface_isis_priority_level_2_modify(struct nb_cb_modify_args
*args
)
2141 struct isis_circuit
*circuit
;
2143 if (args
->event
!= NB_EV_APPLY
)
2146 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2147 circuit
->priority
[1] = yang_dnode_get_uint8(args
->dnode
, NULL
);
2153 * XPath: /frr-interface:lib/interface/frr-isisd:isis/network-type
2155 int lib_interface_isis_network_type_modify(struct nb_cb_modify_args
*args
)
2157 struct isis_circuit
*circuit
;
2158 int net_type
= yang_dnode_get_enum(args
->dnode
, NULL
);
2160 switch (args
->event
) {
2161 case NB_EV_VALIDATE
:
2162 circuit
= nb_running_get_entry(args
->dnode
, NULL
, false);
2165 if (circuit
->circ_type
== CIRCUIT_T_LOOPBACK
) {
2167 EC_LIB_NB_CB_CONFIG_VALIDATE
,
2168 "Cannot change network type on loopback interface");
2169 return NB_ERR_VALIDATION
;
2171 if (net_type
== CIRCUIT_T_BROADCAST
2172 && circuit
->state
== C_STATE_UP
2173 && !if_is_broadcast(circuit
->interface
)) {
2175 EC_LIB_NB_CB_CONFIG_VALIDATE
,
2176 "Cannot configure non-broadcast interface for broadcast operation");
2177 return NB_ERR_VALIDATION
;
2184 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2185 isis_circuit_circ_type_set(circuit
, net_type
);
2193 * XPath: /frr-interface:lib/interface/frr-isisd:isis/passive
2195 int lib_interface_isis_passive_modify(struct nb_cb_modify_args
*args
)
2197 struct isis_circuit
*circuit
;
2198 struct isis_area
*area
;
2199 struct interface
*ifp
;
2200 bool passive
= yang_dnode_get_bool(args
->dnode
, NULL
);
2202 /* validation only applies if we are setting passive to false */
2203 if (!passive
&& args
->event
== NB_EV_VALIDATE
) {
2204 circuit
= nb_running_get_entry(args
->dnode
, NULL
, false);
2207 ifp
= circuit
->interface
;
2210 if (if_is_loopback(ifp
)) {
2211 flog_warn(EC_LIB_NB_CB_CONFIG_VALIDATE
,
2212 "Loopback is always passive");
2213 return NB_ERR_VALIDATION
;
2217 if (args
->event
!= NB_EV_APPLY
)
2220 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2221 if (circuit
->state
!= C_STATE_UP
) {
2222 circuit
->is_passive
= passive
;
2224 area
= circuit
->area
;
2225 isis_csm_state_change(ISIS_DISABLE
, circuit
, area
);
2226 circuit
->is_passive
= passive
;
2227 isis_csm_state_change(ISIS_ENABLE
, circuit
, area
);
2234 * XPath: /frr-interface:lib/interface/frr-isisd:isis/password
2236 int lib_interface_isis_password_create(struct nb_cb_create_args
*args
)
2241 int lib_interface_isis_password_destroy(struct nb_cb_destroy_args
*args
)
2243 struct isis_circuit
*circuit
;
2245 if (args
->event
!= NB_EV_APPLY
)
2248 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2249 isis_circuit_passwd_unset(circuit
);
2255 * XPath: /frr-interface:lib/interface/frr-isisd:isis/password/password
2257 int lib_interface_isis_password_password_modify(struct nb_cb_modify_args
*args
)
2259 struct isis_circuit
*circuit
;
2260 const char *password
;
2262 if (args
->event
!= NB_EV_APPLY
)
2265 password
= yang_dnode_get_string(args
->dnode
, NULL
);
2266 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2268 isis_circuit_passwd_set(circuit
, circuit
->passwd
.type
, password
);
2274 * XPath: /frr-interface:lib/interface/frr-isisd:isis/password/password-type
2276 int lib_interface_isis_password_password_type_modify(
2277 struct nb_cb_modify_args
*args
)
2279 struct isis_circuit
*circuit
;
2282 if (args
->event
!= NB_EV_APPLY
)
2285 pass_type
= yang_dnode_get_enum(args
->dnode
, NULL
);
2286 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2287 circuit
->passwd
.type
= pass_type
;
2294 * /frr-interface:lib/interface/frr-isisd:isis/disable-three-way-handshake
2296 int lib_interface_isis_disable_three_way_handshake_modify(
2297 struct nb_cb_modify_args
*args
)
2299 struct isis_circuit
*circuit
;
2301 if (args
->event
!= NB_EV_APPLY
)
2304 circuit
= nb_running_get_entry(args
->dnode
, NULL
, true);
2305 circuit
->disable_threeway_adj
= yang_dnode_get_bool(args
->dnode
, NULL
);
2312 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv4-unicast
2314 static int lib_interface_isis_multi_topology_common(
2315 enum nb_event event
, const struct lyd_node
*dnode
, uint16_t mtid
)
2317 struct isis_circuit
*circuit
;
2321 case NB_EV_VALIDATE
:
2322 circuit
= nb_running_get_entry(dnode
, NULL
, false);
2323 if (circuit
&& circuit
->area
&& circuit
->area
->oldmetric
) {
2325 EC_LIB_NB_CB_CONFIG_VALIDATE
,
2326 "Multi topology IS-IS can only be used with wide metrics");
2327 return NB_ERR_VALIDATION
;
2334 circuit
= nb_running_get_entry(dnode
, NULL
, true);
2335 value
= yang_dnode_get_bool(dnode
, NULL
);
2336 isis_circuit_mt_enabled_set(circuit
, mtid
, value
);
2343 int lib_interface_isis_multi_topology_ipv4_unicast_modify(
2344 struct nb_cb_modify_args
*args
)
2346 return lib_interface_isis_multi_topology_common(
2347 args
->event
, args
->dnode
, ISIS_MT_IPV4_UNICAST
);
2352 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv4-multicast
2354 int lib_interface_isis_multi_topology_ipv4_multicast_modify(
2355 struct nb_cb_modify_args
*args
)
2357 return lib_interface_isis_multi_topology_common(
2358 args
->event
, args
->dnode
, ISIS_MT_IPV4_MULTICAST
);
2363 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv4-management
2365 int lib_interface_isis_multi_topology_ipv4_management_modify(
2366 struct nb_cb_modify_args
*args
)
2368 return lib_interface_isis_multi_topology_common(
2369 args
->event
, args
->dnode
, ISIS_MT_IPV4_MGMT
);
2374 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv6-unicast
2376 int lib_interface_isis_multi_topology_ipv6_unicast_modify(
2377 struct nb_cb_modify_args
*args
)
2379 return lib_interface_isis_multi_topology_common(
2380 args
->event
, args
->dnode
, ISIS_MT_IPV6_UNICAST
);
2385 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv6-multicast
2387 int lib_interface_isis_multi_topology_ipv6_multicast_modify(
2388 struct nb_cb_modify_args
*args
)
2390 return lib_interface_isis_multi_topology_common(
2391 args
->event
, args
->dnode
, ISIS_MT_IPV6_MULTICAST
);
2396 * /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv6-management
2398 int lib_interface_isis_multi_topology_ipv6_management_modify(
2399 struct nb_cb_modify_args
*args
)
2401 return lib_interface_isis_multi_topology_common(
2402 args
->event
, args
->dnode
, ISIS_MT_IPV6_MGMT
);
2406 * XPath: /frr-interface:lib/interface/frr-isisd:isis/multi-topology/ipv6-dstsrc
2408 int lib_interface_isis_multi_topology_ipv6_dstsrc_modify(
2409 struct nb_cb_modify_args
*args
)
2411 return lib_interface_isis_multi_topology_common(
2412 args
->event
, args
->dnode
, ISIS_MT_IPV6_DSTSRC
);