

def _firewall_get(request, firewall_id, expand_policy):
    firewall = neutronclient(request).show_firewall(firewall_id).get('firewall')
    if expand_policy:
        policy_id = firewall['firewall_policy_id']
        if policy_id:
            firewall['policy'] = _policy_get(request, policy_id, expand_rule=False)
        else:
            firewall['policy'] = None
    return Firewall(firewall)

dataset/ETHPy150Open openstack/horizon/openstack_dashboard/api/fwaas.py _firewall_get/original