The networking_cisco.apps.saf.server.services.firewall.native.drivers.dev_mgr Module

class networking_cisco.apps.saf.server.services.firewall.native.drivers.dev_mgr.DeviceMgr(cfg)

Bases: object

Device Manager.

create_fw_device(tenant_id, fw_id, data)

Creates the Firewall.

delete_fw_device(tenant_id, fw_id, data)

Deletes the Firewall.

drvr_initialize(cfg)

Initialize the driver routines.

is_device_virtual()

Returns if the device is physical or virtual.

modify_fw_device(tenant_id, fw_id, data)

Modifies the firewall cfg.

network_create_notif(tenant_id, tenant_name, cidr)

Notification for Network create.

Since FW ID not present, it’s not possible to know which FW instance to call. So, calling everyone, each instance will figure out if it applies to them.

network_delete_notif(tenant_id, tenant_name, net_id)

Notification for Network delete.

Since FW ID not present, it’s not possible to know which FW instance to call. So, calling everyone, each instance will figure out if it applies to them.

populate_dcnm_obj(dcnm_obj)

Populates the DCNM object.

populate_event_que(que_obj)

Populates the event queue object.

This is for sending router events to event handler.

populate_local_sch_cache(fw_dict)

Populate the local cache from FW DB after restart.

class networking_cisco.apps.saf.server.services.firewall.native.drivers.dev_mgr.MaxSched(obj_dict)

Bases: object

Max Sched class.

This scheduler will return the first firewall until it reaches its quota.

allocate_fw_dev(fw_id)

Allocate firewall device.

Allocate the first Firewall device which has resources available.

deallocate_fw_dev(fw_id)

Release the firewall resource.

get_fw_dev_map(fw_id)

Return the object dict and mgmt ip for a firewall.

populate_fw_dev(fw_id, mgmt_ip, new)

Populate the class after a restart.