supernode_pkg_vars.yml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. supernode_mesh_mac: 96:48:76:b5:a3:61
  2. supernode_mesh_ipv4: 10.42.0.1
  3. supernode_mesh_netmask_ipv4: 255.255.0.0
  4. supernode_bat_macaddress: f2:43:13:c0:d7:06
  5. supernode_mesh_net_cidr: 10.42.0.0/16
  6. supernode_mesh_ipv6: fdfe:7808:502a:4eb7::1/64
  7. supernode_mesh_net_ipv6: fdfe:7808:502a:4eb7::/64
  8. supernode_local_ip: "{{ansible_default_ipv4.address}}"
  9. supernode_mesh_backbones:
  10. - name: test-node02
  11. comment: Non existant mesh backbone
  12. remote_ip: 192.168.0.43
  13. supernode_uplinks:
  14. - name: ffanon-uplink1
  15. comment: Non existant uplink
  16. address: 172.16.0.1
  17. dstaddr: 172.16.0.2
  18. netmask: 255.255.255.252
  19. endpoint: 192.168.0.23
  20. address_v6: fd0a:1c06:d97c:e88d::2/64
  21. fastd_instances:
  22. - name: do00
  23. bind: any:10000 interface "eth0" default ipv4
  24. interface: tap00
  25. loglevel: info
  26. mode: tap
  27. method: salsa2012+umac
  28. peer_limit: 125
  29. mtu: 1280
  30. status_socket: /tmp/fastd00.sock
  31. on_up_script: |
  32. ip link set up $INTERFACE
  33. batctl if add $INTERFACE
  34. on_verify_script: |
  35. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  36. - name: do01
  37. bind: any:10001 interface "eth0" default ipv4
  38. interface: tap01
  39. loglevel: info
  40. mode: tap
  41. method: salsa2012+umac
  42. peer_limit: 125
  43. mtu: 1280
  44. status_socket: /tmp/fastd01.sock
  45. on_up_script: |
  46. ip link set up $INTERFACE
  47. batctl if add $INTERFACE
  48. on_verify_script: |
  49. /etc/fastd/fastd-blacklist.sh $PEER_KEY
  50. fastd_instances_secret:
  51. - name: do00
  52. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  53. - name: do01
  54. secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
  55. bird_router_id: "{{supernode_mesh_ipv4}}"
  56. bird_templates:
  57. - header: bgp ibgp
  58. content: |
  59. local as 65403;
  60. import all;
  61. export all;
  62. next hop self;
  63. multihop 64;
  64. bird_protocols:
  65. - header: kernel
  66. content: |
  67. device routes;
  68. import all;
  69. export all;
  70. kernel table 42;
  71. - header: device
  72. content: scan time 8;
  73. - header: direct
  74. content: interface "*";
  75. - header: bgp ffrg11 from ibgp
  76. content: |
  77. source address 10.0.6.6;
  78. neighbor 10.0.6.5 as 65079;
  79. default bgp_med 2;
  80. - header: protocol bgp ffrg25 from ibgp
  81. content: |
  82. source address 10.0.6.2;
  83. neighbor 10.0.6.1 as 65079;
  84. default bgp_med 1;
  85. - header: bgp node012 from ibgp
  86. content: |
  87. source address 10.233.8.1;
  88. neighbor 10.233.24.1 as 65403;
  89. default bgp_med 4;
  90. - header: bgp node021 from ibgp
  91. content: |
  92. source address 10.233.8.1;
  93. neighbor 10.233.16.1 as 65403;
  94. default bgp_med 3;
  95. - header: bgp node022 from ibgp
  96. content: |
  97. source address 10.233.8.1;
  98. neighbor 10.233.32.1 as 65403;
  99. default bgp_med 4;
  100. - header: bgp map from ibgp
  101. content: |
  102. source address 10.233.8.1;
  103. neighbor 10.233.0.1 as 65403;
  104. default bgp_med 4;
  105. bird6_router_id: "{{supernode_mesh_ipv4}}"
  106. bird6_templates:
  107. - header: bgp ibgp
  108. content: |
  109. source address 2a03:2260:50:5::8;
  110. local as 65403;
  111. import all;
  112. export all;
  113. next hop self;
  114. direct;
  115. gateway direct;
  116. - header: bgp uplink
  117. content: |
  118. local as 65403;
  119. import all;
  120. export all;
  121. next hop self;
  122. direct;
  123. multihop 64;
  124. bird6_protocols:
  125. - header: static uplink_hostroute
  126. content: |
  127. import all;
  128. export all;
  129. - header: direct
  130. content: interface "*";
  131. - header: kernel
  132. content: |
  133. persist;
  134. device routes;
  135. scan time 20;
  136. import all;
  137. export all;
  138. kernel table 42;
  139. - header: device
  140. content: scan time 10;
  141. - header: bgp ffrg11 from uplink
  142. content: |
  143. neighbor 2a03:2260:50:5b::1 as 65079;
  144. default bgp_med 2;
  145. - header: bgp ffrg25 from uplink
  146. content: |
  147. neighbor 2a03:2260:50:5a::1 as 65079;
  148. default bgp_med 1;
  149. - header: bgp node012 from ibgp
  150. content: |
  151. neighbor 2a03:2260:50:5::24 as 65403;
  152. default bgp_med 4;
  153. - header: bgp node021 from ibgp
  154. content: |
  155. neighbor 2a03:2260:50:5::16 as 65403;
  156. default bgp_med 3;
  157. - header: bgp node022 from ibgp
  158. content: |
  159. neighbor 2a03:2260:50:5::32 as 65403;
  160. default bgp_med 4;
  161. - header: bgp map from ibgp
  162. content: |
  163. neighbor 2a03:2260:50:5::1 as 65403;
  164. default bgp_med 4;
  165. supernode_interfaces:
  166. - name: eth0
  167. auto: true
  168. proto: inet
  169. type: dhcp