Merge "Update container interface template to disable DHCP routes when gateway set"

This commit is contained in:
Zuul 2019-01-16 02:01:00 +00:00 committed by Gerrit Code Review
commit f067343085
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ Address={{ item.value.address }}/{{ addr_cidr }}
UseDNS={{ (lxc_container_enable_resolved | bool) | ternary('yes', 'no') }}
UseNTP=yes
RouteMetric=20
{% if hostvars[inventory_hostname]['gateway'] is defined %}
UseRoutes=False
{% endif %}
{% endif %}
{% for route in item.value.static_routes | default([]) %}