1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Fallback to old gateway info when WAN is not detected when configuring static ip

This commit is contained in:
Jerry Vonau 2018-05-31 11:20:35 -05:00
parent 354d54ca34
commit 1267c1e19c

View file

@ -117,6 +117,11 @@
# This workaround can and should evolve as IIAB 6.5 matures!
when: num_lan_interfaces == "1" and user_lan_iface == "auto" and user_wan_iface == "auto"
- name: Use old gateway device info if not detected and using static ip
set_fact:
iiab_wan_iface: "{{ device_gw }}"
when: wan_ip != "dhcp" and iiab_wan_iface == "none"
- name: No LAN configured - 'Appliance' mode
set_fact:
iiab_network_mode: "Appliance"