]> git.proxmox.com Git - mirror_frr.git/blame - tests/isisd/test_topologies.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / tests / isisd / test_topologies.c
CommitLineData
acddc0ed 1// SPDX-License-Identifier: GPL-2.0-or-later
52a7c25e
RW
2/*
3 * Copyright (C) 2020 NetDEF, Inc.
4 * Renato Westphal
52a7c25e
RW
5 */
6
7#include <zebra.h>
8
9#include "isisd/isisd.h"
10
11#include "test_common.h"
12
13/*
14 * clang-format off
15 *
16 * All topologies have the following properties:
17 * - The System-ID is 0000.0000.000X, where X is the node number (in hex);
18 * - The Router-ID is 10.0.255.X, where X is the node number;
19 * - The default link metric is 10;
20 * - When SR is enabled, Adj-SIDs and Prefix-SIDs are generated automatically;
2b669d3a 21 * - When SR is enabled, the default SRGB is [16000-23999] (can be overridden).
52a7c25e
RW
22 *
23 * Test topology 1:
24 * ================
25 *
26 * +---------+
27 * | |
28 * | RT1 |
29 * +----------+ +----------+
30 * | | | |
31 * | +---------+ |
32 * | |
33 * | |
34 * | |
35 * +----+----+ +----+----+
36 * | | | |
37 * | RT2 | | RT3 |
38 * | | | |
39 * | | | |
40 * +----+----+ +----+----+
41 * | |
42 * | |
43 * | |
44 * +---+-+---+ +----+----+
45 * | | | |
46 * | RT4 | | RT5 |
47 * | | | |
48 * | | | |
49 * +----+----+ +----+----+
50 * | |
51 * | |
52 * | |
53 * | +---------+ |
54 * | | | |
55 * | | RT6 | |
56 * +----------+ +----------+
57 * | |
58 * +---------+
59 *
60 * Test topology 2:
61 * ================
62 *
63 * +---------+
64 * | |
65 * | RT1 |
66 * +----------+ +----------+
67 * | | | |
68 * | +----+----+ |
69 * | | |
70 * 15 | | | 30
71 * | | |
72 * +----+----+ | +----+----+
73 * | | | | |
74 * | RT2 | | | RT3 |
75 * | | | | |
76 * | | | | |
77 * +----+----+ | +----+----+
78 * | | |
79 * 40 | | | 40
80 * | | |
81 * +----+----+ | +----+----+
82 * | | | | |
83 * | RT4 | | | RT5 |
84 * | +----------+----------+ |
85 * | | | |
86 * +----+----+ +----+----+
87 * | |
88 * | |
89 * | |
90 * | +---------+ |
91 * | | | |
92 * | | RT6 | |
93 * +----------+ +----------+
94 * | |
95 * +---------+
96 *
97 * Test topology 3:
98 * ================
99 *
100 * +---------+
101 * | |
102 * | RT1 |
103 * +----------+ +----------+
104 * | | | |
105 * | +---------+ |
106 * | |
107 * | |
108 * | |
109 * +----+----+ +----+----+
110 * | | | |
111 * | RT2 | | RT3 |
112 * | +---------------------+ |
113 * | | | |
114 * +----+----+ +----+----+
115 * | |
116 * | | 30
117 * | |
118 * +----+----+ +----+----+
119 * | | | |
120 * | RT4 | | RT5 |
121 * | +---------------------+ |
122 * | | | |
123 * +----+----+ +----+----+
124 * | |
125 * | |
126 * | |
127 * | +---------+ |
128 * | | | |
129 * | | RT6 | |
130 * +----------+ +----------+
131 * | |
132 * +---------+
133 *
134 * Test topology 4:
135 * ================
136 *
137 * +---------+ +---------+
138 * | | | |
139 * | RT1 | | RT2 |
140 * | +---------------------+ |
141 * | | | |
142 * +---+-----+ +------+--+
143 * | |
144 * | |
145 * | |
146 * +---+-----+ +------+--+
147 * | | | |
148 * | RT3 | | RT4 |
149 * | | | |
150 * | | | |
151 * +---+-----+ +------+--+
152 * |^ |
153 * ||200 |
154 * | |
155 * +---+-----+ +------+--+
156 * | | | |
157 * | RT5 | 50 | RT6 |
158 * | +---------------------+ |
159 * | | | |
160 * +---+-----+ +------+--+
161 * | |
162 * | |
163 * | |
164 * +---+-----+ +------+--+
165 * | | | |
166 * | RT7 | | RT8 |
167 * | | | |
168 * | | | |
169 * +---------+ +---------+
170 *
171 * Test topology 5:
172 * ================
173 *
174 * +---------+ +---------+
175 * | | | |
176 * | RT1 | | RT2 |
177 * | +---------------------+ |
178 * | | | |
179 * +---+-----+ +------+--+
180 * | |
181 * | |
182 * | |
183 * +---+-----+ +------+--+
184 * | | | |
185 * | RT3 | | RT4 |
186 * | | | |
187 * | | | |
188 * +---+-----+ +------+--+
189 * | |
190 * | |
191 * | |
192 * +---+-----+ +------+--+
193 * | | | |
194 * | RT5 | | RT6 |
195 * | | | |
196 * | | | |
197 * +---+-----+ +------+--+
198 * | |
199 * | |
200 * | |
201 * +---+-----+ +------+--+
202 * | | | |
203 * | RT7 | | RT8 |
204 * | +---------------------+ |
205 * | | | |
206 * +---------+ +---------+
207 *
208 * Test topology 6:
209 * ================
210 *
211 * +---------+ +---------+
212 * | | | |
213 * | RT1 | | RT2 |
214 * | +---------------------+ |
215 * | | | |
216 * +---+-----+ +------+--+
217 * | |
218 * | |
219 * | |
220 * +---+-----+ +------+--+
221 * | | | |
222 * | RT3 | | RT4 |
223 * | +---------------------+ |
224 * | | | |
225 * +---------+ +------+--+
226 * |
227 * |
228 * |
229 * +---------+ +------+--+
230 * | | | |
231 * | RT5 | | RT6 |
232 * | +---------------------+ |
233 * | | | |
234 * +---+-----+ +------+--+
235 * | |
236 * | |
237 * | |
238 * +---+-----+ +------+--+
239 * | | | |
240 * | RT7 | | RT8 |
241 * | +---------------------+ |
242 * | | | |
243 * +---------+ +---------+
244 *
245 * Test topology 7:
246 * ================
247 *
248 * +---------+ +---------+ +---------+
249 * | | | | | |
250 * | RT1 | 40 | RT2 | | RT3 |
251 * | +---------------------+ +---------------------+ |
252 * | | | | | |
253 * +---+-----+ +----+----+ +------+--+
254 * | | |
255 * | | |
256 * | | |
257 * +---+-----+ +----+----+ +------+--+
258 * | | | | | |
259 * | RT4 | | RT5 | | RT6 |
260 * | +---------------------+ +---------------------+ |
261 * | | | | | |
262 * +---+-----+ +----+----+ +------+--+
263 * | | |
264 * | | | 30
265 * | | |
266 * +---+-----+ +----+----+ +------+--+
267 * | | | | | |
268 * | RT7 | | RT8 | | RT9 |
269 * | +---------------------+ +---------------------+ |
270 * | | | | | |
271 * +---+-----+ +----+----+ +------+--+
272 * | | |
273 * | 20 | |
274 * | | |
275 * +---+-----+ +----+----+ +------+--+
276 * | | | | | |
277 * | RT10 | | RT11 | | RT12 |
278 * | +---------------------+ +---------------------+ |
279 * | | | | | |
280 * +---------+ +---------+ +---------+
281 *
282 * Test topology 8:
283 * ================
284 *
285 * +---------+ +---------+ +---------+
286 * | | | | | |
287 * | RT1 | | RT2 | | RT3 |
288 * | +---------------------+ +---------------------+ |
289 * | | | | | |
290 * +---+-----+ +----+----+ +------+--+
291 * | | |
292 * | | |
293 * | | |
294 * +---+-----+ +----+----+ +------+--+
295 * | | | | | |
296 * | RT4 | | RT5 | | RT6 |
297 * | | | +---------------------+ |
298 * | | | | | |
299 * +---+-----+ +----+----+ +---------+
300 * | |
301 * | |
302 * | |
303 * +---+-----+ +----+----+ +---------+
304 * | | | | | |
305 * | RT7 | | RT8 | | RT9 |
306 * | | | +---------------------+ |
307 * | | | | | |
308 * +---+-----+ +----+----+ +------+--+
309 * | | |
310 * | | |
311 * | | |
312 * +---+-----+ +----+----+ +------+--+
313 * | | | | | |
314 * | RT10 | | RT11 | | RT12 |
315 * | +---------------------+ +---------------------+ |
316 * | | 30 | | | |
317 * +---------+ +---------+ +---------+
318 *
319 * Test topology 9:
320 * ================
321 *
322 * +---------+
323 * | |
324 * | RT1 |
325 * +----------+ +----------+
326 * | | | |
327 * | +---------+ |
328 * | |
329 * | |
330 * | |
331 * +----+----+ +----+----+
332 * | | | |
333 * | RT2 | | RT3 |
334 * | | | |
335 * | | | |
336 * +----+----+ +------+--+
337 * | |
338 * | |
339 * | |100
340 * | +---------+ |
341 * | | | |
342 * +----------+ RT4 +------------+
343 * +----------------| |----------------+
344 * | +-+ +--+ |
345 * | | +---------+ | |
346 * | | | |
347 * | |30 |30 |30
348 * | | | |
349 * +----+----+ +----+----+ +----+----+ +----+----+
350 * | | | | | | | |
351 * | RT5 | | RT6 | | RT7 | | RT8 |
352 * | | | | | | | |
353 * | | | | | | | |
354 * +----+----+ +----+----+ +----+----+ +----+----+
355 * | | | |
356 * | | | |
357 * | | | |
358 * | | +---------+ | |
359 * | +-+ +--+ |
360 * +----------------+ RT9 +----------------+
361 * | |
362 * | |
363 * +---------+
364 *
365 * Test topology 10:
366 * ================
367 *
368 * +---------+
369 * | |
370 * | RT1 |
371 * +----------+ +----------+
372 * | | | |
373 * | +----+----+ |
374 * | | |
375 * | |20 |20
376 * | | |
377 * +----+----+ +----+----+ +----+----+
378 * | | | | | |
379 * | RT2 | | RT3 | | RT4 |
380 * | | | | | |
381 * | | | | | |
382 * +----+----+ +----+----+ +----+----+
383 * | | |
384 * | | |
385 * | | |
386 * +----+----+ +----+----+ +----+----+
387 * | | | | | |
388 * | RT5 | | RT6 | | RT7 |
389 * | | | | | |
390 * | | | | | |
391 * +----+----+ +----+----+ +----+----+
392 * | | |
393 * | |50 |50
394 * | | |
395 * | +----+----+ |
396 * | | | |
397 * +----------+ RT8 +----------+
398 * | |
399 * | |
400 * +---------+
401 *
402 * Test topology 11:
403 * ================
404 *
405 * +---------+
406 * | |
407 * | RT1 |
408 * | |
409 * | |
410 * +----+----+
411 * |
412 * |
413 * |
414 * +---------+ | +---------+
415 * | | | | |
416 * | RT2 |50 | | RT3 |
417 * | +----------+----------+ |
418 * | | | |
419 * +----+----+ +----+----+
420 * | |
421 * | |
422 * | |
423 * +----+----+ +----+----+
424 * | | | |
425 * | RT4 | | RT5 |
426 * | +---------------------+ |
427 * | | | |
428 * +----+----+ +----+----+
429 * | |
430 * | |
431 * | |
432 * | +---------+ |
433 * | | | |
434 * | | RT6 | |
435 * +----------+ +----------+
436 * | |
437 * +---------+
438 *
439 * Test topology 12:
440 * ================
441 *
442 * +---------+ +---------+
443 * | | | |
444 * | RT1 | | RT2 |
445 * | +---------------------+ |
446 * | | | |
447 * +---+-----+ +------+--+
448 * | |
449 * | |
450 * | |
451 * +---+-----+ +------+--+
452 * | | | |
453 * | RT3 | | RT4 |
454 * | | | |
455 * | | | |
456 * +---+-----+ +------+--+
457 * |^ |
458 * |400 |
459 * | |
460 * +---+-----+ +------+--+
461 * | | | |
462 * | RT5 | | RT6 |
463 * | | | |
464 * | | | |
465 * +---+-----+ +------+--+
466 * |^ |
467 * |200 |
468 * | |
469 * +---+-----+ +------+--+
470 * | | | |
471 * | RT7 | | RT8 |
472 * | +---------------------+ |
473 * | | 100 | |
474 * +---+-----+ +------+--+
475 * | |
476 * | |
477 * | |
478 * +---+-----+ +------+--+
479 * | | | |
480 * | RT9 | | RT10 |
481 * | | | |
482 * | | | |
483 * +---------+ +---------+
484 *
485 * Test topology 13:
486 * ================
487 *
488 * +---------+ +---------+
489 * | | | |
490 * | RT1 | | RT2 |
491 * | +---------------------+ |
492 * | | | |
493 * +---+-----+ +----+----+
494 * | |
495 * | |
496 * | |
497 * | +----+----+
498 * | | |
499 * | +----------+ RT4 |
500 * | | | |
501 * +---+-----+ | | |
502 * | | | +----+----+
503 * | RT3 +----------+ |
504 * | +----------+ |100
505 * | | | |
506 * +---+-----+ | +----+----+
507 * | | | |
508 * | | | RT5 |
509 * | +----------+ |
510 * | | |
511 * | +----+----+
512 * | |
513 * | |
514 * | |
515 * +---+-----+ +----+----+
516 * | | | |
517 * | RT6 | | RT7 |
518 * | +---------------------+ |
519 * | | | |
520 * +---------+ +---------+
c8a4f331
RW
521
522 * Test topology 14:
523 * =================
524 *
525 * +---------+ +---------+
526 * | | | |
527 * | RT1 | | RT2 |
528 * | +--------------+ |
529 * | | | |
530 * +----+----+ +----+----+
531 * | |
532 * | |
533 * | |
534 * | +----+----+
535 * | | |
536 * | | RT3 |
537 * +-------------------+ |
538 * | | |
539 * | +----+----+
540 * | |
541 * | |50
542 * | |
543 * +----+----+ +----+----+
544 * | | | |
545 * | RT4 | | RT5 |
546 * | +--------------+ |
547 * | | | |
548 * +---------+ +---------+
52a7c25e
RW
549 */
550
551struct isis_topology test_topologies[] = {
552 {
553 .number = 1,
554 .nodes = {
555 {
556 .hostname = "rt1",
557 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
558 .level = IS_LEVEL_1,
559 .router_id = "10.0.255.1",
560 .protocols = {
561 .ipv4 = true,
562 .ipv6 = true,
563 },
564 .networks = {
565 "10.0.255.1/32",
566 "2001:db8::1/128",
567 },
568 .adjacencies = {
569 {
570 .hostname = "rt2",
571 .metric = 10,
572 },
573 {
574 .hostname = "rt3",
575 .metric = 10,
576 },
577 },
578 .flags = F_ISIS_TEST_NODE_SR,
579 },
580 {
581 .hostname = "rt2",
582 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
583 .level = IS_LEVEL_1,
584 .router_id = "10.0.255.2",
585 .protocols = {
586 .ipv4 = true,
587 .ipv6 = true,
588 },
589 .networks = {
590 "10.0.255.2/32",
591 "2001:db8::2/128",
592 },
593 .adjacencies = {
594 {
595 .hostname = "rt1",
596 .metric = 10,
597 },
598 {
599 .hostname = "rt4",
600 .metric = 10,
601 },
602 },
603 .flags = F_ISIS_TEST_NODE_SR,
604 },
605 {
606 .hostname = "rt3",
607 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
608 .level = IS_LEVEL_1,
609 .router_id = "10.0.255.3",
610 .protocols = {
611 .ipv4 = true,
612 .ipv6 = true,
613 },
614 .networks = {
615 "10.0.255.3/32",
616 "2001:db8::3/128",
617 },
618 .adjacencies = {
619 {
620 .hostname = "rt1",
621 .metric = 10,
622 },
623 {
624 .hostname = "rt5",
625 .metric = 10,
626 },
627 },
628 .flags = F_ISIS_TEST_NODE_SR,
629 },
630 {
631 .hostname = "rt4",
632 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
633 .level = IS_LEVEL_1,
634 .router_id = "10.0.255.4",
635 .protocols = {
636 .ipv4 = true,
637 .ipv6 = true,
638 },
639 .networks = {
640 "10.0.255.4/32",
641 "2001:db8::4/128",
642 },
643 .adjacencies = {
644 {
645 .hostname = "rt2",
646 .metric = 10,
647 },
648 {
649 .hostname = "rt6",
650 .metric = 10,
651 },
652 },
653 .flags = F_ISIS_TEST_NODE_SR,
654 },
655 {
656 .hostname = "rt5",
657 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
658 .level = IS_LEVEL_1,
659 .router_id = "10.0.255.5",
660 .protocols = {
661 .ipv4 = true,
662 .ipv6 = true,
663 },
664 .networks = {
665 "10.0.255.5/32",
666 "2001:db8::5/128",
667 },
668 .adjacencies = {
669 {
670 .hostname = "rt3",
671 .metric = 10,
672 },
673 {
674 .hostname = "rt6",
675 .metric = 10,
676 },
677 },
678 .flags = F_ISIS_TEST_NODE_SR,
679 },
680 {
681 .hostname = "rt6",
682 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
683 .level = IS_LEVEL_1,
684 .router_id = "10.0.255.6",
685 .protocols = {
686 .ipv4 = true,
687 .ipv6 = true,
688 },
689 .networks = {
690 "10.0.255.6/32",
691 "2001:db8::6/128",
692 },
693 .adjacencies = {
694 {
695 .hostname = "rt4",
696 .metric = 10,
697 },
698 {
699 .hostname = "rt5",
700 .metric = 10,
701 },
702 },
703 .flags = F_ISIS_TEST_NODE_SR,
704 },
705 },
706 },
707 {
708 .number = 2,
709 .nodes = {
710 {
711 .hostname = "rt1",
712 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
713 .level = IS_LEVEL_1,
714 .router_id = "10.0.255.1",
715 .protocols = {
716 .ipv4 = true,
717 .ipv6 = true,
718 },
719 .networks = {
720 "10.0.255.1/32",
721 "2001:db8::1/128",
722 },
723 .adjacencies = {
724 {
725 .hostname = "rt1",
726 .pseudonode_id = 1,
727 .metric = 10,
728 },
729 {
730 .hostname = "rt2",
731 .metric = 15,
732 },
733 {
734 .hostname = "rt3",
735 .metric = 30,
736 },
737 },
738 .flags = F_ISIS_TEST_NODE_SR,
739 },
740 {
741 .hostname = "rt2",
742 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
743 .level = IS_LEVEL_1,
744 .router_id = "10.0.255.2",
745 .protocols = {
746 .ipv4 = true,
747 .ipv6 = true,
748 },
749 .networks = {
750 "10.0.255.2/32",
751 "2001:db8::2/128",
752 },
753 .adjacencies = {
754 {
755 .hostname = "rt1",
756 .metric = 15,
757 },
758 {
759 .hostname = "rt4",
760 .metric = 40,
761 },
762 },
763 .flags = F_ISIS_TEST_NODE_SR,
764 },
765 {
766 .hostname = "rt3",
767 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
768 .level = IS_LEVEL_1,
769 .router_id = "10.0.255.3",
770 .protocols = {
771 .ipv4 = true,
772 .ipv6 = true,
773 },
774 .networks = {
775 "10.0.255.3/32",
776 "2001:db8::3/128",
777 },
778 .adjacencies = {
779 {
780 .hostname = "rt1",
781 .metric = 30,
782 },
783 {
784 .hostname = "rt5",
785 .metric = 40,
786 },
787 },
788 .flags = F_ISIS_TEST_NODE_SR,
789 },
790 {
791 .hostname = "rt4",
792 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
793 .level = IS_LEVEL_1,
794 .router_id = "10.0.255.4",
795 .protocols = {
796 .ipv4 = true,
797 .ipv6 = true,
798 },
799 .networks = {
800 "10.0.255.4/32",
801 "2001:db8::4/128",
802 },
803 .adjacencies = {
804 {
805 .hostname = "rt1",
806 .pseudonode_id = 1,
807 .metric = 10,
808 },
809 {
810 .hostname = "rt2",
811 .metric = 40,
812 },
813 {
814 .hostname = "rt6",
815 .metric = 10,
816 },
817 },
818 .flags = F_ISIS_TEST_NODE_SR,
819 },
820 {
821 .hostname = "rt5",
822 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
823 .level = IS_LEVEL_1,
824 .router_id = "10.0.255.5",
825 .protocols = {
826 .ipv4 = true,
827 .ipv6 = true,
828 },
829 .networks = {
830 "10.0.255.5/32",
831 "2001:db8::5/128",
832 },
833 .adjacencies = {
834 {
835 .hostname = "rt1",
836 .pseudonode_id = 1,
837 .metric = 10,
838 },
839 {
840 .hostname = "rt3",
841 .metric = 40,
842 },
843 {
844 .hostname = "rt6",
845 .metric = 10,
846 },
847 },
848 .flags = F_ISIS_TEST_NODE_SR,
849 },
850 {
851 .hostname = "rt6",
852 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
853 .level = IS_LEVEL_1,
854 .router_id = "10.0.255.6",
855 .protocols = {
856 .ipv4 = true,
857 .ipv6 = true,
858 },
859 .networks = {
860 "10.0.255.6/32",
861 "2001:db8::6/128",
862 },
863 .adjacencies = {
864 {
865 .hostname = "rt4",
866 .metric = 10,
867 },
868 {
869 .hostname = "rt5",
870 .metric = 10,
871 },
872 },
873 .flags = F_ISIS_TEST_NODE_SR,
874 },
875 {
876 .hostname = "rt1",
877 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
878 .pseudonode_id = 1,
879 .level = IS_LEVEL_1,
880 .adjacencies = {
881 {
882 .hostname = "rt1",
883 .metric = 0,
884 },
885 {
886 .hostname = "rt4",
887 .metric = 0,
888 },
889 {
890 .hostname = "rt5",
891 .metric = 0,
892 },
893 },
894 },
895 },
896 },
897 {
898 .number = 3,
899 .nodes = {
900 {
901 .hostname = "rt1",
902 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
903 .level = IS_LEVEL_1,
904 .router_id = "10.0.255.1",
905 .protocols = {
906 .ipv4 = true,
907 },
908 .networks = {
909 "10.0.255.1/32",
910 },
911 .adjacencies = {
912 {
913 .hostname = "rt2",
914 .metric = 10,
915 },
916 {
917 .hostname = "rt3",
918 .metric = 10,
919 },
920 },
921 .flags = F_ISIS_TEST_NODE_SR,
922 },
923 {
924 .hostname = "rt2",
925 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
926 .level = IS_LEVEL_1,
927 .router_id = "10.0.255.2",
928 .protocols = {
929 .ipv4 = true,
930 },
931 .networks = {
932 "10.0.255.2/32",
933 },
934 .adjacencies = {
935 {
936 .hostname = "rt1",
937 .metric = 10,
938 },
939 {
940 .hostname = "rt3",
941 .metric = 10,
942 },
943 {
944 .hostname = "rt4",
945 .metric = 10,
946 },
947 },
948 .flags = F_ISIS_TEST_NODE_SR,
949 },
950 {
951 .hostname = "rt3",
952 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
953 .level = IS_LEVEL_1,
954 .router_id = "10.0.255.3",
955 .protocols = {
956 .ipv4 = true,
957 },
958 .networks = {
959 "10.0.255.3/32",
960 },
961 .adjacencies = {
962 {
963 .hostname = "rt1",
964 .metric = 10,
965 },
966 {
967 .hostname = "rt2",
968 .metric = 10,
969 },
970 {
971 .hostname = "rt5",
972 .metric = 30,
973 },
974 },
975 .flags = F_ISIS_TEST_NODE_SR,
976 },
977 {
978 .hostname = "rt4",
979 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
980 .level = IS_LEVEL_1,
981 .router_id = "10.0.255.4",
982 .protocols = {
983 .ipv4 = true,
984 },
985 .networks = {
986 "10.0.255.4/32",
987 },
988 .adjacencies = {
989 {
990 .hostname = "rt2",
991 .metric = 10,
992 },
993 {
994 .hostname = "rt5",
995 .metric = 10,
996 },
997 {
998 .hostname = "rt6",
999 .metric = 10,
1000 },
1001 },
1002 .flags = F_ISIS_TEST_NODE_SR,
1003 },
1004 {
1005 .hostname = "rt5",
1006 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
1007 .level = IS_LEVEL_1,
1008 .router_id = "10.0.255.5",
1009 .protocols = {
1010 .ipv4 = true,
1011 },
1012 .networks = {
1013 "10.0.255.5/32",
1014 },
1015 .adjacencies = {
1016 {
1017 .hostname = "rt3",
1018 .metric = 30,
1019 },
1020 {
1021 .hostname = "rt4",
1022 .metric = 10,
1023 },
1024 {
1025 .hostname = "rt6",
1026 .metric = 10,
1027 },
1028 },
1029 .flags = F_ISIS_TEST_NODE_SR,
1030 },
1031 {
1032 .hostname = "rt6",
1033 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
1034 .level = IS_LEVEL_1,
1035 .router_id = "10.0.255.6",
1036 .protocols = {
1037 .ipv4 = true,
1038 },
1039 .networks = {
1040 "10.0.255.6/32",
1041 },
1042 .adjacencies = {
1043 {
1044 .hostname = "rt4",
1045 .metric = 10,
1046 },
1047 {
1048 .hostname = "rt5",
1049 .metric = 10,
1050 },
1051 },
1052 .flags = F_ISIS_TEST_NODE_SR,
1053 },
1054 },
1055 },
1056 {
1057 .number = 4,
1058 .nodes = {
1059 {
1060 .hostname = "rt1",
1061 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
1062 .level = IS_LEVEL_1,
1063 .router_id = "10.0.255.1",
1064 .protocols = {
1065 .ipv4 = true,
1066 },
1067 .networks = {
1068 "10.0.255.1/32",
1069 },
1070 .adjacencies = {
1071 {
1072 .hostname = "rt2",
1073 .metric = 10,
1074 },
1075 {
1076 .hostname = "rt3",
1077 .metric = 10,
1078 },
1079 },
1080 .flags = F_ISIS_TEST_NODE_SR,
1081 },
1082 {
1083 .hostname = "rt2",
1084 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
1085 .level = IS_LEVEL_1,
1086 .router_id = "10.0.255.2",
1087 .protocols = {
1088 .ipv4 = true,
1089 },
1090 .networks = {
1091 "10.0.255.2/32",
1092 },
1093 .adjacencies = {
1094 {
1095 .hostname = "rt1",
1096 .metric = 10,
1097 },
1098 {
1099 .hostname = "rt4",
1100 .metric = 10,
1101 },
1102 },
1103 .flags = F_ISIS_TEST_NODE_SR,
1104 },
1105 {
1106 .hostname = "rt3",
1107 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
1108 .level = IS_LEVEL_1,
1109 .router_id = "10.0.255.3",
1110 .protocols = {
1111 .ipv4 = true,
1112 },
1113 .networks = {
1114 "10.0.255.3/32",
1115 },
1116 .adjacencies = {
1117 {
1118 .hostname = "rt1",
1119 .metric = 10,
1120 },
1121 {
1122 .hostname = "rt5",
1123 .metric = 10,
1124 },
1125 },
1126 .flags = F_ISIS_TEST_NODE_SR,
1127 },
1128 {
1129 .hostname = "rt4",
1130 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
1131 .level = IS_LEVEL_1,
1132 .router_id = "10.0.255.4",
1133 .protocols = {
1134 .ipv4 = true,
1135 },
1136 .networks = {
1137 "10.0.255.4/32",
1138 },
1139 .adjacencies = {
1140 {
1141 .hostname = "rt2",
1142 .metric = 10,
1143 },
1144 {
1145 .hostname = "rt6",
1146 .metric = 10,
1147 },
1148 },
1149 .flags = F_ISIS_TEST_NODE_SR,
1150 },
1151 {
1152 .hostname = "rt5",
1153 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
1154 .level = IS_LEVEL_1,
1155 .router_id = "10.0.255.5",
1156 .protocols = {
1157 .ipv4 = true,
1158 },
1159 .networks = {
1160 "10.0.255.5/32",
1161 },
1162 .adjacencies = {
1163 {
1164 .hostname = "rt3",
1165 .metric = 200,
1166 },
1167 {
1168 .hostname = "rt6",
1169 .metric = 50,
1170 },
1171 {
1172 .hostname = "rt7",
1173 .metric = 10,
1174 },
1175 },
1176 .flags = F_ISIS_TEST_NODE_SR,
1177 },
1178 {
1179 .hostname = "rt6",
1180 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
1181 .level = IS_LEVEL_1,
1182 .router_id = "10.0.255.6",
1183 .protocols = {
1184 .ipv4 = true,
1185 },
1186 .networks = {
1187 "10.0.255.6/32",
1188 },
1189 .adjacencies = {
1190 {
1191 .hostname = "rt4",
1192 .metric = 10,
1193 },
1194 {
1195 .hostname = "rt5",
1196 .metric = 50,
1197 },
1198 {
1199 .hostname = "rt8",
1200 .metric = 10,
1201 },
1202 },
1203 .flags = F_ISIS_TEST_NODE_SR,
1204 },
1205 {
1206 .hostname = "rt7",
1207 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
1208 .level = IS_LEVEL_1,
1209 .router_id = "10.0.255.7",
1210 .protocols = {
1211 .ipv4 = true,
1212 },
1213 .networks = {
1214 "10.0.255.7/32",
1215 },
1216 .adjacencies = {
1217 {
1218 .hostname = "rt5",
1219 .metric = 10,
1220 },
1221 },
1222 .flags = F_ISIS_TEST_NODE_SR,
1223 },
1224 {
1225 .hostname = "rt8",
1226 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
1227 .level = IS_LEVEL_1,
1228 .router_id = "10.0.255.8",
1229 .protocols = {
1230 .ipv4 = true,
1231 },
1232 .networks = {
1233 "10.0.255.8/32",
1234 },
1235 .adjacencies = {
1236 {
1237 .hostname = "rt6",
1238 .metric = 10,
1239 },
1240 },
1241 .flags = F_ISIS_TEST_NODE_SR,
1242 },
1243 },
1244 },
1245 {
1246 .number = 5,
1247 .nodes = {
1248 {
1249 .hostname = "rt1",
1250 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
1251 .level = IS_LEVEL_1,
1252 .router_id = "10.0.255.1",
1253 .protocols = {
1254 .ipv4 = true,
1255 },
1256 .networks = {
1257 "10.0.255.1/32",
1258 },
1259 .adjacencies = {
1260 {
1261 .hostname = "rt2",
1262 .metric = 10,
1263 },
1264 {
1265 .hostname = "rt3",
1266 .metric = 10,
1267 },
1268 },
1269 .flags = F_ISIS_TEST_NODE_SR,
1270 },
1271 {
1272 .hostname = "rt2",
1273 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
1274 .level = IS_LEVEL_1,
1275 .router_id = "10.0.255.2",
1276 .protocols = {
1277 .ipv4 = true,
1278 },
1279 .networks = {
1280 "10.0.255.2/32",
1281 },
1282 .adjacencies = {
1283 {
1284 .hostname = "rt1",
1285 .metric = 10,
1286 },
1287 {
1288 .hostname = "rt4",
1289 .metric = 10,
1290 },
1291 },
1292 .flags = F_ISIS_TEST_NODE_SR,
1293 },
1294 {
1295 .hostname = "rt3",
1296 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
1297 .level = IS_LEVEL_1,
1298 .router_id = "10.0.255.3",
1299 .protocols = {
1300 .ipv4 = true,
1301 },
1302 .networks = {
1303 "10.0.255.3/32",
1304 },
1305 .adjacencies = {
1306 {
1307 .hostname = "rt1",
1308 .metric = 10,
1309 },
1310 {
1311 .hostname = "rt5",
1312 .metric = 10,
1313 },
1314 },
1315 .flags = F_ISIS_TEST_NODE_SR,
1316 },
1317 {
1318 .hostname = "rt4",
1319 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
1320 .level = IS_LEVEL_1,
1321 .router_id = "10.0.255.4",
1322 .protocols = {
1323 .ipv4 = true,
1324 },
1325 .networks = {
1326 "10.0.255.4/32",
1327 },
1328 .adjacencies = {
1329 {
1330 .hostname = "rt2",
1331 .metric = 10,
1332 },
1333 {
1334 .hostname = "rt6",
1335 .metric = 10,
1336 },
1337 },
1338 .flags = F_ISIS_TEST_NODE_SR,
1339 },
1340 {
1341 .hostname = "rt5",
1342 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
1343 .level = IS_LEVEL_1,
1344 .router_id = "10.0.255.5",
1345 .protocols = {
1346 .ipv4 = true,
1347 },
1348 .networks = {
1349 "10.0.255.5/32",
1350 },
1351 .adjacencies = {
1352 {
1353 .hostname = "rt3",
1354 .metric = 10,
1355 },
1356 {
1357 .hostname = "rt7",
1358 .metric = 10,
1359 },
1360 },
1361 .flags = F_ISIS_TEST_NODE_SR,
1362 },
1363 {
1364 .hostname = "rt6",
1365 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
1366 .level = IS_LEVEL_1,
1367 .router_id = "10.0.255.6",
1368 .protocols = {
1369 .ipv4 = true,
1370 },
1371 .networks = {
1372 "10.0.255.6/32",
1373 },
1374 .adjacencies = {
1375 {
1376 .hostname = "rt4",
1377 .metric = 10,
1378 },
1379 {
1380 .hostname = "rt8",
1381 .metric = 10,
1382 },
1383 },
1384 .flags = F_ISIS_TEST_NODE_SR,
1385 },
1386 {
1387 .hostname = "rt7",
1388 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
1389 .level = IS_LEVEL_1,
1390 .router_id = "10.0.255.7",
1391 .protocols = {
1392 .ipv4 = true,
1393 },
1394 .networks = {
1395 "10.0.255.7/32",
1396 },
1397 .adjacencies = {
1398 {
1399 .hostname = "rt5",
1400 .metric = 10,
1401 },
1402 {
1403 .hostname = "rt8",
1404 .metric = 10,
1405 },
1406 },
1407 .flags = F_ISIS_TEST_NODE_SR,
1408 },
1409 {
1410 .hostname = "rt8",
1411 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
1412 .level = IS_LEVEL_1,
1413 .router_id = "10.0.255.8",
1414 .protocols = {
1415 .ipv4 = true,
1416 },
1417 .networks = {
1418 "10.0.255.8/32",
1419 },
1420 .adjacencies = {
1421 {
1422 .hostname = "rt6",
1423 .metric = 10,
1424 },
1425 {
1426 .hostname = "rt7",
1427 .metric = 10,
1428 },
1429 },
1430 .flags = F_ISIS_TEST_NODE_SR,
1431 },
1432 },
1433 },
1434 {
1435 .number = 6,
1436 .nodes = {
1437 {
1438 .hostname = "rt1",
1439 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
1440 .level = IS_LEVEL_1,
1441 .router_id = "10.0.255.1",
1442 .protocols = {
1443 .ipv4 = true,
1444 },
1445 .networks = {
1446 "10.0.255.1/32",
1447 },
1448 .adjacencies = {
1449 {
1450 .hostname = "rt2",
1451 .metric = 10,
1452 },
1453 {
1454 .hostname = "rt3",
1455 .metric = 10,
1456 },
1457 },
1458 .flags = F_ISIS_TEST_NODE_SR,
1459 },
1460 {
1461 .hostname = "rt2",
1462 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
1463 .level = IS_LEVEL_1,
1464 .router_id = "10.0.255.2",
1465 .protocols = {
1466 .ipv4 = true,
1467 },
1468 .networks = {
1469 "10.0.255.2/32",
1470 },
1471 .adjacencies = {
1472 {
1473 .hostname = "rt1",
1474 .metric = 10,
1475 },
1476 {
1477 .hostname = "rt4",
1478 .metric = 10,
1479 },
1480 },
1481 .flags = F_ISIS_TEST_NODE_SR,
1482 },
1483 {
1484 .hostname = "rt3",
1485 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
1486 .level = IS_LEVEL_1,
1487 .router_id = "10.0.255.3",
1488 .protocols = {
1489 .ipv4 = true,
1490 },
1491 .networks = {
1492 "10.0.255.3/32",
1493 },
1494 .adjacencies = {
1495 {
1496 .hostname = "rt1",
1497 .metric = 10,
1498 },
1499 {
1500 .hostname = "rt4",
1501 .metric = 10,
1502 },
1503 },
1504 .flags = F_ISIS_TEST_NODE_SR,
1505 },
1506 {
1507 .hostname = "rt4",
1508 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
1509 .level = IS_LEVEL_1,
1510 .router_id = "10.0.255.4",
1511 .protocols = {
1512 .ipv4 = true,
1513 },
1514 .networks = {
1515 "10.0.255.4/32",
1516 },
1517 .adjacencies = {
1518 {
1519 .hostname = "rt2",
1520 .metric = 10,
1521 },
1522 {
1523 .hostname = "rt3",
1524 .metric = 10,
1525 },
1526 {
1527 .hostname = "rt6",
1528 .metric = 10,
1529 },
1530 },
1531 .flags = F_ISIS_TEST_NODE_SR,
1532 },
1533 {
1534 .hostname = "rt5",
1535 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
1536 .level = IS_LEVEL_1,
1537 .router_id = "10.0.255.5",
1538 .protocols = {
1539 .ipv4 = true,
1540 },
1541 .networks = {
1542 "10.0.255.5/32",
1543 },
1544 .adjacencies = {
1545 {
1546 .hostname = "rt6",
1547 .metric = 10,
1548 },
1549 {
1550 .hostname = "rt7",
1551 .metric = 10,
1552 },
1553 },
1554 .flags = F_ISIS_TEST_NODE_SR,
1555 },
1556 {
1557 .hostname = "rt6",
1558 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
1559 .level = IS_LEVEL_1,
1560 .router_id = "10.0.255.6",
1561 .protocols = {
1562 .ipv4 = true,
1563 },
1564 .networks = {
1565 "10.0.255.6/32",
1566 },
1567 .adjacencies = {
1568 {
1569 .hostname = "rt4",
1570 .metric = 10,
1571 },
1572 {
1573 .hostname = "rt5",
1574 .metric = 10,
1575 },
1576 {
1577 .hostname = "rt8",
1578 .metric = 10,
1579 },
1580 },
1581 .flags = F_ISIS_TEST_NODE_SR,
1582 },
1583 {
1584 .hostname = "rt7",
1585 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
1586 .level = IS_LEVEL_1,
1587 .router_id = "10.0.255.7",
1588 .protocols = {
1589 .ipv4 = true,
1590 },
1591 .networks = {
1592 "10.0.255.7/32",
1593 },
1594 .adjacencies = {
1595 {
1596 .hostname = "rt5",
1597 .metric = 10,
1598 },
1599 {
1600 .hostname = "rt8",
1601 .metric = 10,
1602 },
1603 },
1604 .flags = F_ISIS_TEST_NODE_SR,
1605 },
1606 {
1607 .hostname = "rt8",
1608 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
1609 .level = IS_LEVEL_1,
1610 .router_id = "10.0.255.8",
1611 .protocols = {
1612 .ipv4 = true,
1613 },
1614 .networks = {
1615 "10.0.255.8/32",
1616 },
1617 .adjacencies = {
1618 {
1619 .hostname = "rt6",
1620 .metric = 10,
1621 },
1622 {
1623 .hostname = "rt7",
1624 .metric = 10,
1625 },
1626 },
1627 .flags = F_ISIS_TEST_NODE_SR,
1628 },
1629 },
1630 },
1631 {
1632 .number = 7,
1633 .nodes = {
1634 {
1635 .hostname = "rt1",
1636 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
1637 .level = IS_LEVEL_1,
1638 .router_id = "10.0.255.1",
1639 .protocols = {
1640 .ipv4 = true,
1641 },
1642 .networks = {
1643 "10.0.255.1/32",
1644 },
1645 .adjacencies = {
1646 {
1647 .hostname = "rt2",
1648 .metric = 40,
1649 },
1650 {
1651 .hostname = "rt4",
1652 .metric = 10,
1653 },
1654 },
1655 .flags = F_ISIS_TEST_NODE_SR,
1656 },
1657 {
1658 .hostname = "rt2",
1659 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
1660 .level = IS_LEVEL_1,
1661 .router_id = "10.0.255.2",
1662 .protocols = {
1663 .ipv4 = true,
1664 },
1665 .networks = {
1666 "10.0.255.2/32",
1667 },
1668 .adjacencies = {
1669 {
1670 .hostname = "rt1",
1671 .metric = 40,
1672 },
1673 {
1674 .hostname = "rt3",
1675 .metric = 10,
1676 },
1677 {
1678 .hostname = "rt5",
1679 .metric = 10,
1680 },
1681 },
1682 .flags = F_ISIS_TEST_NODE_SR,
1683 },
1684 {
1685 .hostname = "rt3",
1686 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
1687 .level = IS_LEVEL_1,
1688 .router_id = "10.0.255.3",
1689 .protocols = {
1690 .ipv4 = true,
1691 },
1692 .networks = {
1693 "10.0.255.3/32",
1694 },
1695 .adjacencies = {
1696 {
1697 .hostname = "rt2",
1698 .metric = 10,
1699 },
1700 {
1701 .hostname = "rt6",
1702 .metric = 10,
1703 },
1704 },
1705 .flags = F_ISIS_TEST_NODE_SR,
1706 },
1707 {
1708 .hostname = "rt4",
1709 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
1710 .level = IS_LEVEL_1,
1711 .router_id = "10.0.255.4",
1712 .protocols = {
1713 .ipv4 = true,
1714 },
1715 .networks = {
1716 "10.0.255.4/32",
1717 },
1718 .adjacencies = {
1719 {
1720 .hostname = "rt1",
1721 .metric = 10,
1722 },
1723 {
1724 .hostname = "rt5",
1725 .metric = 10,
1726 },
1727 {
1728 .hostname = "rt7",
1729 .metric = 10,
1730 },
1731 },
1732 .flags = F_ISIS_TEST_NODE_SR,
1733 },
1734 {
1735 .hostname = "rt5",
1736 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
1737 .level = IS_LEVEL_1,
1738 .router_id = "10.0.255.5",
1739 .protocols = {
1740 .ipv4 = true,
1741 },
1742 .networks = {
1743 "10.0.255.5/32",
1744 },
1745 .adjacencies = {
1746 {
1747 .hostname = "rt2",
1748 .metric = 10,
1749 },
1750 {
1751 .hostname = "rt4",
1752 .metric = 10,
1753 },
1754 {
1755 .hostname = "rt6",
1756 .metric = 10,
1757 },
1758 {
1759 .hostname = "rt8",
1760 .metric = 10,
1761 },
1762 },
1763 .flags = F_ISIS_TEST_NODE_SR,
1764 },
1765 {
1766 .hostname = "rt6",
1767 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
1768 .level = IS_LEVEL_1,
1769 .router_id = "10.0.255.6",
1770 .protocols = {
1771 .ipv4 = true,
1772 },
1773 .networks = {
1774 "10.0.255.6/32",
1775 },
1776 .adjacencies = {
1777 {
1778 .hostname = "rt3",
1779 .metric = 10,
1780 },
1781 {
1782 .hostname = "rt5",
1783 .metric = 10,
1784 },
1785 {
1786 .hostname = "rt9",
1787 .metric = 30,
1788 },
1789 },
1790 .flags = F_ISIS_TEST_NODE_SR,
1791 },
1792 {
1793 .hostname = "rt7",
1794 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
1795 .level = IS_LEVEL_1,
1796 .router_id = "10.0.255.7",
1797 .protocols = {
1798 .ipv4 = true,
1799 },
1800 .networks = {
1801 "10.0.255.7/32",
1802 },
1803 .adjacencies = {
1804 {
1805 .hostname = "rt4",
1806 .metric = 10,
1807 },
1808 {
1809 .hostname = "rt8",
1810 .metric = 10,
1811 },
1812 {
1813 .hostname = "rt10",
1814 .metric = 20,
1815 },
1816 },
1817 .flags = F_ISIS_TEST_NODE_SR,
1818 },
1819 {
1820 .hostname = "rt8",
1821 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
1822 .level = IS_LEVEL_1,
1823 .router_id = "10.0.255.8",
1824 .protocols = {
1825 .ipv4 = true,
1826 },
1827 .networks = {
1828 "10.0.255.8/32",
1829 },
1830 .adjacencies = {
1831 {
1832 .hostname = "rt5",
1833 .metric = 10,
1834 },
1835 {
1836 .hostname = "rt7",
1837 .metric = 10,
1838 },
1839 {
1840 .hostname = "rt9",
1841 .metric = 10,
1842 },
1843 {
1844 .hostname = "rt11",
1845 .metric = 10,
1846 },
1847 },
1848 .flags = F_ISIS_TEST_NODE_SR,
1849 },
1850 {
1851 .hostname = "rt9",
1852 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x09},
1853 .level = IS_LEVEL_1,
1854 .router_id = "10.0.255.9",
1855 .protocols = {
1856 .ipv4 = true,
1857 },
1858 .networks = {
1859 "10.0.255.9/32",
1860 },
1861 .adjacencies = {
1862 {
1863 .hostname = "rt6",
1864 .metric = 30,
1865 },
1866 {
1867 .hostname = "rt8",
1868 .metric = 10,
1869 },
1870 {
1871 .hostname = "rt12",
1872 .metric = 10,
1873 },
1874 },
1875 .flags = F_ISIS_TEST_NODE_SR,
1876 },
1877 {
1878 .hostname = "rt10",
1879 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0a},
1880 .level = IS_LEVEL_1,
1881 .router_id = "10.0.255.10",
1882 .protocols = {
1883 .ipv4 = true,
1884 },
1885 .networks = {
1886 "10.0.255.10/32",
1887 },
1888 .adjacencies = {
1889 {
1890 .hostname = "rt7",
1891 .metric = 20,
1892 },
1893 {
1894 .hostname = "rt11",
1895 .metric = 10,
1896 },
1897 },
1898 .flags = F_ISIS_TEST_NODE_SR,
1899 },
1900 {
1901 .hostname = "rt11",
1902 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0b},
1903 .level = IS_LEVEL_1,
1904 .router_id = "10.0.255.11",
1905 .protocols = {
1906 .ipv4 = true,
1907 },
1908 .networks = {
1909 "10.0.255.11/32",
1910 },
1911 .adjacencies = {
1912 {
1913 .hostname = "rt8",
1914 .metric = 10,
1915 },
1916 {
1917 .hostname = "rt10",
1918 .metric = 10,
1919 },
1920 {
1921 .hostname = "rt12",
1922 .metric = 10,
1923 },
1924 },
1925 .flags = F_ISIS_TEST_NODE_SR,
1926 },
1927 {
1928 .hostname = "rt12",
1929 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0c},
1930 .level = IS_LEVEL_1,
1931 .router_id = "10.0.255.12",
1932 .protocols = {
1933 .ipv4 = true,
1934 },
1935 .networks = {
1936 "10.0.255.12/32",
1937 },
1938 .adjacencies = {
1939 {
1940 .hostname = "rt9",
1941 .metric = 10,
1942 },
1943 {
1944 .hostname = "rt11",
1945 .metric = 10,
1946 },
1947 },
1948 .flags = F_ISIS_TEST_NODE_SR,
1949 },
1950 },
1951 },
1952 {
1953 .number = 8,
1954 .nodes = {
1955 {
1956 .hostname = "rt1",
1957 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
1958 .level = IS_LEVEL_1,
1959 .router_id = "10.0.255.1",
1960 .protocols = {
1961 .ipv4 = true,
1962 },
1963 .networks = {
1964 "10.0.255.1/32",
1965 },
1966 .adjacencies = {
1967 {
1968 .hostname = "rt2",
1969 .metric = 10,
1970 },
1971 {
1972 .hostname = "rt4",
1973 .metric = 10,
1974 },
1975 },
1976 .flags = F_ISIS_TEST_NODE_SR,
1977 },
1978 {
1979 .hostname = "rt2",
1980 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
1981 .level = IS_LEVEL_1,
1982 .router_id = "10.0.255.2",
1983 .protocols = {
1984 .ipv4 = true,
1985 },
1986 .networks = {
1987 "10.0.255.2/32",
1988 },
1989 .adjacencies = {
1990 {
1991 .hostname = "rt1",
1992 .metric = 10,
1993 },
1994 {
1995 .hostname = "rt3",
1996 .metric = 10,
1997 },
1998 {
1999 .hostname = "rt5",
2000 .metric = 10,
2001 },
2002 },
2003 .flags = F_ISIS_TEST_NODE_SR,
2004 },
2005 {
2006 .hostname = "rt3",
2007 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
2008 .level = IS_LEVEL_1,
2009 .router_id = "10.0.255.3",
2010 .protocols = {
2011 .ipv4 = true,
2012 },
2013 .networks = {
2014 "10.0.255.3/32",
2015 },
2016 .adjacencies = {
2017 {
2018 .hostname = "rt2",
2019 .metric = 10,
2020 },
2021 {
2022 .hostname = "rt6",
2023 .metric = 10,
2024 },
2025 },
2026 .flags = F_ISIS_TEST_NODE_SR,
2027 },
2028 {
2029 .hostname = "rt4",
2030 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
2031 .level = IS_LEVEL_1,
2032 .router_id = "10.0.255.4",
2033 .protocols = {
2034 .ipv4 = true,
2035 },
2036 .networks = {
2037 "10.0.255.4/32",
2038 },
2039 .adjacencies = {
2040 {
2041 .hostname = "rt1",
2042 .metric = 10,
2043 },
2044 {
2045 .hostname = "rt7",
2046 .metric = 10,
2047 },
2048 },
2049 .flags = F_ISIS_TEST_NODE_SR,
2050 },
2051 {
2052 .hostname = "rt5",
2053 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
2054 .level = IS_LEVEL_1,
2055 .router_id = "10.0.255.5",
2056 .protocols = {
2057 .ipv4 = true,
2058 },
2059 .networks = {
2060 "10.0.255.5/32",
2061 },
2062 .adjacencies = {
2063 {
2064 .hostname = "rt2",
2065 .metric = 10,
2066 },
2067 {
2068 .hostname = "rt6",
2069 .metric = 10,
2070 },
2071 {
2072 .hostname = "rt8",
2073 .metric = 10,
2074 },
2075 },
2076 .flags = F_ISIS_TEST_NODE_SR,
2077 },
2078 {
2079 .hostname = "rt6",
2080 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
2081 .level = IS_LEVEL_1,
2082 .router_id = "10.0.255.6",
2083 .protocols = {
2084 .ipv4 = true,
2085 },
2086 .networks = {
2087 "10.0.255.6/32",
2088 },
2089 .adjacencies = {
2090 {
2091 .hostname = "rt3",
2092 .metric = 10,
2093 },
2094 {
2095 .hostname = "rt5",
2096 .metric = 10,
2097 },
2098 },
2099 .flags = F_ISIS_TEST_NODE_SR,
2100 },
2101 {
2102 .hostname = "rt7",
2103 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
2104 .level = IS_LEVEL_1,
2105 .router_id = "10.0.255.7",
2106 .protocols = {
2107 .ipv4 = true,
2108 },
2109 .networks = {
2110 "10.0.255.7/32",
2111 },
2112 .adjacencies = {
2113 {
2114 .hostname = "rt4",
2115 .metric = 10,
2116 },
2117 {
2118 .hostname = "rt10",
2119 .metric = 10,
2120 },
2121 },
2122 .flags = F_ISIS_TEST_NODE_SR,
2123 },
2124 {
2125 .hostname = "rt8",
2126 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
2127 .level = IS_LEVEL_1,
2128 .router_id = "10.0.255.8",
2129 .protocols = {
2130 .ipv4 = true,
2131 },
2132 .networks = {
2133 "10.0.255.8/32",
2134 },
2135 .adjacencies = {
2136 {
2137 .hostname = "rt5",
2138 .metric = 10,
2139 },
2140 {
2141 .hostname = "rt9",
2142 .metric = 10,
2143 },
2144 {
2145 .hostname = "rt11",
2146 .metric = 10,
2147 },
2148 },
2149 .flags = F_ISIS_TEST_NODE_SR,
2150 },
2151 {
2152 .hostname = "rt9",
2153 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x09},
2154 .level = IS_LEVEL_1,
2155 .router_id = "10.0.255.9",
2156 .protocols = {
2157 .ipv4 = true,
2158 },
2159 .networks = {
2160 "10.0.255.9/32",
2161 },
2162 .adjacencies = {
2163 {
2164 .hostname = "rt8",
2165 .metric = 10,
2166 },
2167 {
2168 .hostname = "rt12",
2169 .metric = 10,
2170 },
2171 },
2172 .flags = F_ISIS_TEST_NODE_SR,
2173 },
2174 {
2175 .hostname = "rt10",
2176 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0a},
2177 .level = IS_LEVEL_1,
2178 .router_id = "10.0.255.10",
2179 .protocols = {
2180 .ipv4 = true,
2181 },
2182 .networks = {
2183 "10.0.255.10/32",
2184 },
2185 .adjacencies = {
2186 {
2187 .hostname = "rt7",
2188 .metric = 10,
2189 },
2190 {
2191 .hostname = "rt11",
2192 .metric = 30,
2193 },
2194 },
2195 .flags = F_ISIS_TEST_NODE_SR,
2196 },
2197 {
2198 .hostname = "rt11",
2199 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0b},
2200 .level = IS_LEVEL_1,
2201 .router_id = "10.0.255.11",
2202 .protocols = {
2203 .ipv4 = true,
2204 },
2205 .networks = {
2206 "10.0.255.11/32",
2207 },
2208 .adjacencies = {
2209 {
2210 .hostname = "rt8",
2211 .metric = 10,
2212 },
2213 {
2214 .hostname = "rt10",
2215 .metric = 30,
2216 },
2217 {
2218 .hostname = "rt12",
2219 .metric = 10,
2220 },
2221 },
2222 .flags = F_ISIS_TEST_NODE_SR,
2223 },
2224 {
2225 .hostname = "rt12",
2226 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0c},
2227 .level = IS_LEVEL_1,
2228 .router_id = "10.0.255.12",
2229 .protocols = {
2230 .ipv4 = true,
2231 },
2232 .networks = {
2233 "10.0.255.12/32",
2234 },
2235 .adjacencies = {
2236 {
2237 .hostname = "rt9",
2238 .metric = 10,
2239 },
2240 {
2241 .hostname = "rt11",
2242 .metric = 10,
2243 },
2244 },
2245 .flags = F_ISIS_TEST_NODE_SR,
2246 },
2247 },
2248 },
2249 {
2250 .number = 9,
2251 .nodes = {
2252 {
2253 .hostname = "rt1",
2254 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
2255 .level = IS_LEVEL_1,
2256 .router_id = "10.0.255.1",
2257 .protocols = {
2258 .ipv4 = true,
2259 .ipv6 = true,
2260 },
2261 .networks = {
2262 "10.0.255.1/32",
2263 "2001:db8::1/128",
2264 },
2265 .adjacencies = {
2266 {
2267 .hostname = "rt2",
2268 .metric = 10,
2269 },
2270 {
2271 .hostname = "rt3",
2272 .metric = 10,
2273 },
2274 },
2275 .flags = F_ISIS_TEST_NODE_SR,
2276 },
2277 {
2278 .hostname = "rt2",
2279 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
2280 .level = IS_LEVEL_1,
2281 .router_id = "10.0.255.2",
2282 .protocols = {
2283 .ipv4 = true,
2284 .ipv6 = true,
2285 },
2286 .networks = {
2287 "10.0.255.2/32",
2288 "2001:db8::2/128",
2289 },
2290 .adjacencies = {
2291 {
2292 .hostname = "rt1",
2293 .metric = 10,
2294 },
2295 {
2296 .hostname = "rt4",
2297 .metric = 10,
2298 },
2299 },
2300 .flags = F_ISIS_TEST_NODE_SR,
2301 },
2302 {
2303 .hostname = "rt3",
2304 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
2305 .level = IS_LEVEL_1,
2306 .router_id = "10.0.255.3",
2307 .protocols = {
2308 .ipv4 = true,
2309 .ipv6 = true,
2310 },
2311 .networks = {
2312 "10.0.255.3/32",
2313 "2001:db8::3/128",
2314 },
2315 .adjacencies = {
2316 {
2317 .hostname = "rt1",
2318 .metric = 10,
2319 },
2320 {
2321 .hostname = "rt4",
2322 .metric = 100,
2323 },
2324 },
2325 .flags = F_ISIS_TEST_NODE_SR,
2326 },
2327 {
2328 .hostname = "rt4",
2329 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
2330 .level = IS_LEVEL_1,
2331 .router_id = "10.0.255.4",
2332 .protocols = {
2333 .ipv4 = true,
2334 .ipv6 = true,
2335 },
2336 .networks = {
2337 "10.0.255.4/32",
2338 "2001:db8::4/128",
2339 },
2340 .adjacencies = {
2341 {
2342 .hostname = "rt2",
2343 .metric = 10,
2344 },
2345 {
2346 .hostname = "rt3",
2347 .metric = 100,
2348 },
2349 {
2350 .hostname = "rt5",
2351 .metric = 10,
2352 },
2353 {
2354 .hostname = "rt6",
2355 .metric = 30,
2356 },
2357 {
2358 .hostname = "rt7",
2359 .metric = 30,
2360 },
2361 {
2362 .hostname = "rt8",
2363 .metric = 30,
2364 },
2365 },
2366 .flags = F_ISIS_TEST_NODE_SR,
2367 },
2368 {
2369 .hostname = "rt5",
2370 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
2371 .level = IS_LEVEL_1,
2372 .router_id = "10.0.255.5",
2373 .protocols = {
2374 .ipv4 = true,
2375 .ipv6 = true,
2376 },
2377 .networks = {
2378 "10.0.255.5/32",
2379 "2001:db8::5/128",
2380 },
2381 .adjacencies = {
2382 {
2383 .hostname = "rt4",
2384 .metric = 10,
2385 },
2386 {
2387 .hostname = "rt9",
2388 .metric = 10,
2389 },
2390 },
2391 .flags = F_ISIS_TEST_NODE_SR,
2392 },
2393 {
2394 .hostname = "rt6",
2395 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
2396 .level = IS_LEVEL_1,
2397 .router_id = "10.0.255.6",
2398 .protocols = {
2399 .ipv4 = true,
2400 .ipv6 = true,
2401 },
2402 .networks = {
2403 "10.0.255.6/32",
2404 "2001:db8::6/128",
2405 },
2406 .adjacencies = {
2407 {
2408 .hostname = "rt4",
2409 .metric = 30,
2410 },
2411 {
2412 .hostname = "rt9",
2413 .metric = 10,
2414 },
2415 },
2416 .flags = F_ISIS_TEST_NODE_SR,
2417 },
2418 {
2419 .hostname = "rt7",
2420 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
2421 .level = IS_LEVEL_1,
2422 .router_id = "10.0.255.7",
2423 .protocols = {
2424 .ipv4 = true,
2425 .ipv6 = true,
2426 },
2427 .networks = {
2428 "10.0.255.7/32",
2429 "2001:db8::7/128",
2430 },
2431 .adjacencies = {
2432 {
2433 .hostname = "rt4",
2434 .metric = 30,
2435 },
2436 {
2437 .hostname = "rt9",
2438 .metric = 10,
2439 },
2440 },
2441 .flags = F_ISIS_TEST_NODE_SR,
2442 },
2443 {
2444 .hostname = "rt8",
2445 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
2446 .level = IS_LEVEL_1,
2447 .router_id = "10.0.255.8",
2448 .protocols = {
2449 .ipv4 = true,
2450 .ipv6 = true,
2451 },
2452 .networks = {
2453 "10.0.255.8/32",
2454 "2001:db8::8/128",
2455 },
2456 .adjacencies = {
2457 {
2458 .hostname = "rt4",
2459 .metric = 30,
2460 },
2461 {
2462 .hostname = "rt9",
2463 .metric = 10,
2464 },
2465 },
2466 .flags = F_ISIS_TEST_NODE_SR,
2467 },
2468 {
2469 .hostname = "rt9",
2470 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x09},
2471 .level = IS_LEVEL_1,
2472 .router_id = "10.0.255.9",
2473 .protocols = {
2474 .ipv4 = true,
2475 .ipv6 = true,
2476 },
2477 .networks = {
2478 "10.0.255.9/32",
2479 "2001:db8::9/128",
2480 },
2481 .adjacencies = {
2482 {
2483 .hostname = "rt5",
2484 .metric = 10,
2485 },
2486 {
2487 .hostname = "rt6",
2488 .metric = 10,
2489 },
2490 {
2491 .hostname = "rt7",
2492 .metric = 10,
2493 },
2494 {
2495 .hostname = "rt8",
2496 .metric = 10,
2497 },
2498 },
2499 .flags = F_ISIS_TEST_NODE_SR,
2500 },
2501 },
2502 },
2503 {
2504 .number = 10,
2505 .nodes = {
2506 {
2507 .hostname = "rt1",
2508 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
2509 .level = IS_LEVEL_1,
2510 .router_id = "10.0.255.1",
2511 .protocols = {
2512 .ipv4 = true,
2513 .ipv6 = true,
2514 },
2515 .networks = {
2516 "10.0.255.1/32",
2517 "2001:db8::1/128",
2518 },
2519 .adjacencies = {
2520 {
2521 .hostname = "rt2",
2522 .metric = 10,
2523 },
2524 {
2525 .hostname = "rt3",
2526 .metric = 20,
2527 },
2528 {
2529 .hostname = "rt4",
2530 .metric = 20,
2531 },
2532 },
2533 .flags = F_ISIS_TEST_NODE_SR,
2534 },
2535 {
2536 .hostname = "rt2",
2537 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
2538 .level = IS_LEVEL_1,
2539 .router_id = "10.0.255.2",
2540 .protocols = {
2541 .ipv4 = true,
2542 .ipv6 = true,
2543 },
2544 .networks = {
2545 "10.0.255.2/32",
2546 "2001:db8::2/128",
2547 },
2548 .adjacencies = {
2549 {
2550 .hostname = "rt1",
2551 .metric = 10,
2552 },
2553 {
2554 .hostname = "rt5",
2555 .metric = 10,
2556 },
2557 },
2558 .flags = F_ISIS_TEST_NODE_SR,
2559 },
2560 {
2561 .hostname = "rt3",
2562 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
2563 .level = IS_LEVEL_1,
2564 .router_id = "10.0.255.3",
2565 .srgb = {
2566 .lower_bound = 20000,
2567 .range_size = 8000,
2568 },
2569 .protocols = {
2570 .ipv4 = true,
2571 .ipv6 = true,
2572 },
2573 .networks = {
2574 "10.0.255.3/32",
2575 "2001:db8::3/128",
2576 },
2577 .adjacencies = {
2578 {
2579 .hostname = "rt1",
2580 .metric = 20,
2581 },
2582 {
2583 .hostname = "rt6",
2584 .metric = 10,
2585 },
2586 },
2587 .flags = F_ISIS_TEST_NODE_SR,
2588 },
2589 {
2590 .hostname = "rt4",
2591 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
2592 .level = IS_LEVEL_1,
2593 .router_id = "10.0.255.4",
2594 .protocols = {
2595 .ipv4 = true,
2596 .ipv6 = true,
2597 },
2598 .networks = {
2599 "10.0.255.4/32",
2600 "2001:db8::4/128",
2601 },
2602 .adjacencies = {
2603 {
2604 .hostname = "rt1",
2605 .metric = 20,
2606 },
2607 {
2608 .hostname = "rt7",
2609 .metric = 10,
2610 },
2611 },
2612 .flags = F_ISIS_TEST_NODE_SR,
2613 },
2614 {
2615 .hostname = "rt5",
2616 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
2617 .level = IS_LEVEL_1,
2618 .router_id = "10.0.255.5",
2619 .protocols = {
2620 .ipv4 = true,
2621 .ipv6 = true,
2622 },
2623 .networks = {
2624 "10.0.255.5/32",
2625 "2001:db8::5/128",
2626 },
2627 .adjacencies = {
2628 {
2629 .hostname = "rt2",
2630 .metric = 10,
2631 },
2632 {
2633 .hostname = "rt8",
2634 .metric = 10,
2635 },
2636 },
2637 .flags = F_ISIS_TEST_NODE_SR,
2638 },
2639 {
2640 .hostname = "rt6",
2641 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
2642 .level = IS_LEVEL_1,
2643 .router_id = "10.0.255.6",
2644 .protocols = {
2645 .ipv4 = true,
2646 .ipv6 = true,
2647 },
2648 .networks = {
2649 "10.0.255.6/32",
2650 "2001:db8::6/128",
2651 },
2652 .adjacencies = {
2653 {
2654 .hostname = "rt3",
2655 .metric = 10,
2656 },
2657 {
2658 .hostname = "rt8",
2659 .metric = 50,
2660 },
2661 },
2662 .flags = F_ISIS_TEST_NODE_SR,
2663 },
2664 {
2665 .hostname = "rt7",
2666 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
2667 .level = IS_LEVEL_1,
2668 .router_id = "10.0.255.7",
2669 .protocols = {
2670 .ipv4 = true,
2671 .ipv6 = true,
2672 },
2673 .networks = {
2674 "10.0.255.7/32",
2675 "2001:db8::7/128",
2676 },
2677 .adjacencies = {
2678 {
2679 .hostname = "rt4",
2680 .metric = 10,
2681 },
2682 {
2683 .hostname = "rt8",
2684 .metric = 50,
2685 },
2686 },
2687 .flags = F_ISIS_TEST_NODE_SR,
2688 },
2689 {
2690 .hostname = "rt8",
2691 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
2692 .level = IS_LEVEL_1,
2693 .router_id = "10.0.255.8",
2694 .protocols = {
2695 .ipv4 = true,
2696 .ipv6 = true,
2697 },
2698 .networks = {
2699 "10.0.255.8/32",
2700 "2001:db8::8/128",
2701 },
2702 .adjacencies = {
2703 {
2704 .hostname = "rt5",
2705 .metric = 10,
2706 },
2707 {
2708 .hostname = "rt6",
2709 .metric = 50,
2710 },
2711 {
2712 .hostname = "rt7",
2713 .metric = 50,
2714 },
2715 },
2716 .flags = F_ISIS_TEST_NODE_SR,
2717 },
2718 },
2719 },
2720 {
2721 .number = 11,
2722 .nodes = {
2723 {
2724 .hostname = "rt1",
2725 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
2726 .level = IS_LEVEL_1,
2727 .router_id = "10.0.255.1",
2728 .protocols = {
2729 .ipv4 = true,
2730 .ipv6 = true,
2731 },
2732 .networks = {
2733 "10.0.255.1/32",
2734 "2001:db8::1/128",
2735 },
2736 .adjacencies = {
2737 {
2738 .hostname = "rt2",
2739 .pseudonode_id = 1,
2740 .metric = 10,
2741 },
2742 },
2743 .flags = F_ISIS_TEST_NODE_SR,
2744 },
2745 {
2746 .hostname = "rt2",
2747 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
2748 .level = IS_LEVEL_1,
2749 .router_id = "10.0.255.2",
2750 .protocols = {
2751 .ipv4 = true,
2752 .ipv6 = true,
2753 },
2754 .networks = {
2755 "10.0.255.2/32",
2756 "2001:db8::2/128",
2757 },
2758 .adjacencies = {
2759 {
2760 .hostname = "rt2",
2761 .pseudonode_id = 1,
2762 .metric = 50,
2763 },
2764 {
2765 .hostname = "rt4",
2766 .metric = 10,
2767 },
2768 },
2769 .flags = F_ISIS_TEST_NODE_SR,
2770 },
2771 {
2772 .hostname = "rt3",
2773 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
2774 .level = IS_LEVEL_1,
2775 .router_id = "10.0.255.3",
2776 .protocols = {
2777 .ipv4 = true,
2778 .ipv6 = true,
2779 },
2780 .networks = {
2781 "10.0.255.3/32",
2782 "2001:db8::3/128",
2783 },
2784 .adjacencies = {
2785 {
2786 .hostname = "rt2",
2787 .pseudonode_id = 1,
2788 .metric = 10,
2789 },
2790 {
2791 .hostname = "rt5",
2792 .metric = 10,
2793 },
2794 },
2795 .flags = F_ISIS_TEST_NODE_SR,
2796 },
2797 {
2798 .hostname = "rt4",
2799 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
2800 .level = IS_LEVEL_1,
2801 .router_id = "10.0.255.4",
2802 .protocols = {
2803 .ipv4 = true,
2804 .ipv6 = true,
2805 },
2806 .networks = {
2807 "10.0.255.4/32",
2808 "2001:db8::4/128",
2809 },
2810 .adjacencies = {
2811 {
2812 .hostname = "rt2",
2813 .metric = 10,
2814 },
2815 {
2816 .hostname = "rt5",
2817 .metric = 10,
2818 },
2819 {
2820 .hostname = "rt6",
2821 .metric = 10,
2822 },
2823 },
2824 .flags = F_ISIS_TEST_NODE_SR,
2825 },
2826 {
2827 .hostname = "rt5",
2828 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
2829 .level = IS_LEVEL_1,
2830 .router_id = "10.0.255.5",
2831 .protocols = {
2832 .ipv4 = true,
2833 .ipv6 = true,
2834 },
2835 .networks = {
2836 "10.0.255.5/32",
2837 "2001:db8::5/128",
2838 },
2839 .adjacencies = {
2840 {
2841 .hostname = "rt3",
2842 .metric = 10,
2843 },
2844 {
2845 .hostname = "rt4",
2846 .metric = 10,
2847 },
2848 {
2849 .hostname = "rt6",
2850 .metric = 10,
2851 },
2852 },
2853 .flags = F_ISIS_TEST_NODE_SR,
2854 },
2855 {
2856 .hostname = "rt6",
2857 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
2858 .level = IS_LEVEL_1,
2859 .router_id = "10.0.255.6",
2860 .protocols = {
2861 .ipv4 = true,
2862 .ipv6 = true,
2863 },
2864 .networks = {
2865 "10.0.255.6/32",
2866 "2001:db8::6/128",
2867 },
2868 .adjacencies = {
2869 {
2870 .hostname = "rt4",
2871 .metric = 10,
2872 },
2873 {
2874 .hostname = "rt5",
2875 .metric = 10,
2876 },
2877 },
2878 .flags = F_ISIS_TEST_NODE_SR,
2879 },
2880 {
2881 .hostname = "rt2",
2882 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
2883 .pseudonode_id = 1,
2884 .level = IS_LEVEL_1,
2885 .adjacencies = {
2886 {
2887 .hostname = "rt1",
2888 .metric = 0,
2889 },
2890 {
2891 .hostname = "rt2",
2892 .metric = 0,
2893 },
2894 {
2895 .hostname = "rt3",
2896 .metric = 0,
2897 },
2898 },
2899 },
2900 },
2901 },
2902 {
2903 .number = 12,
2904 .nodes = {
2905 {
2906 .hostname = "rt1",
2907 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
2908 .level = IS_LEVEL_1,
2909 .router_id = "10.0.255.1",
2910 .protocols = {
2911 .ipv4 = true,
2912 },
2913 .networks = {
2914 "10.0.255.1/32",
2915 },
2916 .adjacencies = {
2917 {
2918 .hostname = "rt2",
2919 .metric = 10,
2920 },
2921 {
2922 .hostname = "rt3",
2923 .metric = 10,
2924 },
2925 },
2926 .flags = F_ISIS_TEST_NODE_SR,
2927 },
2928 {
2929 .hostname = "rt2",
2930 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
2931 .level = IS_LEVEL_1,
2932 .router_id = "10.0.255.2",
2933 .protocols = {
2934 .ipv4 = true,
2935 },
2936 .networks = {
2937 "10.0.255.2/32",
2938 },
2939 .adjacencies = {
2940 {
2941 .hostname = "rt1",
2942 .metric = 10,
2943 },
2944 {
2945 .hostname = "rt4",
2946 .metric = 10,
2947 },
2948 },
2949 .flags = F_ISIS_TEST_NODE_SR,
2950 },
2951 {
2952 .hostname = "rt3",
2953 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
2954 .level = IS_LEVEL_1,
2955 .router_id = "10.0.255.3",
2956 .protocols = {
2957 .ipv4 = true,
2958 },
2959 .networks = {
2960 "10.0.255.3/32",
2961 },
2962 .adjacencies = {
2963 {
2964 .hostname = "rt1",
2965 .metric = 10,
2966 },
2967 {
2968 .hostname = "rt5",
2969 .metric = 10,
2970 },
2971 },
2972 .flags = F_ISIS_TEST_NODE_SR,
2973 },
2974 {
2975 .hostname = "rt4",
2976 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
2977 .level = IS_LEVEL_1,
2978 .router_id = "10.0.255.4",
2979 .protocols = {
2980 .ipv4 = true,
2981 },
2982 .networks = {
2983 "10.0.255.4/32",
2984 },
2985 .adjacencies = {
2986 {
2987 .hostname = "rt2",
2988 .metric = 10,
2989 },
2990 {
2991 .hostname = "rt6",
2992 .metric = 10,
2993 },
2994 },
2995 .flags = F_ISIS_TEST_NODE_SR,
2996 },
2997 {
2998 .hostname = "rt5",
2999 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
3000 .level = IS_LEVEL_1,
3001 .router_id = "10.0.255.5",
3002 .protocols = {
3003 .ipv4 = true,
3004 },
3005 .networks = {
3006 "10.0.255.5/32",
3007 },
3008 .adjacencies = {
3009 {
3010 .hostname = "rt3",
3011 .metric = 400,
3012 },
3013 {
3014 .hostname = "rt7",
3015 .metric = 10,
3016 },
3017 },
3018 .flags = F_ISIS_TEST_NODE_SR,
3019 },
3020 {
3021 .hostname = "rt6",
3022 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
3023 .level = IS_LEVEL_1,
3024 .router_id = "10.0.255.6",
3025 .protocols = {
3026 .ipv4 = true,
3027 },
3028 .networks = {
3029 "10.0.255.6/32",
3030 },
3031 .adjacencies = {
3032 {
3033 .hostname = "rt4",
3034 .metric = 10,
3035 },
3036 {
3037 .hostname = "rt8",
3038 .metric = 10,
3039 },
3040 },
3041 .flags = F_ISIS_TEST_NODE_SR,
3042 },
3043 {
3044 .hostname = "rt7",
3045 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
3046 .level = IS_LEVEL_1,
3047 .router_id = "10.0.255.7",
3048 .protocols = {
3049 .ipv4 = true,
3050 },
3051 .networks = {
3052 "10.0.255.7/32",
3053 },
3054 .adjacencies = {
3055 {
3056 .hostname = "rt5",
3057 .metric = 200,
3058 },
3059 {
3060 .hostname = "rt8",
3061 .metric = 100,
3062 },
3063 {
3064 .hostname = "rt9",
3065 .metric = 10,
3066 },
3067 },
3068 .flags = F_ISIS_TEST_NODE_SR,
3069 },
3070 {
3071 .hostname = "rt8",
3072 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x08},
3073 .level = IS_LEVEL_1,
3074 .router_id = "10.0.255.8",
3075 .protocols = {
3076 .ipv4 = true,
3077 },
3078 .networks = {
3079 "10.0.255.8/32",
3080 },
3081 .adjacencies = {
3082 {
3083 .hostname = "rt6",
3084 .metric = 10,
3085 },
3086 {
3087 .hostname = "rt7",
3088 .metric = 100,
3089 },
3090 {
3091 .hostname = "rt10",
3092 .metric = 10,
3093 },
3094 },
3095 .flags = F_ISIS_TEST_NODE_SR,
3096 },
3097 {
3098 .hostname = "rt9",
3099 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x09},
3100 .level = IS_LEVEL_1,
3101 .router_id = "10.0.255.9",
3102 .protocols = {
3103 .ipv4 = true,
3104 },
3105 .networks = {
3106 "10.0.255.9/32",
3107 },
3108 .adjacencies = {
3109 {
3110 .hostname = "rt7",
3111 .metric = 10,
3112 },
3113 },
3114 .flags = F_ISIS_TEST_NODE_SR,
3115 },
3116 {
3117 .hostname = "rt10",
3118 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x0a},
3119 .level = IS_LEVEL_1,
3120 .router_id = "10.0.255.10",
3121 .protocols = {
3122 .ipv4 = true,
3123 },
3124 .networks = {
3125 "10.0.255.10/32",
3126 },
3127 .adjacencies = {
3128 {
3129 .hostname = "rt8",
3130 .metric = 10,
3131 },
3132 },
3133 .flags = F_ISIS_TEST_NODE_SR,
3134 },
3135 },
3136 },
3137 {
3138 .number = 13,
3139 .nodes = {
3140 {
3141 .hostname = "rt1",
3142 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
3143 .level = IS_LEVEL_1,
3144 .router_id = "10.0.255.1",
3145 .protocols = {
3146 .ipv4 = true,
3147 },
3148 .networks = {
3149 "10.0.255.1/32",
3150 },
3151 .adjacencies = {
3152 {
3153 .hostname = "rt2",
3154 .metric = 10,
3155 },
3156 {
3157 .hostname = "rt3",
3158 .metric = 10,
3159 },
3160 },
3161 .flags = F_ISIS_TEST_NODE_SR,
3162 },
3163 {
3164 .hostname = "rt2",
3165 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
3166 .level = IS_LEVEL_1,
3167 .router_id = "10.0.255.2",
3168 .protocols = {
3169 .ipv4 = true,
3170 },
3171 .networks = {
3172 "10.0.255.2/32",
3173 },
3174 .adjacencies = {
3175 {
3176 .hostname = "rt1",
3177 .metric = 10,
3178 },
3179 {
3180 .hostname = "rt4",
3181 .metric = 10,
3182 },
3183 },
3184 .flags = F_ISIS_TEST_NODE_SR,
3185 },
3186 {
3187 .hostname = "rt3",
3188 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
3189 .level = IS_LEVEL_1,
3190 .router_id = "10.0.255.3",
3191 .protocols = {
3192 .ipv4 = true,
3193 },
3194 .networks = {
3195 "10.0.255.3/32",
3196 },
3197 .adjacencies = {
3198 {
3199 .hostname = "rt1",
3200 .metric = 10,
3201 },
3202 {
3203 .hostname = "rt4",
3204 .metric = 10,
3205 },
3206 {
3207 .hostname = "rt5",
3208 .metric = 10,
3209 },
3210 {
3211 .hostname = "rt6",
3212 .metric = 10,
3213 },
3214 },
3215 .flags = F_ISIS_TEST_NODE_SR,
3216 },
3217 {
3218 .hostname = "rt4",
3219 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
3220 .level = IS_LEVEL_1,
3221 .router_id = "10.0.255.4",
3222 .protocols = {
3223 .ipv4 = true,
3224 },
3225 .networks = {
3226 "10.0.255.4/32",
3227 },
3228 .adjacencies = {
3229 {
3230 .hostname = "rt2",
3231 .metric = 10,
3232 },
3233 {
3234 .hostname = "rt3",
3235 .metric = 10,
3236 },
3237 {
3238 .hostname = "rt5",
3239 .metric = 100,
3240 },
3241 },
3242 .flags = F_ISIS_TEST_NODE_SR,
3243 },
3244 {
3245 .hostname = "rt5",
3246 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
3247 .level = IS_LEVEL_1,
3248 .router_id = "10.0.255.5",
3249 .protocols = {
3250 .ipv4 = true,
3251 },
3252 .networks = {
3253 "10.0.255.5/32",
3254 },
3255 .adjacencies = {
3256 {
3257 .hostname = "rt3",
3258 .metric = 10,
3259 },
3260 {
3261 .hostname = "rt4",
3262 .metric = 100,
3263 },
3264 {
3265 .hostname = "rt7",
3266 .metric = 10,
3267 },
3268 },
3269 .flags = F_ISIS_TEST_NODE_SR,
3270 },
3271 {
3272 .hostname = "rt6",
3273 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x06},
3274 .level = IS_LEVEL_1,
3275 .router_id = "10.0.255.6",
3276 .protocols = {
3277 .ipv4 = true,
3278 },
3279 .networks = {
3280 "10.0.255.6/32",
3281 },
3282 .adjacencies = {
3283 {
3284 .hostname = "rt3",
3285 .metric = 10,
3286 },
3287 {
3288 .hostname = "rt7",
3289 .metric = 10,
3290 },
3291 },
3292 .flags = F_ISIS_TEST_NODE_SR,
3293 },
3294 {
3295 .hostname = "rt7",
3296 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x07},
3297 .level = IS_LEVEL_1,
3298 .router_id = "10.0.255.7",
3299 .protocols = {
3300 .ipv4 = true,
3301 },
3302 .networks = {
3303 "10.0.255.7/32",
3304 },
3305 .adjacencies = {
3306 {
3307 .hostname = "rt5",
3308 .metric = 10,
3309 },
3310 {
3311 .hostname = "rt6",
3312 .metric = 10,
3313 },
3314 },
3315 .flags = F_ISIS_TEST_NODE_SR,
3316 },
3317 },
3318 },
c8a4f331
RW
3319 {
3320 .number = 14,
3321 .nodes = {
3322 {
3323 .hostname = "rt1",
3324 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
3325 .level = IS_LEVEL_1,
3326 .router_id = "10.0.255.1",
3327 .protocols = {
3328 .ipv4 = true,
3329 .ipv6 = true,
3330 },
3331 .networks = {
3332 "10.0.255.1/32",
3333 "2001:db8::1/128",
3334 },
3335 .adjacencies = {
3336 {
3337 .hostname = "rt1",
3338 .pseudonode_id = 1,
3339 .metric = 10,
3340 },
3341 {
3342 .hostname = "rt2",
3343 .metric = 10,
3344 },
3345 },
3346 },
3347 {
3348 .hostname = "rt2",
3349 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02},
3350 .level = IS_LEVEL_1,
3351 .router_id = "10.0.255.2",
3352 .protocols = {
3353 .ipv4 = true,
3354 .ipv6 = true,
3355 },
3356 .networks = {
3357 "10.0.255.2/32",
3358 "2001:db8::2/128",
3359 },
3360 .adjacencies = {
3361 {
3362 .hostname = "rt1",
3363 .metric = 20,
3364 },
3365 {
3366 .hostname = "rt3",
3367 .metric = 10,
3368 },
3369 },
3370 },
3371 {
3372 .hostname = "rt3",
3373 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x03},
3374 .level = IS_LEVEL_1,
3375 .router_id = "10.0.255.3",
3376 .protocols = {
3377 .ipv4 = true,
3378 .ipv6 = true,
3379 },
3380 .networks = {
3381 "10.0.255.3/32",
3382 "2001:db8::3/128",
3383 },
3384 .adjacencies = {
3385 {
3386 .hostname = "rt1",
3387 .pseudonode_id = 1,
3388 .metric = 10,
3389 },
3390 {
3391 .hostname = "rt2",
3392 .metric = 10,
3393 },
3394 {
3395 .hostname = "rt5",
3396 .metric = 50,
3397 },
3398 },
3399 },
3400 {
3401 .hostname = "rt4",
3402 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x04},
3403 .level = IS_LEVEL_1,
3404 .router_id = "10.0.255.4",
3405 .protocols = {
3406 .ipv4 = true,
3407 .ipv6 = true,
3408 },
3409 .networks = {
3410 "10.0.255.4/32",
3411 "2001:db8::4/128",
3412 },
3413 .adjacencies = {
3414 {
3415 .hostname = "rt1",
3416 .pseudonode_id = 1,
3417 .metric = 10,
3418 },
3419 {
3420 .hostname = "rt5",
3421 .metric = 10,
3422 },
3423 },
3424 },
3425 {
3426 .hostname = "rt5",
3427 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x05},
3428 .level = IS_LEVEL_1,
3429 .router_id = "10.0.255.5",
3430 .protocols = {
3431 .ipv4 = true,
3432 .ipv6 = true,
3433 },
3434 .networks = {
3435 "10.0.255.5/32",
3436 "2001:db8::5/128",
3437 },
3438 .adjacencies = {
3439 {
3440 .hostname = "rt4",
3441 .metric = 10,
3442 },
3443 {
3444 .hostname = "rt3",
3445 .metric = 50,
3446 },
3447 },
3448 },
3449 {
3450 .hostname = "rt1",
3451 .sysid = {0x00, 0x00, 0x00, 0x00, 0x00, 0x01},
3452 .pseudonode_id = 1,
3453 .level = IS_LEVEL_1,
3454 .adjacencies = {
3455 {
3456 .hostname = "rt1",
3457 .metric = 0,
3458 },
3459 {
3460 .hostname = "rt3",
3461 .metric = 0,
3462 },
3463 {
3464 .hostname = "rt4",
3465 .metric = 0,
3466 },
3467 },
3468 },
3469 },
3470 },
52a7c25e
RW
3471 {
3472 /* sentinel */
3473 },
3474};