The networking_cisco.apps.saf.server.services.firewall.native.drivers.native
Module¶
-
class
networking_cisco.apps.saf.server.services.firewall.native.drivers.native.
NativeFirewall
¶ Bases:
networking_cisco.apps.saf.server.services.firewall.native.drivers.base.BaseDriver
,networking_cisco.apps.saf.server.services.firewall.native.fabric_setup_base.FabricApi
Native Firewall Driver.
-
attach_intf_router
(tenant_id, tenant_name, router_id)¶ Routine to attach the interface to the router.
-
create_fw
(tenant_id, data)¶ Top level routine called when a FW is created.
-
create_tenant_dict
(tenant_id, router_id=None)¶ Tenant dict creation.
-
delete_fw
(tenant_id, data)¶ Top level routine called when a FW is deleted.
-
delete_intf_router
(tenant_id, tenant_name, router_id)¶ Routine to delete the router.
-
get_max_quota
()¶ Returns the number of Firewall instances.
Returns the maximum number of Firewall instance that a single Firewall can support.
-
get_name
()¶ Returns the name of the FW appliance.
-
get_router_id
(tenant_id, tenant_name)¶ Retrieve the router ID.
-
initialize
(cfg_dict)¶ Initialization routine.
-
is_device_virtual
()¶ Returns if device is virtual.
-
modify_fw
(tenant_id, data)¶ Modify Firewall attributes.
Routine called when Firewall attributes gets modified. Nothing to be done for native FW.
-
network_create_notif
(tenant_id, tenant_name, cidr)¶ Tenant Network create Notification.
Restart is not supported currently for this. fixme(padkrish).
-
network_delete_notif
(tenant_id, tenant_name, network_id)¶ Tenant Network delete Notification.
Restart is not supported currently for this. fixme(padkrish).
-
populate_dcnm_obj
(dcnm_obj)¶ Populate the DCNM object.
-
populate_event_que
(que_obj)¶ Populate the event queue object.
-
prepare_router_vm_msg
(tenant_id, tenant_name, router_id, net_id, subnet_id, seg, status)¶ Prepare the message to be sent to Event queue for VDP trigger.
This is actually called for a subnet add to a router. This function prepares a VM’s VNIC create/delete message.
-
program_default_gw
(tenant_id, arg_dict)¶ Program the default gateway to the ‘out’ interface.
-
program_next_hop
(tenant_id, arg_dict)¶ Program the next hop for all host subnets to the ‘in’ gateway.
-
send_in_router_port_msg
(tenant_id, arg_dict, status)¶ Call routine to send vNic create notification for ‘in’ interface.
-
send_out_router_port_msg
(tenant_id, arg_dict, status)¶ Call routine to send vNic create notification for ‘out’ interface.
-
send_router_port_msg
(tenant_id, tenant_name, router_id, net_id, subnet_id, seg, status)¶ Sends the router port message to the queue.
-
update_dcnm_partition_static_route
(tenant_id, arg_dict)¶ Add static route in DCNM’s partition.
This gets pushed to the relevant leaf switches.
-