34 lines
625 B
Django/Jinja
34 lines
625 B
Django/Jinja
# --- 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 }} |