From 1267c1e19c7e2cf4fc765bfa05b84f29cbad4517 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Thu, 31 May 2018 11:20:35 -0500 Subject: [PATCH] Fallback to old gateway info when WAN is not detected when configuring static ip --- roles/network/tasks/computed_network.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/network/tasks/computed_network.yml b/roles/network/tasks/computed_network.yml index ace548616..861a14c07 100644 --- a/roles/network/tasks/computed_network.yml +++ b/roles/network/tasks/computed_network.yml @@ -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"