Creating port map for switch automation

Port map data is used for configuring both the leaf and border leaf switches using the NPS CLI command.

Prerequisites

Ensure that servers and switches are reachable from the NPS VM.

Procedure
  1. Create a port map for leaf and border-leaf switches.
    nps create -p portmap
    NOTE:

    The kubectl get pods -n nps command displays a list of pods, and there you will find the portmap pod. Wait for some time till the pod status changes from Running to Complete. Then, proceed to Step 2.

  2. Verify the port map details for both leaf and border leaf switches using the following command:
    nps show --data portmap
  3. View the port map details for the individual switches using the following command:
    nps show --data portmap --node <switchtype>

    where the supported switch types are leaf and borderleaf.