NSX Logical Switches and Segments shows different count of port numbers
search cancel

NSX Logical Switches and Segments shows different count of port numbers

book

Article ID: 411561

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • There may be a discrepancy between the count of Port Interfaces in the Segments/Policy View and the Logical Ports in the Logical Switches/Manager View.
  • In the NSX UI > Policy View > Networking > Segments > Segment name > Port Interfaces:

  • In the NSX UI > Manager View > Networking > Logical Switches > Switches > Logical Ports:

Cause

The discrepancy in logical port counts is expected NSX behavior: the Manager View includes Logical Router ports while the Policy View omits them from segment port listings.

The following Logical Router port won't be visible in Segment/Policy View, as it only displays VIF ports.:
 
      {
        "_create_time": #######,
        "_create_user": "nsx_policy",
        "_last_modified_time": ######,
        "_last_modified_user": "system",
        "_protection": "PROTECTED",
        "_revision": 1,
        "_system_owned": false,
        "address_bindings": [],
        "admin_state": "UP",
        "attachment": {
          "attachment_type": "LOGICALROUTER",
          "id": "########-####-####-####-############"
        },
        "description": "Logical port on segment logical switch <Logical Switch Name> to connect to logical router /infra/realized-state/enforcement-points/default/tier-1-logical-routers/<Logical Switch Name>",
        "display_name": "<Logical Switch Name>",
        "id": "########-####-####-####-############",
        "ignore_address_bindings": [],
        "internal_id": "########-####-####-####-############",
        "logical_switch_id": "########-####-####-####-############",
        "resource_type": "LogicalPort",
 }
 

Resolution

This is a condition that may occur in a VMware NSX environment, and this is an expected scenario.