Initial commit of AthonetTools
This commit is contained in:
34
templates/ansible_templates/aio_networking.yaml.j2
Normal file
34
templates/ansible_templates/aio_networking.yaml.j2
Normal file
@@ -0,0 +1,34 @@
|
||||
# --- Networking recipe ---
|
||||
net_recipe: generic_bgp
|
||||
|
||||
# --- OAM config ---
|
||||
oam_network:
|
||||
add_ansible_host_address: false
|
||||
addresses:
|
||||
- {{ mgmt.cidr }}
|
||||
gateway4: {{ mgmt.gw }}
|
||||
|
||||
# --- NTP ---
|
||||
ntp:
|
||||
{% for s in ntp %}
|
||||
- {{ s }}
|
||||
{% endfor %}
|
||||
|
||||
# --- VRF config ---
|
||||
_ngc_ext_aio_vrf:
|
||||
- action: net_add_vrf
|
||||
params: { name: RAN, table: 502 }
|
||||
- action: net_add_vrf
|
||||
params: { name: TELCO, table: 535 }
|
||||
|
||||
_ngc_ext_aio_net:
|
||||
# RAN interface
|
||||
- action: net_set_interface
|
||||
params:
|
||||
interface: eth1
|
||||
vrf: RAN
|
||||
addresses:
|
||||
- {{ ran.cidr }} # S1+N2+N3
|
||||
routes:
|
||||
- destination: 0.0.0.0/0
|
||||
gateway: {{ ran.gw }}
|
||||
Reference in New Issue
Block a user