Supported Yang Models

Supported Yang Models

The following is the list of supported config, and oper YANG models for NCS 1010:

Config Models

Oper Models

Cisco-IOS-XR-osa-linesystem-cfg.yang Cisco-IOS-XR-osa-hwmod-linesys-oper.yang
Cisco-IOS-XR-controller-ots-cfg.yang Cisco-IOS-XR-controller-ots-oper.yang
Cisco-IOS-XR-ots-och-cfg.yang Cisco-IOS-XR-controller-ots-och-oper.yang
Cisco-IOS-XR-controller-oms-cfg Cisco-IOS-XR-controller-oms-oper.yang
Cisco-IOS-XR-controller-och-cfg Cisco-IOS-XR-controller-och-oper.yang
Cisco-IOS-XR-controller-osc-cfg.yang Cisco-IOS-XR-controller-osc-oper.yang
Cisco-IOS-XR-controller-dfb-cfg.yang Cisco-IOS-XR-controller-dfb-oper.yang
Cisco-IOS-XR-pmengine-cfg.yang Cisco-IOS-XR-pmengine-oper.yang
Cisco-IOS-XR-olc-cfg.yang Cisco-IOS-XR-olc-oper.yang
Cisco-IOS-XR-fpd-infra-cfg Cisco-IOS-XR-show-fpd-loc-ng-oper
Cisco-IOS-XR-osa-ct-cfg Cisco-IOS-XR-alarmgr-server-oper.yang
Cisco-IOS-XR-platform-oper

The following is the list of supported Open Config models:

openconfig-optical-amplifier@2019-12-06

openconfig-optical-attenuator@2019-07-19

Structure of Yang Models

YANG data models can be represented in a hierarchical, tree-based structure with nodes, which makes them more easily understandable. YANG defines four nodes types. Each node has a name, and depending on the node type, the node might either define a value or contain a set of child nodes. The nodes types (for data modeling) are:

  • leaf node—Contains a single value of a specific type

  • list node—Contains a sequence of list entries, each of which is uniquely identified by one or more keys leafs

  • leaf-list node—Contains a sequence of leaf nodes

  • container node—Contains a grouping of related nodes containing only child nodes, which can be any of the four node types

The following is the tree structure of the openconfig-optical-amplifier model.


Note


Cisco NCS 1010 supports only the leaves that are highlighted as bold in the following open configuration models.


 +--rw optical-amplifier
+--rw amplifiers
| +--rw amplifier* [name]
| +--rw name -> ../config/name
| +--rw config
| | +--rw name? string
| | +--rw type? identityref
| | +--rw target-gain? decimal64
| | +--rw min-gain? decimal64
| | +--rw max-gain? decimal64
| | +--rw target-gain-tilt? decimal64
| | +--rw gain-range? identityref
| | +--rw amp-mode? identityref
| | +--rw target-output-power? decimal64
| | +--rw max-output-power? decimal64
| | +--rw enabled? boolean
| | +--rw fiber-type-profile? identityref
| +--ro state
| +--ro name? string
| +--ro type? identityref
| +--ro target-gain? decimal64
| +--ro min-gain? decimal64
| +--ro max-gain? decimal64
| +--ro target-gain-tilt? decimal64
| +--ro gain-range? identityref
| +--ro amp-mode? identityref
| +--ro target-output-power? decimal64
| +--ro max-output-power? decimal64
| +--ro enabled? boolean
| +--ro fiber-type-profile? identityref
| +--ro component? -> /oc-platform:components/component/name
| +--ro ingress-port? -> /oc-platform:components/component/name
| +--ro egress-port? -> /oc-platform:components/component/name
| +--ro actual-gain
| +--ro actual-gain-tilt
| +--ro input-power-total
| +--ro input-power-c-band
| +--ro input-power-l-band
| +--ro output-power-total
| +--ro output-power-c-band
| +--ro output-power-l-band
| +--ro laser-bias-current
| +--ro optical-return-loss
+--rw supervisory-channels
+--rw supervisory-channel* [interface]
+--rw interface -> ../config/interface

The following is a tree structure of the openconfig-optical-attenuator model.

+--rw optical-attenuator
+--rw attenuators
+--rw attenuator* [name]
+--rw name -> ../config/name
+--rw config
| +--rw name? string
| +--rw attenuation-mode?
| +--rw target-output-power? decimal64
| +--rw attenuation? decimal64
| +--rw enabled? boolean
+--ro state
+--ro name? string
+--ro attenuation-mode? identityref
+--ro target-output-power? decimal64
+--ro attenuation? decimal64
+--ro enabled? boolean
+--ro component? -> /oc-platform:components/component/name
+--ro ingress-port? -> /oc-platform:components/component/name
+--ro egress-port? -> /oc-platform:components/component/name
+--ro actual-attenuation
+--ro output-power-total
+--ro optical-return-loss

The following is a sample tree structure of Cisco-IOS-XR-controller-ots-oper model.

+--ro ots-oper
       +--ro ots-ports
          +--ro ots-port* [name]
             +--ro ots-info
             |  +--ro raman-tx-power
             |  |  +--ro raman-tx-power*
             |  |     +--ro raman-tx-power-instance?   uint32
             |  |     +--ro raman-tx-power-value?      uint32
             |  |     +--ro raman-tx-wavelength?       uint32
             |  +--ro transmit-n-power
             |  |  +--ro transmit-power*
             |  |     +--ro instance?   uint32
             |  |     +--ro value?      int32
             |  +--ro receive-n-power
             |  |  +--ro receive-power*
             |  |     +--ro instance?   uint32
             |  |     +--ro value?      int32
             |  +--ro ingress-channel-slice-attenuation
             |  |  +--ro ingress-channel-slice*
             |  |     +--ro ingress-channel-slice?               uint32
             |  |     +--ro ingress-channel-slice-attenuation?   int32
             |  +--ro egress-channel-slice-attenuation
             |  |  +--ro egress-channel-slice*
             |  |     +--ro egress-channel-slice?               uint32
             |  |     +--ro egress-channel-slice-attenuation?   int32
             |  +--ro raman-tx-power-config
             |  |  +--ro raman-tx-power*
             |  |     +--ro raman-tx-power-instance?   uint32
             |  |     +--ro raman-tx-power-value?      uint32
             |  +--ro ingress-channel-slice-attenuation-configured
             |  |  +--ro ingress-channel-slice*
             |  |     +--ro ingress-channel-slice?               uint32
             |  |     +--ro ingress-channel-slice-attenuation?   int32
             |  +--ro egress-channel-slice-attenuation-configured
             |  |  +--ro egress-channel-slice*
             |  |     +--ro egress-channel-slice?               uint32
             |  |     +--ro egress-channel-slice-attenuation?   int32
             |  +--ro channel-attenuation-info
             |  |  +--ro total-channel-attenuation-slice-count?        uint32
             |  |  +--ro channel-attenuation-slice-spacing?            uint32
             |  |  +--ro channel-attenuation-first-slice-wavelength?   uint32
             |  |  +--ro channel-attenuation-first-slice-frequency?    uint32
             |  |  +--ro ingress-channel-attenuation-info*
             |  |  |  +--ro slice-num?             uint32
             |  |  |  +--ro ingress-attenuation?   uint32
             |  |  +--ro egress-channel-attenuation-info*
             |  |     +--ro slice-num?            uint32
             |  |     +--ro egress-attenuation?   uint32
             |  +--ro otdr-info-rx
             |  |  +--ro scan-status?       Otdr-scan-status
             |  |  +--ro tracepoint-file?   string
             |  |  +--ro total-events?      uint32
             |  |  +--ro scan-timestamp?    string
             |  |  +--ro event-info*
             |  |     +--ro event-number?     uint32
             |  |     +--ro detected-event?   uint32
             |  |     +--ro location?         int64
             |  |     +--ro accuracy?         int64
             |  |     +--ro magnitude?        int64
             |  |     +--ro attenuation?      int64
             |  +--ro otdr-info-tx
             |  |  +--ro scan-status?       Otdr-scan-status
             |  |  +--ro tracepoint-file?   string
             |  |  +--ro total-events?      uint32
             |  |  +--ro scan-timestamp?    string
             |  |  +--ro event-info*
             |  |     +--ro event-number?     uint32
             |  |     +--ro detected-event?   uint32
             |  |     +--ro location?         int64
             |  |     +--ro accuracy?         int64
             |  |     +--ro magnitude?        int64
             |  |     +--ro attenuation?      int64
             |  +--ro rx-los-p
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro rx-loc
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro tx-power-fail-low
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro ingress-auto-laser-shut
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro ingress-auto-pow-red
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro ingress-ampli-gain-low
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro ingress-ampli-gain-high
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro egress-auto-laser-shut
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro egress-auto-pow-red
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro egress-ampli-gain-low
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro egress-ampli-gain-high
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro high-tx-br-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro high-rx-br-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro span-too-short-tx
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro span-too-short-rx
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman-auto-pow-red
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman1-low-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman2-low-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman3-low-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman4-low-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman5-low-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman1-high-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman2-high-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman3-high-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman4-high-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro raman5-high-pwr
             |  |  +--ro is-detected?   boolean
             |  |  +--ro counter?       uint32
             |  +--ro ots-och-alamr-info
             |  |  +--ro rx-los-p
             |  |  |  +--ro is-detected?   boolean
             |  |  |  +--ro counter?       uint32
             |  |  +--ro tx-power-fail-low
             |  |     +--ro is-detected?   boolean
             |  |     +--ro counter?       uint32
             |  +--ro ots-tone-info
             |  |  +--ro tone-freq?          string
             |  |  +--ro tone-rate?          uint32
             |  |  +--ro pattern?            string
             |  |  +--ro pattern-expected?   string
             |  |  +--ro dectected-oob?      uint32
             |  |  +--ro state?              Conn-verfcn-state
             |  |  +--ro pattern-received?   string
             |  +--ro transport-admin-state?                          Ots-tas
             |  +--ro rx-pow-low-threshold?                           int32
             |  +--ro rx-pow-high-threshold?                          int32
             |  +--ro tx-pow-low-threshold?                           int32
             |  +--ro tx-pow-high-threshold?                          int32
             |  +--ro pm-enable?                                      uint32
             |  +--ro controller-state?                               Ots-controller-state
             |  +--ro rx-voa-attenuation?                             int32
             |  +--ro tx-voa-attenuation?                             int32
             |  +--ro channel-width?                                  uint32
             |  +--ro central-frequncy?                               uint32
             |  +--ro add-drop-channel?                               string
             |  +--ro line-channel?                                   string
             |  +--ro ingress-ampli-gain?                             int32
             |  +--ro ingress-ampli-tilt?                             int32
             |  +--ro ingress-amp-gain-deg-thres-low?                 uint32
             |  +--ro ingress-amp-gain-deg-thres-high?                uint32
             |  +--ro ingress-ampli-gain-range?                       Ots-amplifier-gain-range
             |  +--ro egress-ampli-gain?                              int32
             |  +--ro egress-ampli-tilt?                              int32
             |  +--ro egress-amp-gain-deg-thres-low?                  uint32
             |  +--ro egress-amp-gain-deg-thres-high?                 uint32
             |  +--ro egress-ampli-gain-range?                        Ots-amplifier-gain-range
             |  +--ro composite-raman-power?                          uint32
             |  +--ro wavelength?                                     uint32
             |  +--ro transmit-power?                                 int32
             |  +--ro receive-power?                                  int32
             |  +--ro total-cl-tx-power?                              int32
             |  +--ro total-cl-rx-power?                              int32
             |  +--ro receive-signal-power?                           int32
             |  +--ro transmit-signal-power?                          int32
             |  +--ro ingress-ampli-osri?                             boolean
             |  +--ro egress-ampli-osri?                              boolean
             |  +--ro ingress-ampli-force-apr?                        boolean
             |  +--ro egress-ampli-force-apr?                         boolean
             |  +--ro ingress-ampli-safety-control-mode?              Ots-amplifier-safety-control-mode
             |  +--ro egress-ampli-safety-control-mode?               Ots-amplifier-safety-control-mode
             |  +--ro ingress-ampli-safety-control-mode-configured?   Ots-amplifier-safety-control-mode
             |  +--ro egress-ampli-safety-control-mode-configured?    Ots-amplifier-safety-control-mode
             |  +--ro ingress-ampli-osri-configured?                  boolean
             |  +--ro egress-ampli-osri-configured?                   boolean
             |  +--ro ingress-ampli-force-apr-configured?             boolean
             |  +--ro egress-ampli-force-apr-configured?              boolean
             |  +--ro raman-safety-control-mode?                      Ots-amplifier-safety-control-mode
             |  +--ro raman-safety-control-mode-configured?           Ots-amplifier-safety-control-mode
             |  +--ro raman-osri?                                     boolean
             |  +--ro raman-force-apr?                                boolean
             |  +--ro raman-osri-configured?                          boolean
             |  +--ro raman-force-apr-configured?                     boolean
             |  +--ro rx-pow-low-warning-threshold?                   int32
             |  +--ro rx-pow-high-warning-threshold?                  int32
             |  +--ro tx-pow-low-warning-threshold?                   int32
             |  +--ro tx-pow-high-warning-threshold?                  int32
             |  +--ro description?                                    string
             |  +--ro channel-attenuation?                            int32
             |  +--ro rx-voa-attenuation-config-val?                  int32
             |  +--ro tx-voa-attenuation-config-val?                  int32
             |  +--ro ampli-control-mode-config-val?                  Ots-amplifier-control-mode
             |  +--ro rx-low-th-psd-config-val?                       int32
             |  +--ro total-rx-power?                                 int32
             |  +--ro total-tx-power?                                 int32
             |  +--ro ingress-ampli-gain-range-config-val?            Ots-amplifier-gain-range
             |  +--ro ingress-ampli-gain-config?                      uint32
             |  +--ro ingress-ampli-tilt-config?                      int32
             |  +--ro ingress-ampli-thr-deg-low-config?               uint32
             |  +--ro ingress-ampli-thr-deg-high-config?              uint32
             |  +--ro egress-ampli-gain-range-config-val?             Ots-amplifier-gain-range
             |  +--ro egress-ampli-gain-config?                       uint32
             |  +--ro egress-ampli-tilt-config?                       int32
             |  +--ro egress-ampli-gain-thr-deg-low-config?           uint32
             |  +--ro egress-ampli-gain-thr-deg-high-config?          uint32
             |  +--ro channel-attenuation-configured?                 int32
             |  +--ro br-power?                                       int32
             |  +--ro raman-br-power?                                 int32
             |  +--ro led-state?                                      Led-state
             +--ro ots-spectrum-info
             |  +--ro spectrum-info
             |     +--ro total-spectrum-slice-count?   uint32
             |     +--ro spectrum-slice-spacing?       uint32
             |     +--ro first-slice-wavelength?       uint32
             |     +--ro first-slice-frequency?        uint32
             |     +--ro spectrum-slice-power-info*
             |        +--ro slice-num?   uint32
             |        +--ro rx-power?    int16
             |        +--ro tx-power?    int16
             +--ro name                 xr:Interface-name

The following is a sample tree structure of Cisco-IOS-XR-controller-ots-cfg model.

augment /a1:interface-configurations/a1:interface-configuration:
    +--rw ots
       +--rw ingress-channel-slice-attns
       |  +--rw ingress-channel-slice-attn* [ingress-channel-slice-attn]
       |     +--rw ingress-channel-slice-attn         uint32
       |     +--rw ingress-channel-slice-attnvalue    uint32
       +--rw raman-tx-power-disables
       |  +--rw raman-tx-power-disable* [raman-tx-power-disable-instance]
       |     +--rw raman-tx-power-disable-instance    uint32
       +--rw raman-tx-powers
       |  +--rw raman-tx-power* [raman-tx-power-instance]
       |     +--rw raman-tx-power-instance    uint32
       |     +--rw raman-tx-power-value       uint32
       +--rw ots-otdr
       |  +--rw ots-otdr-rx
       |  |  +--rw ots-otdr-rx-expert
       |  |  |  +--rw ots-otdr-rx-capture-start?   uint32
       |  |  |  +--rw ots-otdr-rx-scan-duration?   uint32
       |  |  |  +--rw ots-otdr-rx-pulse-width?     uint32
       |  |  |  +--rw ots-otdr-rx-capture-end?     uint32
       |  |  +--rw ots-otdr-rx-auto
       |  |  |  +--rw ots-otdr-rx-excess-reflection-threshold?   int32
       |  |  |  +--rw ots-otdr-rx-splice-loss-threshold?         uint32
       |  |  |  +--rw ots-otdr-rx-raman-setpoint?                uint32
       |  |  |  +--rw ots-otdr-rx-reflectance-threshold?         int32
       |  |  +--rw ots-otdr-rx-back-scattering?    int32
       |  |  +--rw ots-otdr-rx-refractive-index?   uint32
       |  +--rw ots-otdr-scan-mode
       |  |  +--rw ots-otdr-scan-mode-expert?   empty
       |  +--rw ots-otdr-tx
       |     +--rw ots-otdr-tx-expert
       |     |  +--rw ots-otdr-tx-capture-end?     uint32
       |     |  +--rw ots-otdr-tx-scan-duration?   uint32
       |     |  +--rw ots-otdr-tx-capture-start?   uint32
       |     |  +--rw ots-otdr-tx-pulse-width?     uint32
       |     +--rw ots-otdr-tx-auto
       |     |  +--rw ots-otdr-tx-splice-loss-threshold?         uint32
       |     |  +--rw ots-otdr-tx-excess-reflection-threshold?   int32
       |     |  +--rw ots-otdr-tx-raman-setpoint?                uint32
       |     |  +--rw ots-otdr-tx-reflectance-threshold?         int32
       |     +--rw ots-otdr-tx-refractive-index?   uint32
       |     +--rw ots-otdr-tx-back-scattering?    int32
       +--rw egress-channel-slice-attns
       |  +--rw egress-channel-slice-attn* [egress-channel-slice-attn]
       |     +--rw egress-channel-slice-attn         uint32
       |     +--rw egress-channel-slice-attnvalue    uint32
       +--rw ots-egress-safety-control-mode?                      Ots-safety-control-mode
       +--rw ots-ingress-amplifier-gain?                          uint32
       +--rw ots-tone-pattern-expected?                           string
       +--rw ots-ingress-osri?                                    boolean
       +--rw ots-ingress-amplifier-gain-degrade-high-threshold?   uint32
       +--rw ots-tx-voa-attenuation?                              uint32
       +--rw ots-ingress-safety-control-mode?                     Ots-safety-control-mode
       +--rw ots-tone-detect-oob?                                 empty
       +--rw ots-ingress-force-apr?                               boolean
       +--rw ots-raman-force-apr?                                 boolean
       +--rw ots-egress-amplifier-gain-degrade-low-threshold?     uint32
       +--rw ots-ingress-amplifier-gain-degrade-low-threshold?    uint32
       +--rw ots-egress-amplifier-tilt?                           int32
       +--rw ots-raman-safety-control-mode?                       Ots-safety-control-mode
       +--rw ots-tone-frequency?                                  string
       +--rw ots-egress-amplifier-gain?                           uint32
       +--rw ots-tone-pattern?                                    string
       +--rw ots-egress-amplifier-gain-degrade-high-threshold?    uint32
       +--rw ots-raman-osri?                                      boolean
       +--rw ots-egress-osri?                                     boolean
       +--rw ots-egress-amplifier-gain-range?                     Ots-ingress-egress-ampli-gain-range
       +--rw ots-ingress-amplifier-gain-range?                    Ots-ingress-egress-ampli-gain-range
       +--rw ots-ingress-amplifier-tilt?                          int32
       +--rw ots-tone-rate?                                       uint32
       +--rw ots-egress-force-apr?                                boolean

Configure Flex Grid in OLT

Procedure


Step 1

Use the Cisco-IOS-XR-osa-linesystem-cfg.yang Yang model to configure flex grid channel in the OLT card.

Note

 

From release 7.9.1 L band frequency range 186.05 THz - 190.8875 THz in addition to the C band frequency range 191.3375 THz-196.1750 THz is supported.

Yang Model

Example

Cisco-IOS-XR-osa-linesystem-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <active-nodes xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-config-mda-cfg">
        <active-node>
          <node-name>0/0/NXR0</node-name>
          <terminal-amplifier xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-osa-linesystem-cfg">
            <olt-grid-mode>
              <olt-channel-identifiers>
                <olt-channel-identifier>
                  <channel-number>1</channel-number>
                  <centre-frequency>191.375</centre-frequency>
                  <channel-width>75</channel-width>
                </olt-channel-identifier>
              </olt-channel-identifiers>
            </olt-grid-mode>
          </terminal-amplifier>
        </active-node>
      </active-nodes>
    </config>
  </edit-config>
</rpc>

Step 2

Use the Cisco-IOS-XR-osa-hwmod-linesys-oper.yang Yang model to get the operational data of the flex grid channel configured on the OLT card.

Yang Model

Example

Cisco-IOS-XR-osa-hwmod-linesys-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:0b9fd0cf-b58c-4af2-8503-7b20f933145d"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
        <osa xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-osa-hwmod-linesys-oper">
            <node-ids>
        <node-id>
                  <node-name>0/0/NXR0</node-name>
                    <terminal-ampli>
                        <status>slice-config-complete</status>
                        <flexi-grid-info>
                            <channel-number>1</channel-number>
                            <centre-frequency-thz>191.375000</centre-frequency-thz>
                          <channel-width-ghz>75.000</channel-width-ghz>      
            </flexi-grid-info>     
          </terminal-ampli>
        </node-id>   
      </node-ids> 
    </osa>
      </data>
  </rpc-reply>

Configure Flex Grid in ILA card

Procedure


Step 1

Use the Cisco-IOS-XR-osa-linesystem-cfg.yang Yang model to configure the flex grid channel in the ILA card.

Yang Model

Example

Cisco-IOS-XR-osa-linesystem-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <active-nodes xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-config-mda-cfg">
        <active-node>
          <node-name>0/0/NXR0</node-name>
          <inline-amplifier xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-osa-linesystem-cfg">
            <ila-grid-mode>
              <ila-channel-identifiers>
                <ila-channel-identifier>
                  <channel-number>1</channel-number>
                  <centre-frequency>191.375</centre-frequency>
                  <channel-width>75</channel-width>
                </ila-channel-identifier>
              </ila-channel-identifiers>
            </ila-grid-mode>
          </inline-amplifier>
        </active-node>
      </active-nodes>
    </config>
  </edit-config>
</rpc>

Step 2

Use the Cisco-IOS-XR-osa-hwmod-linesys-oper.yang Yang model to get the operational data for the flex grid channel configured on the ILA card.

Yang Model

Example

Cisco-IOS-XR-osa-hwmod-linesys-oper.yang


<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <active-nodes xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-config-mda-cfg">
        <active-node>
          <node-name>0/0/NXR0</node-name>
          <inline-amplifier xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-osa-linesystem-cfg">
            <ila-grid-mode>
              <ila-channel-identifiers>
                <ila-channel-identifier>
                  <channel-number>1</channel-number>
                  <centre-frequency>191.375</centre-frequency>
                  <channel-width>75</channel-width>
                </ila-channel-identifier>
              </ila-channel-identifiers>
            </ila-grid-mode>
          </inline-amplifier>
        </active-node>
      </active-nodes>
    </config>
  </edit-config>
</rpc>

Configure OTS Controller

Procedure


Step 1

Use the Cisco-IOS-XR-controller-ots-cfg.yang Yang model to configure the OTS controller.

Yang Model

Example

Cisco-IOS-XR-controller-ots-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Ots0/0/0/0</interface-name>
          <ots xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-ots-cfg">
            <ots-egress-safety-control-mode>auto</ots-egress-safety-control-mode>
            <ots-ingress-amplifier-gain>160</ots-ingress-amplifier-gain>
            <ots-ingress-osri>true</ots-ingress-osri>
            <ots-tx-voa-attenuation>200</ots-tx-voa-attenuation>
            <ots-ingress-force-apr>false</ots-ingress-force-apr>
            <ots-egress-amplifier-tilt>-40</ots-egress-amplifier-tilt>
            <ots-egress-amplifier-gain>180</ots-egress-amplifier-gain>
            <ots-egress-osri>false</ots-egress-osri>
            <ots-ingress-amplifier-gain-range>normal</ots-ingress-amplifier-gain-range>
            <ots-ingress-amplifier-tilt>50</ots-ingress-amplifier-tilt>
            <ots-egress-force-apr>true</ots-egress-force-apr>
          </ots>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>

Step 2

Use the Cisco-IOS-XR-controller-ots-oper.yang Yang model to view the parameters of the OTS controller.

Note

 

In the current release, all the controller models are mapped to the OTS controller model. Hence the operational data of all the controllers display "ots-state-up" as the controller state, and "ots-tas-ui-is" as transport-admin-sate, irrespective of the functionality.

Yang Model

Example

Cisco-IOS-XR-controller-ots-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:1ecef265-e94d-4b42-ad53-adb137a58efc" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <data>
       <ots-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-ots-oper">
          <ots-ports>
              <ots-port>
                <name>Ots0/0/0/0</name>
                   <ots-info>      
            <transport-admin-state>ots-tas-ui-is</transport-admin-state>
                         <controller-state>ots-state-up</controller-state>
                 <tx-voa-attenuation>200</tx-voa-attenuation>
                          <ingress-ampli-gain>160</ingress-ampli-gain>
                          <ingress-ampli-tilt>50</ingress-ampli-tilt>
                      <ingress-ampli-gain-range>ots-amplifier-gain-range-normal</ingress-ampli-gain-range>
                    <egress-ampli-gain>180</egress-ampli-gain>
                       <egress-ampli-tilt>-40</egress-ampli-tilt>
                     <total-cl-tx-power>2000</total-cl-tx-power>
                        <total-cl-rx-power>-1000</total-cl-rx-power>
                    <receive-signal-power>2000</receive-signal-power>
                       <transmit-signal-power>2000</transmit-signal-power>
                    <ingress-ampli-osri>true</ingress-ampli-osri>
                      <egress-ampli-osri>false</egress-ampli-osri>
             .................................................
             .................................................
             ..................................................
<tx-power>-105</tx-power>
                             </spectrum-slice-power-info>
                          <spectrum-slice-power-info>
                              <slice-num>1546</slice-num>
                             <rx-power>-105</rx-power>
                               <tx-power>-105</tx-power>
                              </spectrum-slice-power-info>
                            <spectrum-slice-power-info>
                               <slice-num>1547</slice-num>
                                    <rx-power>-105</rx-power>
                                <tx-power>-105</tx-power>
                      </spectrum-slice-power-info>
                          <spectrum-slice-power-info>
                           <slice-num>1548</slice-num>
                               <rx-power>-105</rx-power>
                        <tx-power>-105</tx-power>
              </spectrum-slice-power-info> 
            </spectrum-info> 
          </ots-spectrum-info>
        </ots-port> 
      </ots-ports> 
    </ots-oper>
  </data>
</rpc-reply>

Configure OCH Controller

Procedure


Step 1

Use the Cisco-IOS-XR-controller-och-cfg.yang Yang model to configure the OCH controller.

Yang Model

Example

Cisco-IOS-XR-controller-och-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Och0/3/0/31</interface-name>
          <och xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-och-cfg">
            <och-tone-pattern-expected>1234abcd</och-tone-pattern-expected>
            <och-tone-rate>20</och-tone-rate>
          </och>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>

Step 2

Use Cisco-IOS-XR-controller-och-oper.yang Yang model to view the OCH controller parameters.

Yang Model

Example

Cisco-IOS-XR-controller-och-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:50be1a71-e729-442d-aec7-14f486cd6028" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <och-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-och-oper">   
      <och-ports>    
        <och-port>     
          <name>Och0/3/0/31</name>     
          <och-info>      
            <rx-power>0</rx-power>      
            <tx-power>-5000</tx-power>      
            <channel-frequency>191375</channel-frequency>     
            <channel-width>1500</channel-width>      
            <channel-wavelength>156652</channel-wavelength>      
            <controller-state>ots-state-up</controller-state>      
            <led-state>off</led-state>      
            <rx-los-p>       
              <is-detected>false</is-detected>       
              <counter>0</counter>      
            </rx-los-p>      
            <tx-power-fail-low>                    
              <is-detected>false</is-detected>       
              <counter>0</counter>      
            </tx-power-fail-low>      
            <och-tone-info>       
              <tone-rate>20</tone-rate>       
              <pattern-expected>1234abcd</pattern-expected>       
              <dectected-oob>0</dectected-oob>       
              <state>conn-vrfcn-state-not-running</state>      
            </och-tone-info>      
            <transport-admin-state>ots-tas-ui-is</transport-admin-state>     
          </och-info>    
        </och-port>  
      </och-ports>  
    </och-oper> 
  </data>
  </rpc-reply>

Configure Optical Cross-Connect

Procedure


Step 1

Use the Cisco-IOS-XR-Ots-Och-cfg.yang Yang model to configure an optical cross-connect (OTS-OCH controller).

Yang Model

Example

Cisco-IOS-XR-Ots-Och-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Ots-Och0/0/0/0/1</interface-name>
          <ots-och xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-Ots-Och-cfg">
            <add-drop-channel>Ots-Och0/0/0/2/1</add-drop-channel>
          </ots-och>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>

Step 2

Use the Cisco-IOS-XR-controller-ots-och-oper.yang Yang model to view the parameters of the OTS-OCH controller.

Yang Model

Example

Cisco-IOS-XR-controller-ots-och-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:71601b7f-caee-4e65-9627-b5043e66436d"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <data>
       <ots-och-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-ots-och-oper">   
      <ots-och-ports>    
        <ots-och-port>     
          <name>Ots-Och0/0/0/0/1</name>    
          <ots-och-info>      
            <transport-admin-state>ots-tas-ui-is</transport-admin-state>      
            <controller-state>ots-state-up</controller-state>      
            <add-drop-channel>Ots-Och0/0/0/2/1</add-drop-channel>
            <total-rx-power>-1050</total-rx-power>      
            <total-tx-power>-1050</total-tx-power>     
          </ots-och-info>    
        </ots-och-port>   
      </ots-och-ports>  
    </ots-och-oper>
  </data>
</rpc-reply>

Configure OMS Controller

Procedure


Step 1

Use the Cisco-IOS-XR-controller-oms-cfg.yang Yang model to configure the OMS controller.

Yang Model

Example

Cisco-IOS-XR-controller-oms-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Oms0/3/0/32</interface-name>
          <oms xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-oms-cfg">
            <oms-tone-rate>20</oms-tone-rate>
            <oms-tone-pattern-expected>abcd1234</oms-tone-pattern-expected>
            <oms-tone-detect-oob/>
          </oms>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>

Step 2

Use the Cisco-IOS-XR-controller-oms-oper.yang Yang model to view the parameters of the OMS controller.

Yang Model

Example

Cisco-IOS-XR-controller-oms-oper

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:ba7b0faf-3762-4a8e-b9fe-e8d190a2dbe7"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <data>  
    <oms-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-oms-oper">
      <oms-ports>    
        <oms-port>    
          <name>Oms0/3/0/32</name>  
          <oms-info>    
            <rx-power>0</rx-power>      
            <tx-power>0</tx-power>      
            <controller-state>ots-state-up</controller-state>      
            <led-state>off</led-state>      
            <rx-los-p>       
              <is-detected>false</is-detected>       
              <counter>0</counter>      
            </rx-los-p>      
            <tx-power-fail-low>       
              <is-detected>false</is-detected>       
              <counter>0</counter>
            </tx-power-fail-low>
                    <oms-tone-info>
                            <tone-rate>20</tone-rate>       
              <pattern-expected>abcd1234</pattern-expected>       
              <dectected-oob>1</dectected-oob>       
              <state>conn-vrfcn-state-not-running</state>      
            </oms-tone-info>      
            <transport-admin-state>ots-tas-ui-is</transport-admin-state>     
          </oms-info>    
        </oms-port>   
      </oms-ports>  
    </oms-oper>
  </data>
 </rpc-reply>

Configure DFB Controller

Procedure


Step 1

Use the Cisco-IOS-XR-controller-dfb-cfg.yang Yang model to configure the DFB controller.

Yang Model

Example

Cisco-IOS-XR-controller-dfb-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Dfb0/0/0/0</interface-name>
          <dfb xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-dfb-cfg">
            <dfb-tx-voa-attenuation>150</dfb-tx-voa-attenuation>
          </dfb>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>

Step 2

Use the Cisco-IOS-XR-controller-dfb-oper.yang Yang model to view the DFB controller parameters.

Yang Model

Example

Cisco-IOS-XR-controller-dfb-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:41205dcf-f92f-4b73-bdf3-ba64438d15ac" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <dfb-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-dfb-oper">
      <dfb-ports>
        <dfb-port>
                   <name>Dfb0/0/0/0</name>
                <dfb-info>
                      <laser-state>on</laser-state>
                      <controller-state>ots-state-up</controller-state>
                      <transport-admin-state>ots-tas-ui-is</transport-admin-state>
                      <total-rx-power>1000</total-rx-power>
                      <total-tx-power>2000</total-tx-power>
                      <tx-voa-attenuation>150</tx-voa-attenuation>
                      <tx-voa-attenuation-config-val>150</tx-voa-attenuation-config-val>
            <rx-los-p>    
                    <is-detected>false</is-detected>
                   <counter>0</counter>
                          </rx-los-p>
                        <tx-power-fail-low>
                           <is-detected>false</is-detected>
                          <counter>0</counter>
                </tx-power-fail-low>          
            </dfb-info>  
        </dfb-port> 
      </dfb-ports>
    </dfb-oper>
  </data>
</rpc-reply>

Configure OSC Controller

Procedure


Step 1

Use the Cisco-IOS-XR-controller-osc-cfg.yang Yang model to configure the OSC controller.

Yang Model

Example

Cisco-IOS-XR-controller-osc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
          <active>act</active>
          <interface-name>Osc0/0/0/0</interface-name>
          <osc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-osc-cfg">
            <osc-transmit-power>20</osc-transmit-power>
            <osc-transmit-shutdown>false</osc-transmit-shutdown>
          </osc>
        </interface-configuration>
      </interface-configurations>
    </config>
  </edit-config>
</rpc>

Step 2

Use Cisco-IOS-XR-controller-osc-oper.yang Yang model to view the OSC controller parameters.

Yang Model

Example

Cisco-IOS-XR-controller-osc-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:57794a6c-fe5b-425e-8df7-7c09a789b757" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <data>
      <osc-oper xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-controller-osc-oper">
            <osc-ports>      
            <osc-port>
                <name>Osc0/0/0/0</name>
                  <osc-info>
                       <laser-state>off</laser-state>      
                          <controller-state>ots-state-up</controller-state>      
                             <transport-admin-state>ots-tas-ui-is</transport-admin-state>
                              <total-rx-power>-5000</total-rx-power>
                              <total-tx-power>-5000</total-tx-power>
                              <rx-los-p>
                                   <is-detected>false</is-detected>
                                   <counter>0</counter>
                             </rx-los-p>
                           <tx-power-fail-low>       
              <is-detected>false</is-detected>       
              <counter>0</counter>      
            </tx-power-fail-low>     
          </osc-info>    
        </osc-port>        
        </osc-ports>
    </osc-oper>
    </data>
  </rpc-reply>

Configure FPD Package

Procedure


Step 1

Use the Cisco-IOS-XR-fpd-infra-cfg.yang Yang model to configure FPD package.

Yang Model

Example

Cisco-IOS-XR-fpd-infra-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <fpd xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-fpd-infra-cfg">
        <auto-upgrade>enable</auto-upgrade>
      </fpd>
    </config>
  </edit-config>
</rpc>

Step 2

Use Cisco-IOS-XR-show-fpd-loc-ng-oper.yang Yang model to view the operational data for FPD package details

Yang Model

Example

Cisco-IOS-XR-show-fpd-loc-ng-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:a69ef4eb-f4c8-461e-8858-4d70169df583" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data> 
    <show-fpd xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-show-fpd-loc-ng-oper"> 
      <locations>
        <location> 
          <location-name>0-RP0-CPU0</location-name>  
          <fpds>
            <fpd> 
              <fpd-name>fpd_list</fpd-name>   
              <upgrade-status>No upgrade in progress</upgrade-status>
              <fpd-info-detaile> 
                <location>0/RP0/CPU0</location> 
                <card-name>NCS1010-CNTLR-K9</card-name>
                <fpd-name>ADMConfig</fpd-name>
                <hw-version>0.1 </hw-version> 
                <secure-boot-attr>   </secure-boot-attr>
                <status>NEED UPGD</status>
                <running-version>  7.01 </running-version>
                <programd-version>  7.01 </programd-version>
                <reload-location>0/RP0</reload-location>
              </fpd-info-detaile>
              <fpd-info-detaile>
               <location>0/RP0/CPU0</location>
                <card-name>NCS1010-CNTLR-K9</card-name>
                <fpd-name>BIOS</fpd-name>
                 <hw-version>0.1 </hw-version>
.
.
.
<set-timestamp>1654756033</set-timestamp>
              <clear-time>-</clear-time>
              <clear-timestamp>0</clear-timestamp>
              <description>Ots0/0/0/0 - APC blocked</description>
            </alarm-info>
          </active>
        </brief-system> 
      </brief>
    </alarms>
  </data>
  </rpc-reply>

View NCS 1010 Platform Details

Procedure


Use the Cisco-IOS-XR-platform-oper.yang Yang model to view the platform details of the NCS 1010 node.

Yang Models

Example

Cisco-IOS-XR-platform-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:5323a66f-728c-45a8-a8be-96751fe7081a" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <data>
    <platform xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-platform-oper">
     <racks>    
        <rack>     
          <rack-name>0</rack-name>     
          <slots>      
            <slot> 
              <slot-name>RP0</slot-name>
              <instances>        
                <instance>         
                  <instance-name>CPU0</instance-name>         
                  <state>         
                    <card-type>NCS1010-CNTLR-K9</card-type>         
                    <card-redundancy-state>active</card-redundancy-state>          
                    <state>not-applicable</state>          
                    <admin-state>NSHUT,NMON</admin-state>          
                    <node-name>0/RP0/CPU0</node-name>          
                    <oper-state>IOS XR RUN</oper-state>         
                  </state>        
                </instance>       
              </instances>      
            </slot>      
            <slot>          
.
. 
.
                   <card-type>NCS1K-MD-32E-C</card-type>        
                <card-redundancy-state>red-state-none</card-redundancy-state>        
                <state>not-applicable</state>        
                <admin-state>NSHUT,NMON</admin-state>
                <node-name>0/3</node-name>        
                <oper-state>OPERATIONAL</oper-state>       
              </state>      
            </slot>     
          </slots>    
        </rack>  
      </racks> 
    </platform>
  </data>
</rpc-reply>


Optical Applications

Table 1. Span Loss

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <span-loss-ctrlr-tables>
          <span-loss-ctrlr-table>
            <name>Ots0/0/0/0</name>
          </span-loss-ctrlr-table>
        </span-loss-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>
##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:b2b7bfbe-c5d6-42c5-8fc3-f716c7acd04e"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns
:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <data>
     <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
       <span-loss-ctrlr-tables>
          <span-loss-ctrlr-table>
            <name>Ots0/0/0/0</name>
            <neighbour-rid>10.1.1.4</neighbour-rid>
            <apparent-rx-span-loss>30.0 dB</apparent-rx-span-loss>
            <apparent-tx-span-loss>0.0 dB</apparent-tx-span-loss>
            <dfb-rx-span-loss-with-pumps-off>0.0 dB</dfb-rx-span-loss-with-pumps-off>
            <ts-dfb-rx-span-loss-with-pumps-off>2023-01-16 
05:05:50</ts-dfb-rx-span-loss-with-pumps-off>
            <dfb-tx-span-loss-with-pumps-off>0.0 dB</dfb-tx-span-loss-with-pumps-off>
            <ts-dfb-tx-span-loss-with-pumps-off>2023-01-16 
05:07:12</ts-dfb-tx-span-loss-with-pumps-off>
            <est-rx-span-loss>NA</est-rx-span-loss>
            <est-tx-span-loss>NA</est-tx-span-loss>
          </span-loss-ctrlr-table>
        </span-loss-ctrlr-tables>
      </olc>
   </data>
 </rpc-reply>
Table 2. Configure Span Loss Thresholds

Cisco-IOS

-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
 message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <span-loss>
              <max-threshold>110</max-threshold>
              <min-threshold>100</min-threshold>
            </span-loss>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
  <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>

Raman Tuning

Table 3. Configuring Raman tuning gain

Cisco-IOS-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" 
message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <raman>
              <raman-tune-target-gain>220</raman-tune-target-gain>
              <raman-tune-cfg-state>enable</raman-tune-cfg-state>
            </raman>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>
Table 4. View Raman tuning status

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <raman-tuning-ctrlr-tables>
          <raman-tuning-ctrlr-table>
            <name>Ots0/0/0/0</name>
          </raman-tuning-ctrlr-table>
        </raman-tuning-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>

##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:f30ed6d0-9239-4f5d-b436-3855df87d056"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:
nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
     <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <raman-tuning-ctrlr-tables>
        <raman-tuning-ctrlr-table>
          <name>Ots0/0/0/0</name>
          <status>tuned</status>
          <tuning-complete-timestamp>2023-01-17 06:32:45</tuning-complete-timestamp>
          <target-gain>220.0</target-gain>
          <max-gain>240.0</max-gain>
          <tuning-complete-gain>220.0</tuning-complete-gain>
          <last-tuned-gain>220.0</last-tuned-gain>
          <last-tuned-timestamp>2023-01-17 06:32:45</last-tuned-timestamp>
        </raman-tuning-ctrlr-table>
      </raman-tuning-ctrlr-tables>
    </olc>
  </data>
</rpc-reply>

Gain Estimator

Table 5. Configure gain estimator status

Cisco-IOS-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:
ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <gain-estimator>
              <gain-estimator-cfg-state>enable</gain-estimator-cfg-state>
            </gain-estimator>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>
Table 6. View gain estimator values

Cisco-IOS-XR-olc-oper.yang

##Requets##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <gain-estimator-ctrlr-tables>
          <gain-estimator-ctrlr-table>
            <name>Ots0/0/0/0</name>
          </gain-estimator-ctrlr-table>
        </gain-estimator-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>
##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:a6de328a-907f-49f8-adf4-c8e8dccced3f"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:
nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <gain-estimator-ctrlr-tables>
        <gain-estimator-ctrlr-table>
          <name>Ots0/0/0/0</name>
          <ingress-status>
            <status>idle</status>
            <last-gain-cmpt-time-stamp>2023-01-17 06:40:00</last-gain-cmpt-time-stamp>
            <computed-gain>32.5</computed-gain>
            <computed-gain-mode>Extended</computed-gain-mode>
          </ingress-status>
        </gain-estimator-ctrlr-table>
      </gain-estimator-ctrlr-tables>
    </olc>
  </data>
</rpc-reply>

Link Tuner

Table 7. Configure Link tuner

Cisco-IOS-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:
ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <link-tuner>
              <spectrum-density>90</spectrum-density>
              <link-tuner-cfg-state>enable</link-tuner-cfg-state>
            </link-tuner>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>
Table 8. View Link Tuner values

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <link-tuner-table>
          <link-tuner-detail-ctrlr-tables/>
        </link-tuner-table>
      </olc>
    </filter>
  </get>
</rpc>
##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:d2734b87-2bbb-4040-b346-9fa05f09bac6"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns
:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <link-tuner-table>
        <link-tuner-detail-ctrlr-tables>
          <link-tuner-detail-ctrlr-table>
            <name>Ots0/0/0/0</name>
            <link-tuner-info>
              <status>operational</status>
              <last-psd-cmpt-time-stamp>2023-01-17 07:00:17</last-psd-cmpt-time-stamp>
              <psd-info>
                <setpoint>1</setpoint>
                <computed-optimum-psd>-107.9</computed-optimum-psd>
               </psd-info>
               <psd-info>
                <setpoint>2</setpoint>
                <computed-optimum-psd>-107.9</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>3</setpoint>
                <computed-optimum-psd>-107.9</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>4</setpoint>
                <computed-optimum-psd>-107.9</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>5</setpoint>
                 <computed-optimum-psd>-108.0</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>6</setpoint>
                <computed-optimum-psd>-108.0</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>7</setpoint>
                <computed-optimum-psd>-108.0</computed-optimum-psd>
              </psd-info>
              <psd-info>
                 <setpoint>8</setpoint>
                <computed-optimum-psd>-108.0</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>9</setpoint>
                <computed-optimum-psd>-108.0</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>10</setpoint>
                <computed-optimum-psd>-108.1</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>11</setpoint>
                <computed-optimum-psd>-108.1</computed-optimum-psd>
              </psd-info>
               <psd-info>
                 <setpoint>12</setpoint>
                 <computed-optimum-psd>-108.1</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>13</setpoint>
                 <computed-optimum-psd>-108.1</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>14</setpoint>
                 <computed-optimum-psd>-108.1</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>15</setpoint>
                 <computed-optimum-psd>-108.2</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>16</setpoint>
                 <computed-optimum-psd>-108.2</computed-optimum-psd>
               </psd-info>
               <psd-info>
                <setpoint>17</setpoint>
                 <computed-optimum-psd>-108.2</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>18</setpoint>
                <computed-optimum-psd>-108.2</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>19</setpoint>
                 <computed-optimum-psd>-108.2</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>20</setpoint>
                 <computed-optimum-psd>-108.3</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>21</setpoint>
                 <computed-optimum-psd>-108.3</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>22</setpoint>
                 <computed-optimum-psd>-108.3</computed-optimum-psd>
               </psd-info>
               <psd-info>
                 <setpoint>23</setpoint>
                <computed-optimum-psd>-108.3</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>24</setpoint>
                <computed-optimum-psd>-108.3</computed-optimum-psd>
              </psd-info>
              <psd-info>
                 <computed-optimum-psd>-108.3</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>26</setpoint>
                <computed-optimum-psd>-108.4</computed-optimum-psd>
              </psd-info>
              <psd-info>
                 <setpoint>27</setpoint>
                <computed-optimum-psd>-108.4</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>28</setpoint>
                <computed-optimum-psd>-108.4</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>29</setpoint>
                <computed-optimum-psd>-108.4</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>30</setpoint>
                <computed-optimum-psd>-108.4</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>31</setpoint>
                <computed-optimum-psd>-108.5</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>32</setpoint>
                <computed-optimum-psd>-108.5</computed-optimum-psd>
              </psd-info>
              <psd-info>
                <setpoint>33</setpoint>
                <computed-optimum-psd>-108.5</computed-optimum-psd>
              </psd-info>
            </link-tuner-info>
            <computed-total-noise>-53.84</computed-total-noise>
          </link-tuner-detail-ctrlr-table>
        </link-tuner-detail-ctrlr-tables>
      </link-tuner-table>
    </olc>
  </data>
</rpc-reply>

Partner band configuration

Table 9. Configuring partner band

Cisco-IOS-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <partner-band-config>
              <partner-band-ipv4>
                <partner-port-ipv4-info>
                  <neighbor-address>12.0.0.18</neighbor-address>
                  <controller>Ots0/0/0/0</controller>
                </partner-port-ipv4-info>
              </partner-band-ipv4>
            </partner-band-config>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>
Table 10. View partner band loss

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <partnerband-loss-ctrlr-tables>
          <partnerband-loss-ctrlr-table>
            <name>Ots0/0/0/0</name>
          </partnerband-loss-ctrlr-table>
        </partnerband-loss-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>

##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:18fd9707-b1ab-43c6-9903-973698f5ba13"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns
:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <partnerband-loss-ctrlr-tables>
        <partnerband-loss-ctrlr-table>
          <name>Ots0/0/0/0</name>
          <partner-controller>Ots0/0/0/0</partner-controller>
          <partner-ip>12.0.0.18</partner-ip>
          <cl-patch-loss>37.0</cl-patch-loss>
          <cl-path-loss>37.0</cl-path-loss>
          <ts-loss>2023-01-17 07:20:08</ts-loss>
        </partnerband-loss-ctrlr-table>
      </partnerband-loss-ctrlr-tables>
    </olc>
  </data>
</rpc-reply>

APC(Automatic Power Control)

Table 11. Configuring APC

Cisco-IOS-XR-olc-cfg.yang

<rpc xmlns="urn:ietf:params:xml
:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-cfg">
        <controller-rsips>
          <controller-rsip>
            <controller>Ots0/0/0/0</controller>
            <apc>
              <psds>
                <psd>
                  <psd-index>1</psd-index>
                  <psd-value>-52</psd-value>
                </psd>
              </psds>
              <apc-cfg-state>enable</apc-cfg-state>
            </apc>
          </controller-rsip>
        </controller-rsips>
      </olc>
    </config>
  </edit-config>
</rpc>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="102">
  <commit/>
</rpc>
Table 12. View APC status

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <apc-status-ctrlr-tables>
          <apc-status-ctrlr-table>
            <name>Ots0/0/0/0</name>
          </apc-status-ctrlr-table>
        </apc-status-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>

##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:b7440b4e-3df1-4e20-851a-38ec69353703"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
 xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <apc-status-ctrlr-tables>
        <apc-status-ctrlr-table>
          <name>Ots0/0/0/0</name>
          <status>working</status>
          <corr-node>10.1.1.5</corr-node>
          <node-status>
            <node-id>10.1.1.5</node-id>
            <internal-state>oor</internal-state>
          </node-status>
          <node-status>
            <node-id>10.1.1.4</node-id>
            <internal-state>oor</internal-state>
          </node-status>
          <node-status>
            <node-id>10.1.1.3</node-id>
            <internal-state>oor</internal-state>
          </node-status>
          <node-status>
            <node-id>10.1.1.2</node-id>
            <internal-state>oor</internal-state>
          </node-status>
          <node-status>
            <node-id>10.1.1.1</node-id>
            <internal-state>oor</internal-state>
          </node-status>
        </apc-status-ctrlr-table>
      </apc-status-ctrlr-tables>
    </olc>
  </data>
</rpc-reply>
Table 13. View Band status

Cisco-IOS-XR-olc-oper.yang

##Request##
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
        <band-status-ctrlr-tables>
          <band-status-ctrlr-table>
          </band-status-ctrlr-table>
        </band-status-ctrlr-tables>
      </olc>
    </filter>
  </get>
</rpc>
##Response##
<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:31d90a38-5856-4afb-b483-eb821573ec86"
 xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
 xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
  <data>
    <olc xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-olc-oper">
      <band-status-ctrlr-tables>
        <band-status-ctrlr-table>
          <name>Ots0/0/0/0</name>
          <self-band>c-band</self-band>
          <band-node-info>
            <node-rid>10.1.1.5</node-rid>
            <partner-ip>12.0.0.18</partner-ip>
            <partner-controller>Ots0/0/0/0</partner-controller>
            <band-info>
              <band-type>c-band</band-type>
              <band-status>recovering</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <band-info>
              <band-type>l-band</band-type>
              <band-status>recovering</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <partner-band-conn-state>conn-down</partner-band-conn-state>
          </band-node-info>
          <band-node-info>
            <node-rid>10.1.1.4</node-rid>
            <partner-controller/>
            <band-info>
              <band-type>c-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <band-info>
              <band-type>l-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <partner-band-conn-state>conn-unknown</partner-band-conn-state>
          </band-node-info>
          <band-node-info>
            <node-rid>10.1.1.3</node-rid>
            <partner-controller/>
            <band-info>
              <band-type>c-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <band-info>
              <band-type>l-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <partner-band-conn-state>conn-unknown</partner-band-conn-state>
          </band-node-info>
          <band-node-info>
            <node-rid>10.1.1.2</node-rid>
            <partner-controller/>
            <band-info>
              <band-type>c-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <band-info>
              <band-type>l-band</band-type>
              <band-status>unknown</band-status>
              <psd-type>unknown</psd-type>
            </band-info>
            <partner-band-conn-state>conn-unknown</partner-band-conn-state>
          </band-node-info>
          <band-node-info>
            <node-rid>10.1.1.1</node-rid>
            <partner-controller/>
            <band-info>
              <band-type>c-band</band-type>
              <band-status>unknown</band-status>
            </band-info>
            <band-info>
              <band-type>l-band</band-type>
              <band-status>unknown</band-status>
            </band-info>
            <partner-band-conn-state>conn-unknown</partner-band-conn-state>
          </band-node-info>
          <bfr-status>status-running</bfr-status>
        </band-status-ctrlr-table>
      </band-status-ctrlr-tables>
    </olc>
  </data>
 </rpc-reply>

View Performance Monitoring Parameters

Procedure


Use Cisco-IOS-XR-pmengine-oper.yang Yang model to view the performance monitoring parameters on the controllers.

Yang Model

Example

Cisco-IOS-XR-pmengine-oper.yang


rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <get>
    <filter>
      <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-oper">
        <optics>
          <optics-ports>
            <optics-port>
              <name>Ots0/0/0/0</name>
              <optics-current>
                <optics-second30>
                  <optics-second30-optics/>
                </optics-second30>
              </optics-current>
            </optics-port>
          </optics-ports>
        </optics>
      </performance-management>
    </filter>
  </get>
</rpc>
#####Response######
<?xml version="1.0"?>
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
 <data>
  <performance-management xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-pmengine-oper">
   <optics>
    <optics-ports>
     <optics-port>
      <name>Ots0/0/0/0</name>
      <optics-current>
       <optics-second30>
        <optics-second30-optics>
         <optics-second30-optic>
          <number>1</number>
          <index>0</index>
          <valid>true</valid>
          <timestamp>10:00:00 - 10:00:15 Thu Jun 16 2022</timestamp>
          <last-clear30-sec-time>never</last-clear30-sec-time>
          <sec30-support>true</sec30-support>
          <flex-bin-support>true</flex-bin-support>
          <flex-bin-interval>10</flex-bin-interval>
          <opt>
           <valid>true</valid>
           <minimum>20.00</minimum>
           <average>20.00</average>
           <maximum>20.00</maximum>
           <minimum-threshold>-20.00</minimum-threshold>
           <configured-min-thresh>NA</configured-min-thresh>
           <minimum-tca-report>false</minimum-tca-report>
           .
           .
           .
           <valid>true</valid>
           <minimum>0.00</minimum>
           <average>0.00</average>
           <maximum>0.00</maximum>
           <minimum-threshold>-5.00</minimum-threshold>
           <configured-min-thresh>NA</configured-min-thresh>
           <minimum-tca-report>false</minimum-tca-report>
           <maximum-threshold>5.00</maximum-threshold>
           <configured-max-thresh>NA</configured-max-thresh>
           <maximum-tca-report>false</maximum-tca-report>
           <min-time>1655373600749422903</min-time>
           <max-time>1655373600749422903</max-time>
          </eatl>
          <iagn>
          
           <maximum-tca-report>false</maximum-tca-report>
           <min-time>1655373600749422903</min-time>
           <max-time>1655373600749422903</max-time>
          -thresh>
         
           <minimum>40.00</minimum>
           <average>40.00</average>
           
         eport>
           <maximum-threshold>190.00</maximum-threshold>
           <configured-max-thresh>NA</configured-max-thresh>
           <maximum-tca-report>false</maximum-tca-report>
           <min-time>1655373600749422903</min-time>
           <max-time>1655373600749422903</max-time>
          </raman-5>
         </optics-second30-optic>
     
        </optics-second30-optics>
       </optics-second30>
      </optics-current>
     </optics-port>
    </optics-ports>
   </optics>
  </performance-management>
 </data>
</rpc-reply>

Configure Equipment Mismatch Alarm

Procedure


Use the Cisco-IOS-XR-osa-ct-cfg.yang Yang model to configure the equipment mismatch alarm. For example, when the NCS 1010 node is loaded with the OLT- C card and if you try to configure the node with a different line card configuration, the equipment mismatch alarm rises.

Yang Model

Example

Cisco-IOS-XR-osa-ct-cfg.yang

<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
  <edit-config>
    <target>
      <candidate/>
    </target>
    <config>
      <resrv-cli xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-osa-ct-cfg">
        <slot-info-cli>
          <lc-slot>0_0_NXR0</lc-slot>
          <card-type-cli>ncs1k-olt-r-c</card-type-cli>
        </slot-info-cli>
      </resrv-cli>
    </config>
  </edit-config>
</rpc>

View the List of Alarms on the NCS 1010 Node

Procedure


Use the Cisco-IOS-XR-alarmgr-server-oper.yang Yang model to view the list of alarms generated on the NCS 1010 node.

Yang Model

Example

Cisco-IOS-XR-alarmgr-server-oper.yang

<?xml version="1.0" ?>
<rpc-reply message-id="urn:uuid:518e2c10-c837-4b36-9bab-93f935148ce5" 
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
    <data>  
    <alarms xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-alarmgr-server-oper">   
      <brief>    
        <brief-system>     
          <active>      
            <alarm-info>       
              <location>0/Rack</location>       
              <severity>major</severity>       
              <group>fpd-infra</group>       
              <set-time>06/09/2022 06:26:48 UTC</set-time>       
              <set-timestamp>1654756008</set-timestamp>       
              <clear-time>-</clear-time>       
              <clear-timestamp>0</clear-timestamp>       
              <description>One Or More FPDs Need Upgrade Or Not In Current State</description>      
            </alarm-info>      
            <alarm-info>     
              <location>0/RP0/CPU0</location>       
              <severity>major</severity>       
              <group>fpd-infra</group>       
              <set-time>06/09/2022 06:26:49 UTC</set-time>      
              <set-timestamp>1654756009</set-timestamp>    
              <clear-time>-</clear-time>      
              <clear-timestamp>0</clear-timestamp>       
              <description>One Or More FPDs Need Upgrade Or Not In Current State</description>      
            </alarm-info>
            <alarm-info>       
              <location>0/0/NXR0</location>       
              <severity>major</severity>       
              <group>fpd-infra</group>       
              <set-time>06/09/2022 06:26:51 UTC</set-time> 
              <set-timestamp>1654756011</set-timestamp>       
              <clear-time>-</clear-time>       
              <clear-timestamp>0</clear-timestamp>       
              <description>One Or More FPDs Need Upgrade Or Not In Current State</description>      
            </alarm-info>      
            <alarm-info>       
              <location>0/0/NXR0</location>       
              <severity>minor</severity>       
              <group>software</group>       
              <set-time>06/09/2022 06:27:13 UTC</set-time>       
              <set-timestamp>1654756033</set-timestamp>       
              <clear-time>-</clear-time>       
              <clear-timestamp>0</clear-timestamp>       
              <description>Ots0/0/0/0 - APC blocked</description>      
            </alarm-info>     
          </active>    
        </brief-system>   
      </brief>      
     </alarms>
   </data>
  </rpc-reply>

Configure Optical Amplifier on OLT Line Card Using Open Config Model

The openconfig-optical-amplifier Yang model uses the following naming convention for the preamplifier and the booster amplifier in the OLT line card:

R/S-<AMP TYPE><ID>

  • R—Rack.

  • S—Slot.

  • <AMP TYPE>—AMP-PRE (for preamplifier) or AMP-BST (for booster amplifier).

  • ID—The value is 0 in openconfig.

For example, the amplifiers are mentioned as 0/0-AMP-PRE0 or 0/0-AMP-BST0 which is a line port ots0/0/0/0 in the IOS-XR.

Procedure


Step 1

Use the openconfig-optical-amplifier Yang model to configure the amplifier on the OLT line card.

Openconfig Model

Example

openconfig-optical-amplifier

{
  "openconfig-optical-amplifier:optical-amplifier": {
   "amplifiers": {
    "amplifier": [
     {
      "name": "0/0-AMP-PRE0",
      "config": {
       "name": "0/0-AMP-PRE0",
       "target-gain": "19.00",
       "gain-range": "MID_GAIN_RANGE",
       "target-gain-tilt": "3.90",
       "enabled": true
       }
     },
     {
      "name": "0/0-AMP-BST0",
      "config": {
       "name": "0/0-AMP-BST0",
       "target-gain": "19.00",
       "target-gain-tilt": "-1.5",
       "enabled": true
       }
     }
    ]
   }
  }
 }

Step 2

Get the operational data using GNMI.

{
  "openconfig-optical-amplifier": {
    "optical-amplifier": {
      "amplifiers": {
        "amplifier": {
          "0/0-AMP-BST0": {
            "state": {
              "enabled": true,
              "name": "0/0-AMP-BST0",
              "target-gain": 19.00,
              "target-gain-tilt": -1.5
            }
          },
          "0/0-AMP-PRE0": {
            "state": {
              "enabled": true,
              "gain-range": "MID_GAIN_RANGE",
              "name": "0/0-AMP-PRE0",
              "target-gain": 19.00,
              "target-gain-tilt": 3.90
            }
          }
        }
      }
    }
  }
}

Configure Optical Amplifier on ILA Line Card Using Open Config Model

The openconfig-optical-amplifier Yang model uses the following naming convention for the two booster amplifiers in the ILA line card:

R/S-<AMP TYPE><ID>

  • R—Rack.

  • S—Slot.

  • <AMP TYPE>—AMP-BST for the booster amplifier.

  • ID—The value is 0 or 2 in openconfig.

For example, the amplifiers are mentioned as 0/0-AMP-BST0 and 0/0-AMP-BST2 which are the line ports ots0/0/0/0 and ots0/0/0/2 respectively in the IOS-XR.

Procedure


Step 1

Use the openconfig-optical-amplifier Yang model to configure the amplifier on the ILA line card.

Openconfig model

Example

openconfig-optical-amplifier

 {
  "openconfig-optical-amplifier:optical-amplifier": {
   "amplifiers": {
    "amplifier": [
     {
      "name": "0/0-AMP-BST0",
      "config": {
       "name": "0/0-AMP-BST0",
       "target-gain": "24.00",
       "target-gain-tilt": "-3.90",
       "enabled": false,
       "gain-range": "HIGH_GAIN_RANGE",
       }
     },
     {
      "name": "0/0-AMP-BST2",
      "config": {
       "name": "0/0-AMP-BST2",
       "target-gain": "24.00",
       "target-gain-tilt": "-3.20",
       "enabled": false,
       "gain-range": "HIGH_GAIN_RANGE"
       }
     }
    ]
   }
  }
 }

Step 2

Get the operational data using GNMI.

{
  "openconfig-optical-amplifier": {
    "optical-amplifier": {
      "amplifiers": {
        "amplifier": {
          "0/0-AMP-BST0": {
            "state": {
              "enabled": false,
              "gain-range": "HIGH_GAIN_RANGE",
              "name": "0/0-AMP-BST0",
              "target-gain": 24.00,
              "target-gain-tilt": -3.90
            }
          },
          "0/0-AMP-BST2": {
            "state": {
              "enabled": false,
              "gain-range": "HIGH_GAIN_RANGE",
              "name": "0/0-AMP-BST2",
              "target-gain": 24.00,
              "target-gain-tilt": -3.20
            }
          }
        }
      }
    }
  }
}

Configure Optical Attenuator on OLT Line Card Using Open Config Model

The openconfig-attenuator Yang model uses the following naming convention for the Variable Optical Attenuator (VOA) on the Line-TX of the OLT line card:

R/S-VOA-BST<ID>

  • R—Rack.

  • S—Slot.

  • ID—The value is 0 in openconfig.

For example, the VOA is mentioned as 0/0-VOA-BST0 which is a line port ots0/0/0/0 in the IOS-XR.

Procedure


Step 1

Use the openconfig-attenuator Yang model to configure the attenuator on the OLT line card.

Openconfig Model

Example

openconfig-optical-attenuator

{
  "openconfig-optical-attenuator:optical-attenuator": {
   "attenuators": {
    "attenuator": [
     {
      "name": "0/0-VOA-BST0",
      "config": {
       "name": "0/0-VOA-BST0",
       "attenuation": "20.00"
      }
     }
    ]
   }
}
}

Step 2

Get the operational data using GNMI.

{
  "openconfig-optical-attenuator": {
    "optical-attenuator": {
      "attenuators": {
        "attenuator": {
          "0/0-VOA-BST0": {
            "state": {
              "attenuation": 20.00,
              "enabled": true,
              "name": "0/0-VOA-BST0"
            }
          }
        }
      }
    }
  }
}


Configure Optical Attenuator on ILA Line Card Using Open Config Model

The openconfig-attenuator Yang model uses the following naming convention for the VOAs on the Line-1 TX and Line-2 TX of the ILA line card:

R/S-VOA-BST<ID>

  • R—Rack.

  • S—Slot.

  • ID—The value is 0 or 2 in openconfig to identify the line port.

For example, the VOAs are mentioned as 0/0-VOA-BST0 and 0/0-VOA-BST2 which are the line ports ots0/0/0/0 and ots0/0/0/2 respectively, in the IOS-XR.

Procedure


Step 1

Use the openconfig-attenuator Yang model to configure the attenuator on the ILA line card.

Openconfig Model

Example

openconfig-optical-attenuator

{
    "openconfig-optical-attenuator:optical-attenuator": {
     "attenuators": {
      "attenuator": [
       {
        "name": "0/0-VOA-BST0",
        "config": {
         "name": "0/0-VOA-BST0",
         "attenuation": "15.00"
        }
       },
       {
        "name": "0/0-VOA-BST2",
        "config": {
         "name": "0/0-VOA-BST2",
         "attenuation": "14.00"
        }
       }
      ]
     }
  }
  }

Step 2

Get the operational data using GNMI.

{
  "openconfig-optical-attenuator": {
    "optical-attenuator": {
      "attenuators": {
        "attenuator": {
          "0/0-VOA-BST0": {
            "state": {
              "attenuation": 15.00,
              "enabled": true,
              "name": "0/0-VOA-BST0"
            }
          },
          "0/0-VOA-BST2": {
            "state": {
              "attenuation": 14.00,
              "enabled": true,
              "name": "0/0-VOA-BST2"
            }
          }
        }
      }
    }
  }
}