Setting up CFM configuration for switch automation

Prerequisites
  • Ensure that CFM is up and running.

  • Ensure that port map is created.

Procedure
  1. Check the CFM status using the following command:
    nps show --data cfm
  2. Check the port map status of border leaf and leaf switches using the following command:
    nps show --data portmap
  3. Check the port map based on switch type using the following command:
    nps show --data portmap --node <switch_type>

    The supported switch types are leaf and borderleaf.

  4. Set up the initial configuration in CFM before switch automation using the following command:
    nps deploy -s cfm -a configure
    NOTE:

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

  5. Verify the CFM configuration using the following command:
    nps show --data cfm
    The following keys must be visible in state dictionary:
    "installation" = "success"
    "odim_config" = "completed"
    "borderleaf_portmap" = "completed"
    "assign_switch_to_fabric" = "completed"
    "leaf_portmap" = "completed"
    "add_cfm_to_odim" = "completed"
    "switch_discovery" = "completed"
    "fabric_creation" = "completed"

    In case of any failures in configuring CFM (that is, a pod going to error state), analyze the <topology_name>_cfm_config_<date>.log file in the /var/nps/logs/<topology_name> directory and fix the issue. Before redeploying and configuring CFM, you must clean up CFM entries in ODIM RA. See Cleaning up CFM entries. Rerun the nps deploy -s cfm -a configure command.