Bases: vmware_nsx.services.fwaas.common.fwaas_mocks.FwaasDriverBase
NSX-V driver for Firewall As A Service - V1.
Apply the default policy (deny all).
The backend firewall always has this policy (=deny all) as default, so we only need to delete the current rules.
Create the Firewall with a given policy.
Delete firewall.
Removes rules created by this instance from the backend firewall And add the default allow-external rule.
Return True if the firewall rules should be added the router
Return False in those cases: - router without an external gateway (rule may be added later when
there is a gateway)
Raise an exception if the router is unsupported (and raise_exception is True): - shared router (not supported) - md proxy router (not supported)
Remove previous policy and apply the new policy.