User must manually create the channel, further we can run the script to create an cross connect for this channel.
Use the following configuration to create the channel manually:
(config)#hw-module location 0/0/NXR0 terminal-ampli grid-mode flex
(config-hwmod-olt-flexi)#channel-id 2 centre-freq 196.025 width 75
(config-hwmod-olt-flexi)#commit
Tue May 30 21:40:34.987 IST
(config-hwmod-olt-flexi)#end
Use the following sample configuration to display hardware module location and status:#show hw-module location 0/0/NXR0 terminal-ampli
Tue May 30 21:41:09.026 IST
Legend:
NXC - Channel not cross-connected
ACTIVE - Cslice attenuation in egress directionhannel cross-connected to data port
ASE - Channel filled with ASE
FAILED - Data channel failed, pending transition to ASE
Location: 0/0/NXR0
Status: Provisioned
Flex Grid Info
Channel Number Centre Frequency(THz) Channel Width(GHz) Channel Status Overlapping Channels
2 196.025000 75.000 NXC - , -
Use the following sample configuration to see the available arguments in the script:
RP/0/RP0/CPU0:SITE-11(config)#load script channel_data_manager.py
Loading.Invalid Arguments!
usage: channel_data_manager.py [-h] [-c CHANNEL_ID] [-a ATTENUATION_VAL]
[-d DIRECTION] -t ACTION_TYPE [-f FILE_PATH]
[-p PORT_NUM]
optional arguments:
-h, --help show this help message and exit
-c CHANNEL_ID, --channel_id CHANNEL_ID
Enter the channel ID within the range of 1-194
-a ATTENUATION_VAL, --attenuation_val ATTENUATION_VAL
Enter the egress attenuation value in 0.1 dB
resolution. Valid range: 0 - 250
-d DIRECTION, --direction DIRECTION
Enter the direction: 1. egress 2. ingress
-t ACTION_TYPE, --action_type ACTION_TYPE
Enter the action type: 1. load-noise-data 2. load-
active-data
-f FILE_PATH, --file_path FILE_PATH
Enter the source file path for loading the
egress/ingress attenuation profile. (Note: place the
file in root directory: /harddisk:/)
-p PORT_NUM, --port_num PORT_NUM
Enter the add-drop port number
During the subsea channel bring-up, you can use the following script to create the XC and load the flat attenuation profile
on the slices.
Use the following sample configuration to configure slice attenuation in egress direction:(config)#load script channel_data_manager.py args -t load-active-data -c 2 -a 170 -p 28
Loading.
Attenauation profile taken from parameter: 170
.
Taking default direction egress!
Use the following sample configuration to configure slice attenuation in ingress direction:(config)#load script channel_data_manager.py args -t load-active-data -c 2 -a 180 -p 28 -d ingress
Loading.
Attenauation profile taken from parameter: 180
.
1440 bytes parsed in 2 sec (719)bytes/sec
OLT-C-SITE-2(config)#commit
Use the following sample configuration to display running configuration of OTS-OCH controller:#show running-config controller ots-Och 0/0/0/0/2
Tue May 30 21:54:07.741 IST
controller Ots-Och0/0/0/0/2
add-drop-channel Ots-Och0/0/0/28/2
!
Use the following sample configuration to delete the cross-connect and load ASE attenuation profile on the respective slices
for that channel.
(config)#load script channel_data_manager.py args -t load-noise-data -c 2 -a 200
Loading.
Attenuation profile taken from parameter: 200
.
1449 bytes parsed in 2 sec (724)bytes/sec
RP/0/RP0/CPU0:OLT-C-SITE-2(config)#show configuration
Tue May 30 21:54:19.898 IST
!! Building configuration...
!! IOS XR Configuration 7.10.1.24I
controller Ots0/0/0/0
egress-channel-slice 1489 attn 200
egress-channel-slice 1490 attn 200
egress-channel-slice 1491 attn 200
egress-channel-slice 1492 attn 200
egress-channel-slice 1493 attn 200
egress-channel-slice 1494 attn 200
egress-channel-slice 1495 attn 200
egress-channel-slice 1496 attn 200
egress-channel-slice 1497 attn 200
egress-channel-slice 1498 attn 200
egress-channel-slice 1499 attn 200
egress-channel-slice 1500 attn 200
egress-channel-slice 1501 attn 200
egress-channel-slice 1502 attn 200
egress-channel-slice 1503 attn 200
egress-channel-slice 1504 attn 200
egress-channel-slice 1505 attn 200
egress-channel-slice 1506 attn 200
egress-channel-slice 1507 attn 200
egress-channel-slice 1508 attn 200
egress-channel-slice 1509 attn 200
egress-channel-slice 1510 attn 200
egress-channel-slice 1511 attn 200
egress-channel-slice 1512 attn 200
!
no interface Ots-Och0/0/0/0/2
end
Use the following sample configuration to delete cross-connect and move the channel back to not cross connected(NXC) state:
#show running-config controller ots-Och 0/0/0/0/2
Tue May 30 21:55:41.138 IST
% No such configuration item(s)
Use the following sample configuration to display channel slice attenuation information:
OLT-C-SITE-2#show controllers ots0/0/0/0 channel-slice-attenuation-info
Tue May 30 21:46:16.182 IST
Attenuation Slices spacing : 3.125 GHz
Attenuation Slices Range : 1 - 1548
Slice start wavelength : 1566.82 nm
Slice start frequency : 191337.50 GHz
Sub Channel Attenuation information :
Ingress Channel Slice Attenuation :
----------------------------------------------------------------------------------
spectrum-slice num Attenuation values (dB)
----------------------------------------------------------------------------------
1 - 12 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
13 - 24 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
25 - 36 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
37 - 48 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
49 - 60 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
61 - 72 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
73 - 84 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
85 - 96 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
97 - 108 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
109 - 120 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
.
.
.
1525 - 1536 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
1537 - 1548 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
----------------------------------------------------------------------------------
Egress Channel Slice Attenuation :
----------------------------------------------------------------------------------
spectrum-slice num Attenuation values (dB)
----------------------------------------------------------------------------------
1 - 12 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
13 - 24 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
25 - 36 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
37 - 48 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
49 - 60 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
61 - 72 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
73 - 84 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
85 - 96 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
97 - 108 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
109 - 120 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
.
.
.
1477 - 1488 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
1489 - 1500 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0
1501 - 1512 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0 17.0
1513 - 1524 25.0 25.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0
1525 - 1536 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 15.0 25.0 25.0
1537 - 1548 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0 25.0
Use the following sample configuration to display module location when the channel moves from NXC to active state: #show hw-module location 0/0/NXR0 terminal-ampli
Tue May 30 21:47:26.428 IST
Legend:
NXC - Channel not cross-connected
ACTIVE - Channel cross-connected to data port
ASE - Channel filled with ASE
FAILED - Data channel failed, pending transition to ASE
Location: 0/0/NXR0
Status: Provisioned
Flex Grid Info
Channel Number Centre Frequency(THz) Channel Width(GHz) Channel Status Overlapping Channels
2 196.025000 75.000 ACTIVE - , -