The networking_cisco.apps.saf.db.dfa_db_models Module

class networking_cisco.apps.saf.db.dfa_db_models.DfaAgentsDb(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA agent.

configurations
created
heartbeat
host
class networking_cisco.apps.saf.db.dfa_db_models.DfaDBMixin(cfg)

Bases: object

Database API.

add_fw_db(fw_id, fw_data, result=None)
add_network_db(net_id, net_data, source, result)
add_project_db(pid, name, dci_id, result)
add_vms_db(vm_data, result)
append_state_final_result(fw_id, cur_res, state)
clear_fw_entry_by_netid(net_id)
conv_db_dict(alloc)
del_project_db(pid)
delete_fw(fw_id)
delete_network_db(net_id)
delete_vm_db(port_id)
get_agent_configurations(host)
get_all_fw_db()
get_all_networks()
get_all_projects()
get_fialed_projects_entries(fail_res)
get_fw(fw_id)
get_fw_by_netid(netid)
get_fw_by_rtr_netid(netid)
get_fw_by_rtrid(rtrid)
get_fw_by_tenant_id(tenant_id)
get_fw_rule_by_id(fw_id)
get_network(net_id)
get_network_by_name(name)
get_network_by_segid(segid)
get_project_id(name)
get_project_name(pid)
get_str_dict(fw_data)
get_vm(port_id)
get_vms()
get_vms_for_this_req(**req)
update_agent_configurations(host, configs)
update_agent_db(agent_info)
update_fw_db(fw_id, fw_data)
update_fw_db_dev_status(fw_id, status)
update_fw_db_final_result(fw_id, result)
update_fw_db_mgmt_ip(fw_id, mgmt_ip)
update_fw_db_result(fw_id, fw_data)
update_network(net_id, **params)
update_network_db(net_id, result)
update_project_entry(pid, dci_id, result)
update_vm_db(vm_port_id, **params)
class networking_cisco.apps.saf.db.dfa_db_models.DfaFwInfo(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents Firewall info.

dcnm_provision_status
device_provision_status
fw_id
fw_mgmt_ip
fw_type
in_network_id
in_service_node_ip
name
openstack_provision_status
out_network_id
out_service_node_ip
result
router_id
router_net_id
router_subnet_id
rules
tenant_id
class networking_cisco.apps.saf.db.dfa_db_models.DfaInServiceSubnet(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA Service Subnet.

allocated
network_id
subnet_address
subnet_id
class networking_cisco.apps.saf.db.dfa_db_models.DfaInSubnet

Bases: networking_cisco.apps.saf.db.dfa_db_models.DfaResource

dfa_in_subnet_init = 0
get_model()
classmethod init_done()
is_init_done()
class networking_cisco.apps.saf.db.dfa_db_models.DfaNetwork(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA network.

config_profile
fwd_mod
name
network_id
result
segmentation_id
source
tenant_id
vlan
class networking_cisco.apps.saf.db.dfa_db_models.DfaOutServiceSubnet(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA Service Subnet.

allocated
network_id
subnet_address
subnet_id
class networking_cisco.apps.saf.db.dfa_db_models.DfaOutSubnet

Bases: networking_cisco.apps.saf.db.dfa_db_models.DfaResource

dfa_out_subnet_init = 0
get_model()
classmethod init_done()
is_init_done()
class networking_cisco.apps.saf.db.dfa_db_models.DfaResource

Bases: object

is_res_init_done(num_init)
class networking_cisco.apps.saf.db.dfa_db_models.DfaSegment

Bases: networking_cisco.apps.saf.db.dfa_db_models.DfaResource

dfa_segment_init = 0
get_model()
classmethod init_done()
is_init_done()
class networking_cisco.apps.saf.db.dfa_db_models.DfaSegmentTypeDriver(segid_min, segid_max, res_name, cfg, reuse_timeout=0)

Bases: object

allocate_segmentation_id(net_id, seg_id=None, source=None)
get_all_seg_netid()
get_seg_netid_src(source)
get_segid_allocation(session, seg_id)
release_segmentation_id(seg_id)
class networking_cisco.apps.saf.db.dfa_db_models.DfaSegmentationId(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA segmentation ID.

allocated
delete_time
network_id
segmentation_id
source
class networking_cisco.apps.saf.db.dfa_db_models.DfaTenants(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA tenants.

dci_id
id
name
result
class networking_cisco.apps.saf.db.dfa_db_models.DfaTopologyDb(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA Topology Discovery.

configurations
created
heartbeat
host
phy_interface
protocol_interface
remote_chassis_id_mac
remote_evb_cfgd
remote_evb_mode
remote_mgmt_addr
remote_port
remote_port_id_mac
remote_system_desc
remote_system_name
class networking_cisco.apps.saf.db.dfa_db_models.DfaVlan

Bases: networking_cisco.apps.saf.db.dfa_db_models.DfaResource

dfa_vlan_init = 0
get_model()
classmethod init_done()
is_init_done()
class networking_cisco.apps.saf.db.dfa_db_models.DfaVlanId(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents DFA VLAN ID.

allocated
delete_time
network_id
segmentation_id
source
class networking_cisco.apps.saf.db.dfa_db_models.DfaVmInfo(**kwargs)

Bases: sqlalchemy.ext.declarative.api.Base

Represents VM info.

fwd_mod
gw_mac
host
instance_id
ip
mac
name
network_id
port_id
result
segmentation_id
status
class networking_cisco.apps.saf.db.dfa_db_models.DfasubnetDriver(subnet_min_str, subnet_max_str, res_name)

Bases: object

allocate_subnet(subnet_lst, net_id=None)

Allocate subnet from pool.

Return allocated db object or None.

get_subnet(sub)
get_subnet_by_netid(netid)
release_subnet(subnet_address)
release_subnet_by_netid(netid)
release_subnet_no_netid()
update_subnet(subnet, net_id, subnet_id)
class networking_cisco.apps.saf.db.dfa_db_models.TopologyDiscoveryDb(cfg)

Bases: object

Topology Discovery Database API.

add_update_topology_db(**params)

Add or update an entry to the topology DB.

delete_topology_entry(**req)

Delete the entries from the topology DB.

query_topology_db(dict_convert=False, **req)

Query an entry to the topology DB.