com.vmware.nsx.fabric.nodes.network package

Submodules

com.vmware.nsx.fabric.nodes.network.interfaces_client module

class com.vmware.nsx.fabric.nodes.network.interfaces_client.Stats(config)

Bases: vmware.vapi.bindings.stub.VapiInterface

Parameters

config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.

GET_SOURCE_CACHED = 'cached'

Possible value for source of method Stats.get().

GET_SOURCE_REALTIME = 'realtime'

Possible value for source of method Stats.get().

get(node_id, interface_id, source=None)

On the specified interface, returns the number of received (rx), transmitted (tx), and dropped packets; the number of bytes and errors received and transmitted on the interface; and the number of detected collisions.

Parameters
  • node_id (str) – (required)

  • interface_id (str) – (required)

  • source (str or None) – Data source type. (optional)

Return type

com.vmware.nsx.model_client.NodeInterfaceStatisticsProperties

Returns

com.vmware.nsx.model.NodeInterfaceStatisticsProperties

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.fabric.nodes.network.interfaces_client.StubFactory(stub_config)

Bases: vmware.vapi.bindings.stub.StubFactoryBase

Initialize StubFactoryBase

Parameters

stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance