

def handle(self, request, context):
    firewall_id = self.initial['firewall_id']
    firewall_name_or_id = (self.initial['name'] or firewall_id)
    try:
        body = {
            'router_ids': self.get_new_router_ids(context),
        }
        firewall = api.fwaas.firewall_update(request, firewall_id, **body)
        msg = (self.success_msg % {
            'firewall': firewall_name_or_id,
        })
        LOG.debug(msg)
        messages.success(request, msg)
        return context
    except Exception as e:
        msg = (self.failure_msg % {
            'name': firewall_name_or_id,
            'reason': e,
        })
        LOG.error(msg)
        redirect = reverse(self.failure_url)
        exceptions.handle(request, msg, redirect=redirect)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/dashboards/project/firewalls/forms.py RouterInsertionFormBase.handle/VarMisuse@106/148 `firewall`->`context`