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