Setting up CFM configuration for switch automation
Ensure that CFM is up and running.
Ensure that port map is created.
-
Check the CFM status using the following command:
nps show --data cfm
-
Check the port map status of border leaf and leaf switches using the following command:
nps show --data portmap
-
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
andborderleaf
. -
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 thecfm-configure
pod. Wait for some time till the pod status changes fromRunning
toComplete
. Then, proceed to Step 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 thenps deploy -s cfm -a configure
command.