- Supported YANG Models in NCS 1002
- Configure Slice
- Configure Optics Controller
- Configure Ethernet and Coherent DSP Controllers
- Configure Performance Monitoring
- Configure Loopback
- Configure MACsec Encryption
- Configure Breakout Patch Panel
- Configure LLDP Drop
- Monitor Headless Statistics
- Examples Using gRPC
Configuring NCS 1002
Using Data Models
This section includes examples for configuring NCS 1002 using Data models.
- Supported YANG Models in NCS 1002
- Configure Slice
- Configure Optics Controller
- Configure Ethernet and Coherent DSP Controllers
- Configure Performance Monitoring
- Configure Loopback
- Configure MACsec Encryption
- Configure Breakout Patch Panel
- Configure LLDP Drop
- Monitor Headless Statistics
- Examples Using gRPC
Supported YANG Models in NCS 1002
The supported config and oper YANG models for NCS 1002 are listed below:
| Cfg. yang | Oper. yang |
|---|---|
| Cisco-IOS-XR-pmengine-cfg.yang | Cisco-IOS-XR-pmengine-oper.yang |
| Cisco-IOS-XR-controller-optics-cfg.yang | Cisco-IOS-XR-controller-optics-oper.yang |
| Cisco-IOS-XR-controller-otu-cfg.yang | Cisco-IOS-XR-controller-otu-oper.yang |
| Cisco-IOS-XR-ncs1k-mxp-cfg | Cisco-IOS-XR-alarmgr-server-oper.yang |
| Cisco-IOS-XR-lib-keychain-macsec-cfg | Cisco-IOS-XR-ncs1k-mxp-headless-oper.yang |
| Cisco-IOS-XR-crypto-macsec-mka-cfg | Cisco-IOS-XR-plat-chas-invmgr-oper.yang |
| Cisco-IOS-XR-ifmgr-cfg | Cisco-IOS-XR-ncs1k-mxp-lldp-oper.yang |
| Cisco-IOS-XR-crypto-macsec-mka-if-cfg |
Cisco-IOS-XR-crypto-macsec-mka-oper.yang Cisco-IOS-XR-crypto-macsec-secy-oper.yang |
Configure Slice
Configure Optics Controller
| Step 1 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang YANG model for configuring the optics controller.
| ||||
| Step 2 | Use the
Cisco-IOS-XR-controller-optics-cfg.yang YANG model for configuring the
wavelength on the trunk port.
| ||||
| Step 3 | Use the
Cisco-IOS-XR-controller-optics-oper.yang YANG model to verify the wavelength
and channel mapping for trunk optics controllers.
|
Configure Ethernet and Coherent DSP Controllers
| Step 1 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang YANG model for configuring the Ethernet controller.
| ||||
| Step 2 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang YANG model for configuring the Coherent DSP
controller.
|
Configure Performance Monitoring
| Step 1 | Use the Cisco-IOS-XR-ifmgr-cfg.yang and Cisco-IOS-XR-pmengine-cfg.yang YANG models for configuring the performance monitoring parameters for the Optics, Ethernet, and coherentDSP controllers. | ||||||||
| Step 2 | Use the
Cisco-IOS-XR-pmengine-oper.yang YANG models to view the performance monitoring
parameters for the Optics, Ethernet, and coherentDSP controllers.
The table below shows an example that displays all the PM parameters for the optics controller. You can use specific filters for the required the output.
The table below shows an example that displays current 15 minute FEC PM for the Coherent DSP controller.
|
Configure Loopback
To create a loopback on a port, the port must be in the maintenance administrative state.
| Step 1 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang and Cisco-IOS-XR-controller-otu-cfg YANG models for
configuring the maintenance mode and loopback on a Coherent DSP controller.
| ||||
| Step 2 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang and Cisco-IOS-XR-drivers-media-eth-cfg.yang YANG
models for configuring the maintenance mode and loopback on an Ethernet
controller.
|
Configure MACsec Encryption
| Step 1 | Use the
Cisco-IOS-XR-ncs1k-mxp-cfg.yang YANG model to create an encrypted slice.
| ||||
| Step 2 | Use the
Cisco-IOS-XR-lib-keychain-macsec-cfg.yang YANG model to configure the MACsec
key chain.
| ||||
| Step 3 | Use the
Cisco-IOS-XR-crypto-macsec-mka-cfg.yang YANG model to configure a MACsec
policy.
| ||||
| Step 4 | Use the
Cisco-IOS-XR-ifmgr-cfg.yang and Cisco-IOS-XR-crypto-macsec-mka-if-cfg.yang YANG
model to configure MACsec on a MACsec controller.
| ||||
| Step 5 | Use the
Cisco-IOS-XR-crypto-macsec-mka-oper.yang YANG model to verify the MACsec
configuration and MKA session details of all the configured interfaces.
| ||||
| Step 6 | Use the
Cisco-IOS-XR-crypto-macsec-secy-oper.yang YANG model to verify the MACsec SecY
statistics for all the MACsec Key Agreement protocol (MKA) sessions.
|
Configure Breakout Patch Panel
| Step 1 | Use the
Cisco-IOS-XR-patch-panel-cfg.yang YANG model to configure the breakout patch
panel.
| ||||
| Step 2 | Use the
Cisco-IOS-XR-patch-panel-cfg.yang YANG model to delete the breakout patch
panel.
|
Configure LLDP Drop
| Step 1 | Use the Cisco-IOS-XR-ncs1k-mxp-cfg.yang YANG model to configure
LLDP drop.
| ||||
| Step 2 | Use the Cisco-IOS-XR-ncs1k-mxp-cfg.yang YANG model to delete LLDP
drop configuration.
| ||||
| Step 3 | Use the Cisco-IOS-XR-ncs1k-mxp-cfg.yang YANG model to retrieve
operational data for LLDP drop.
|
Monitor Headless Statistics
In the headless mode, the data path and statistics are maintained for at least 72 hours. The collected statistics are preserved for a slice until the hardware module configuration is removed or changed on that slice. These statistics are automatically cleared during the next reload or CPU-OIR operation.
|
Examples Using gRPC
Example—Verify the Slice Configuration Using gRPC
Set-up:
./client_v3 -server 1.74.27.25:57500 -oper show-cmd-text -cli_input_file show-hw-module
The slice configuration is displayed.
{
"Response": "{\"ResReqId\":753690684504425618,\"output\":\"\\n-------------------------- show hw-module slice all ---------------------------\\nSlice ID: 1\\nStatus: Provisioned\\nClient Bitrate: 100\\nTrunk Bitrate: 100\\nDP FPGA Version: H201 (NEED UPG)\\n\\nClient Port - Trunk Port\\t CoherentDSP0/0/0/12\\t CoherentDSP0/0/0/13\\nTraffic Split Percentage\\n\\nHundredGigECtrlr0/0/0/7 \\t 100 0\\nHundredGigECtrlr0/0/0/11 \\t 0 100\\n\\n\\n\"}",
"FatalErrors": ""
}
Example—View the Optics Controller Configuration Using gRPC and Yang
Set-up:
-
Client—client_v3
-
Client IP address and configured grpc port—1.74.27.25:57500
-
Yang model—Cisco-IOS-XR-ifmgr-cfg
./client -server_addr=1.74.27.25:57500 -username=root -password=lab -oper=get-config
-yang_path='{"Cisco-IOS-XR-ifmgr-cfg:interface-configurations": [null]}'
The optics controller configuration is displayed.
{
"Cisco-IOS-XR-ifmgr-cfg:interface-configurations": {
"interface-configuration": [
{
"active": "act",
"interface-name": "Optics0/0/0/5",
"shutdown": [null]
},
{
"active": "act",
"interface-name": "Optics0/0/0/6",
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"optics-dwdm-carrier": {
"grid-type": "100mhz-grid",
"param-type": "frequency",
"param-value": 1927000
}
},
"secondary-admin-state": "maintenance"
},
{
"active": "act",
"interface-name": "Optics0/0/0/12",
"shutdown": [
null
]
},
{
"active": "act",
"interface-name": "Optics0/0/0/13",
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"optics-dwdm-carrier": {
"grid-type": "100mhz-grid",
"param-type": "frequency",
"param-value": 1927000
}
},
"secondary-admin-state": "maintenance"
},
{
"active": "act",
"interface-name": "Optics0/0/0/14",
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"rx-thresholds": {
"rx-threshold": [
{
"rx-threshold-type": "low",
"rx-threshold": -120
},
{
"rx-threshold-type": "high",
"rx-threshold": 49
}]}}}
,
{
"active": "act",
"interface-name": "Optics0/0/0/18",
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"rx-thresholds": {
"rx-threshold": [
{
"rx-threshold-type": "low",
"rx-threshold": -120
},
{
"rx-threshold-type": "high",
"rx-threshold": 49
}]}}}
,
{
"active": "act",
"interface-name": "Optics0/0/0/19",
"shutdown": [
null
],
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"optics-dwdm-carrier": {
"grid-type": "50g-hz-grid",
"param-type": "frequency",
"param-value": 19270
}}}
,
{
"active": "act",
"interface-name": "Optics0/0/0/20",
"Cisco-IOS-XR-controller-optics-cfg:optics": {
"optics-dwdm-carrier": {
"grid-type": "50g-hz-grid",
"param-type": "frequency",
"param-value": 19270
},
"rx-thresholds": {
"rx-threshold": [
{
"rx-threshold-type": "low",
"rx-threshold": -120
},
{
"rx-threshold-type": "high",
"rx-threshold": 49
}]}}}
],
{
"active": "act",
"interface-name": "Optics0/0/0/26",
"shutdown": [
null
]
},
{
"active": "act",
"interface-name": "Optics0/0/0/27",
"shutdown": [
null
]
},
{
"active": "act",
"interface-name": "MgmtEth0/RP0/CPU0/0",
"Cisco-IOS-XR-ipv4-io-cfg:ipv4-network": {
"addresses": {
"primary": {
"address": "10.77.132.165",
"netmask": "255.255.255.0"
}}}}
,
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/0/1",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/0/2",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/0/3",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/0/4",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/11/1",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/11/2",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/11/3",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
},
{
"active": "act",
"interface-name": "TenGigECtrlr0/0/0/11/4",
"Cisco-IOS-XR-pmengine-cfg:performance-management": {
"ethernet-minute15": {
"minute15-ether": {
"minute15-ether-reports": {
"minute15-ether-report": [
{
"ether-report": "report-fcs-err"
}
]
},
"minute15-ether-thresholds": {
"minute15-ether-threshold": [
{
"ether-threshold": "thresh-fcs-err",
"ether-threshold-value": 1000
}
]
}
}
}
}
}
]
}
}
emsGetConfig: ReqId 1, byteRecv: 7455
----------------- gRPC Summary ----------------------
Operation: get-config
Number of iterations: 1
Total bytes transferred: 7455
Number of bytes per second: 124482
Ave elapsed time in seconds: 0.059888
Min elapsed time in seconds: 0.059888
Max elapsed time in seconds: 0.059888
--------------- End gRPC Summary ---------------------
Feedback