networks: If topology wizard is skipped, skip router wizard too

If the user chooses to skip the network topology wizard, then there is no need
to show the router configuration wizard step. Skip it.

We may want to skip other wizard step too. However, those can be dealt later.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2020-03-06 14:08:29 -08:00
parent ba6f461ece
commit 2238352e45
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -448,6 +448,7 @@ class NetworkTopologyFirstBootView(NetworkTopologyView):
"""Mark the first wizard step as done, save value and redirect."""
first_boot.mark_step_done('network_topology_wizard')
if 'skip' in form.data:
first_boot.mark_step_done('router_setup_wizard')
return FormView.form_valid(self, form)
return super().form_valid(form)