Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ansible/host_vars/STR-ACS-SERV-01.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mgmt_bridge: br1
mgmt_prefixlen: 23
mgmt_gw: 10.255.0.1
vm_mgmt_gw: 10.254.0.1
external_iface: p4p1

4 changes: 4 additions & 0 deletions ansible/roles/eos/templates/t0-leaf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ ip routing
ip routing vrf MGMT
ipv6 unicast-routing
!
{% if vm_mgmt_gw is defined %}
ip route vrf MGMT 0.0.0.0/0 {{ vm_mgmt_gw }}
{% else %}
ip route vrf MGMT 0.0.0.0/0 {{ mgmt_gw }}
{% endif %}
!
route-map DEFAULT_ROUTES permit
!
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/vm_set/tasks/start_vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
password={{ password }}
hostname={{ hostname }}
mgmt_ip="{{ mgmt_ip_address }}/{{ mgmt_prefixlen }}"
mgmt_gw={{ mgmt_gw }}
mgmt_gw={{ vm_mgmt_gw | default(mgmt_gw) }}
new_login={{ new_login }}
new_password={{ new_password }}
new_root_password={{ new_root_password }}
Expand All @@ -53,7 +53,7 @@
password={{ password }}
hostname={{ hostname }}
mgmt_ip="{{ mgmt_ip_address }}/{{ mgmt_prefixlen }}"
mgmt_gw={{ mgmt_gw }}
mgmt_gw={{ vm_mgmt_gw | default(mgmt_gw) }}
new_login={{ new_login }}
new_password={{ new_password }}
new_root_password={{ new_root_password }}
Expand Down