def convert_fwdb(self, tenant_id, name, policy_id, fw_id):
        """Convert the Firewall DB to a query response.

        From FWDB inputs, this will create a FW message that resembles the
        actual data from Openstack, when a query for FW is done.
        """
        fw_dict = {'tenant_id': tenant_id, 'name': name, 'id': fw_id,
                   'firewall_policy_id': policy_id,
                   'admin_state_up': True}
        fw_data = {'firewall': fw_dict}
        return fw_data
def convert_fwdb ( self , tenant_id , name , policy_id , fw_id ) : fw_dict = { 'tenant_id' : tenant_id , 'name' : name , 'id' : fw_id , 'firewall_policy_id' : policy_id , 'admin_state_up' : True } fw_data = { 'firewall' : fw_dict } return fw_data
Convert the Firewall DB to a query response.

        From FWDB inputs, this will create a FW message that resembles the
        actual data from Openstack, when a query for FW is done.