Merge "Add VPN service: List only routers with external gateway"

This commit is contained in:
Zuul 2018-02-08 03:39:54 +00:00 committed by Gerrit Code Review
commit bd1354fc78
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ class AddVPNServiceAction(workflows.Action):
_('Unable to retrieve routers list.'))
routers = []
for r in routers:
if not r.external_gateway_info:
continue
router_id_choices.append((r.id, r.name))
self.fields['router_id'].choices = router_id_choices
return router_id_choices