Using device labels, an operator can group SR OS nodes within the NISH MD-CLI schema. A device label is a string value chosen by the operator to reference a group of SR OS nodes.
The connection device label is present by default and contains all SR OS nodes.
Groups are not predefined. The operator has the freedom to group nodes in the best way for the organization. The following are examples of SR OS node groupings:
In a BNG CUPS deployment, the operator groups the user plane nodes with the UPF device label and the control plane nodes with the CPF device label.
In a multi-platform deployment, the operator groups the SR OS nodes running on physical 7750 SR routers with the Physical device label and the VSR nodes with the Virtual device label.
The operator defines the device labels in a local schema file. The NISH schema in the NISH MD-CLI uses the device labels in the local schema file to group SR OS nodes; see Local schema file.
In the NISH client static mode, the operator applies the device labels defined in the local schema file to the nodes in the connections file; see Connections file.
In the NISH client manager mode, the operator applies the device labels defined in the local schema file to the nodes, using the SR OS Remote Manager feature. For more information about the configuration of remote management on an SR OS device, see the 7450 ESS, 7750 SR, 7950 XRS, and VSR Classic CLI Command Reference Guide, section ‟gRPC MD-CLI”.
When the device labels are defined in the local schema file and applied to the SR OS nodes, the NISH MD-CLI shows the SR OS nodes in the branch that matches the device label, as shown in the following example:
test1 is configured with the device label UPF
test2 is configured with the device label CPF
[]
root@# connections <tab>
connection UPF CPF
[]
root@# connections UPF <tab>
<ip>
test1
[]
root@# connections CPF <tab>
<ip>
test2
[]
root@# connections connection <tab>
<ip>
test1
test2
If the operator applies to an SR OS node a device label that is not defined in the local schema file, the node appears only under the connection device label. Only device labels defined in the local schema file are visible in the NISH MD-CLI.
If the operator defines a device label in the local schema file and does not apply it to a node, the device label appears in the NISH MD-CLI without any member nodes.