Skip to content

Commit

Permalink
Source ip addresses from Netbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Nov 25, 2023
1 parent ba2242f commit 9e65c5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions group_vars/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,12 @@ routers:

fastd_secret: "c08f6ce77b2ec0d4a8f4f448c2b0c13ce7973fc7039d0fce11f89fe50433f844"
fastd_peer_public: "8a486f7b27324cd41761636e40b3bb6e9c1b183588cc997af93c593fb15d4667"

client_ipv4_container: "10.0.0.0/8"
client_bridge_interface: "{{ interfaces | selectattr('name', 'equalto', 'br0') | first }}"
gateway_ipv4_address: >
{{ client_bridge_interface.ip_addresses |
map(attribute='address') |
ansible.utils.ipv4 |
ansible.utils.ipaddr(client_ipv4_container)
}}
3 changes: 0 additions & 3 deletions host_vars/supernode11.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion netbox_inventory.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
plugin: netbox.netbox.nb_inventory
api_endpoint: https://netbox.freifunk-duesseldorf.de/
validate_certs: True
config_context: False
config_context: True
flatten_config_context: True
interfaces: True

query_filters:
- role: supernode-v2
Expand Down

0 comments on commit 9e65c5d

Please sign in to comment.