com.vmware.nsx_policy.infra.settings package¶
Subpackages¶
Submodules¶
com.vmware.nsx_policy.infra.settings.firewall_client module¶
-
class
com.vmware.nsx_policy.infra.settings.firewall_client.
Security
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
()¶ Get the current dfw firewall configurations.
- Return type
- Returns
com.vmware.nsx_policy.model.DfwFirewallConfiguration
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(dfw_firewall_configuration)¶ Update dfw firewall related configurations.
- Parameters
dfw_firewall_configuration (
com.vmware.nsx_policy.model_client.DfwFirewallConfiguration
) – (required)- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(dfw_firewall_configuration)¶ Update dfw firewall related configurations.
- Parameters
dfw_firewall_configuration (
com.vmware.nsx_policy.model_client.DfwFirewallConfiguration
) – (required)- Return type
- Returns
com.vmware.nsx_policy.model.DfwFirewallConfiguration
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.settings.firewall_client.
Stats
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
RESET_CATEGORY_DFW
= 'DFW'¶ Possible value for
category
of methodStats.reset()
.
-
RESET_CATEGORY_EDGE
= 'EDGE'¶ Possible value for
category
of methodStats.reset()
.
-
reset
(category, enforcement_point_path=None)¶ Sets firewall rule statistics counter to zero. This operation is supported for given category, for example: DFW i.e. for all layer3 firewall (transport nodes only) rules or EDGE i.e. for all layer3 edge firewall (edge nodes only) rules. - no enforcement point path specified: Stats will be evaluated on each enforcement point. - {enforcement_point_path}: Stats are evaluated only on the given enforcement point.
- Parameters
category (
str
) – Aggregation statistic category (required)enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.settings.firewall_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance