com.vmware.nsx_policy.infra.providers.l2vpn_context package¶
Submodules¶
com.vmware.nsx_policy.infra.providers.l2vpn_context.l2vpns_client module¶
-
class
com.vmware.nsx_policy.infra.providers.l2vpn_context.l2vpns_client.
PeerConfig
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
get
(provider_id, l2vpn_id, enforcement_point_path=None)¶ Get peer config for the L2Vpn to configure the remote side of the tunnel. - no enforcement point path specified: L2Vpn Peer Codes will be evaluated on each enforcement point. - {enforcement_point_path}: L2Vpn Peer Codes are evaluated only on the given enforcement point.
Parameters: - provider_id (
str
) – Provider id (required) - l2vpn_id (
str
) – L2Vpn id (required) - enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)
Return type: Returns: com.vmware.nsx_policy.model.AggregateL2VpnPeerConfig
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- provider_id (
-
-
class
com.vmware.nsx_policy.infra.providers.l2vpn_context.l2vpns_client.
Statistics
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
-
get
(provider_id, l2vpn_id, enforcement_point_path=None)¶ Get statistics of an L2Vpn. - 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: - provider_id (
str
) – Provider id (required) - l2vpn_id (
str
) – L2Vpn id (required) - enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)
Return type: Returns: com.vmware.nsx_policy.model.AggregateL2VpnStatistics
Raise: com.vmware.vapi.std.errors_client.ServiceUnavailable
Service UnavailableRaise: com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition FailedRaise: com.vmware.vapi.std.errors_client.InternalServerError
Internal Server ErrorRaise: com.vmware.vapi.std.errors_client.Unauthorized
ForbiddenRaise: com.vmware.vapi.std.errors_client.NotFound
Not Found- provider_id (
-
-
class
com.vmware.nsx_policy.infra.providers.l2vpn_context.l2vpns_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase