get_transport_node_status
Check connectivity and tunnel status for a VMware NSX transport node to monitor network health and troubleshoot issues.
Instructions
Check status of a specific transport node (connectivity, tunnel status).
Args: node_id: The transport node ID. target: Optional NSX Manager target name from config. Uses default if omitted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| target | No |
Implementation Reference
- vmware_nsx/ops/health.py:85-95 (handler)The core logic function that queries the NSX API for transport node status.
def get_transport_node_status(client: NsxClient, node_id: str) -> dict: """Get status of a specific transport node. Args: client: Authenticated NSX API client. node_id: Transport node UUID. Returns: Dict with node connectivity, tunnel, and pNIC status. """ data = client.get(f"/api/v1/transport-nodes/{node_id}/status") - mcp_server/server.py:300-311 (handler)The MCP tool handler that orchestrates connection and calls the core health logic.
@mcp.tool() def get_transport_node_status(node_id: str, target: str | None = None) -> dict: """Check status of a specific transport node (connectivity, tunnel status). Args: node_id: The transport node ID. target: Optional NSX Manager target name from config. Uses default if omitted. """ from vmware_nsx.ops.health import get_transport_node_status as _get_tn_status client = _get_connection(target) return _get_tn_status(client, node_id)