debian: get all data from netbox
This commit is contained in:
parent
d334e9aafa
commit
eed2308609
|
@ -1,11 +1,11 @@
|
||||||
plugin: netbox.netbox.nb_inventory
|
plugin: netbox.netbox.nb_inventory
|
||||||
fetch_all: no
|
interfaces: true
|
||||||
interfaces: yes
|
config_context: true
|
||||||
|
flatten_config_context: true
|
||||||
|
flatten_custom_fields: true
|
||||||
|
flatten_local_context_data: true
|
||||||
|
fetch_all: false
|
||||||
plurals: false
|
plurals: false
|
||||||
group_by:
|
|
||||||
- location
|
|
||||||
- rack
|
|
||||||
- tag
|
|
||||||
device_query_filters:
|
device_query_filters:
|
||||||
- has_primary_ip: true
|
- has_primary_ip: true
|
||||||
query_filters:
|
query_filters:
|
||||||
|
|
|
@ -2,14 +2,14 @@ frr defaults datacenter
|
||||||
service integrated-vtysh-config
|
service integrated-vtysh-config
|
||||||
log syslog
|
log syslog
|
||||||
|
|
||||||
router bgp {{ hostvars[inventory_hostname].custom_fields.asn.asn }}
|
router bgp {{ asn.asn }}
|
||||||
bgp bestpath as-path multipath-relax
|
bgp bestpath as-path multipath-relax
|
||||||
|
|
||||||
neighbor fabric peer-group
|
neighbor fabric peer-group
|
||||||
neighbor fabric remote-as external
|
neighbor fabric remote-as external
|
||||||
neighbor fabric capability extended-nexthop
|
neighbor fabric capability extended-nexthop
|
||||||
|
|
||||||
{% for iface in hostvars[inventory_hostname].interfaces | selectattr('name', 'match', '^lan') %}
|
{% for iface in interfaces | selectattr('name', 'match', '^lan') %}
|
||||||
neighbor {{ iface.name }} interface peer-group fabric
|
neighbor {{ iface.name }} interface peer-group fabric
|
||||||
neighbor {{ iface.name }} bfd
|
neighbor {{ iface.name }} bfd
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue