config.yaml.j2 859 B

123456789101112131415161718192021
  1. ---
  2. log_level: info
  3. device_name: {{ item.interface }}
  4. post_up_commands:
  5. - "/usr/sbin/ip addr add dev {{ item.interface }} {{ item.prefix }}/127"
  6. - "/usr/sbin/ip route add {{ item.prefix }}/64 dev {{ item.interface }} via {{ item.prefix }}1"
  7. nodes:
  8. - mac: {{ item.mac }}
  9. addresses: [{{ item.prefix }}1]
  10. nodes:
  11. - addresses: [{{ item.prefix }}2]
  12. nodes:
  13. - addresses: [{{ item.prefix }}31, {{ item.prefix }}32]
  14. nodes:
  15. - addresses: [{{ item.prefix }}41, {{ item.prefix }}42, {{ item.prefix }}43]
  16. nodes:
  17. - addresses: [{{ item.prefix }}51, {{ item.prefix }}52, {{ item.prefix }}53, {{ item.prefix }}54]
  18. nodes:
  19. - addresses: [{{ item.prefix }}61]
  20. - addresses: [{{ item.prefix }}71, {{ item.prefix }}72]