Commits (2)
{
"contexts": [
{
"context_id": {"context_uuid": {"uuid": "admin"}},
"topology_ids": [],
"service_ids": []
}
],
"topologies": [
{
"topology_id": {
"context_id": {"context_uuid": {"uuid": "admin"}},
"topology_uuid": {"uuid": "admin"}
},
"device_ids": [],
"link_ids": []
}
]
}
{
"devices": [
{
"device_id": {
"device_uuid": {
"uuid": "T1"
}
},
"device_type": "optical-transponder",
"device_drivers": [
11
],
"device_endpoints": [
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "T1"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "1"
}
}
}
],
"device_operational_status": 1,
"device_config": {
"config_rules": [
{
"action": 1,
"custom": {
"resource_key": "_connect/address",
"resource_value": "10.0.2.15"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/port",
"resource_value": "2023"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/settings",
"resource_value": {
"username": "admin",
"password": "admin",
"force_running": false,
"hostkey_verify": false,
"look_for_keys": false,
"allow_agent": false,
"commit_per_rule": false,
"device_params": {
"name": "default"
},
"manager_params": {
"timeout": 120
},
"endpoints": [
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "1"
}
]
}
}
}
]
}
}
]
}
\ No newline at end of file
{
"devices": [
{
"device_id": {
"device_uuid": {
"uuid": "T2"
}
},
"device_type": "optical-transponder",
"device_drivers": [
11
],
"device_endpoints": [
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "T2"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "6"
}
}
}
],
"device_operational_status": 1,
"device_config": {
"config_rules": [
{
"action": 1,
"custom": {
"resource_key": "_connect/address",
"resource_value": "10.0.2.15"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/port",
"resource_value": "2024"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/settings",
"resource_value": {
"username": "admin",
"password": "admin",
"force_running": false,
"hostkey_verify": false,
"look_for_keys": false,
"allow_agent": false,
"commit_per_rule": false,
"device_params": {
"name": "default"
},
"manager_params": {
"timeout": 120
},
"endpoints": [
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "6"
}
]
}
}
}
]
}
}
]
}
\ No newline at end of file
{
"devices": [
{
"device_id": {
"device_uuid": {
"uuid": "R1"
}
},
"device_type": "optical-roadm",
"device_drivers": [
11
],
"device_endpoints": [
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R1"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "2"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R1"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "3"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R1"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "12"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R1"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "13"
}
}
}
],
"device_operational_status": 1,
"device_config": {
"config_rules": [
{
"action": 1,
"custom": {
"resource_key": "_connect/address",
"resource_value": "10.0.2.15"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/port",
"resource_value": "2025"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/settings",
"resource_value": {
"username": "admin",
"password": "admin",
"force_running": false,
"hostkey_verify": false,
"look_for_keys": false,
"allow_agent": false,
"commit_per_rule": false,
"device_params": {
"name": "default"
},
"manager_params": {
"timeout": 120
},
"endpoints": [
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "2"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "3"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "12"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "13"
}
]
}
}
}
]
}
}
]
}
\ No newline at end of file
{
"devices": [
{
"device_id": {
"device_uuid": {
"uuid": "R2"
}
},
"device_type": "optical-roadm",
"device_drivers": [
11
],
"device_endpoints": [
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R2"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "4"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R2"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "5"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R2"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "14"
}
}
},
{
"endpoint_id": {
"device_id": {
"device_uuid": {
"uuid": "R2"
}
},
"topology_id": {
"context_id": {
"context_uuid": {
"uuid": "admin"
}
},
"topology_uuid": {
"uuid": "admin"
}
},
"endpoint_uuid": {
"uuid": "15"
}
}
}
],
"device_operational_status": 1,
"device_config": {
"config_rules": [
{
"action": 1,
"custom": {
"resource_key": "_connect/address",
"resource_value": "10.0.2.15"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/port",
"resource_value": "2026"
}
},
{
"action": 1,
"custom": {
"resource_key": "_connect/settings",
"resource_value": {
"username": "admin",
"password": "admin",
"force_running": false,
"hostkey_verify": false,
"look_for_keys": false,
"allow_agent": false,
"commit_per_rule": false,
"device_params": {
"name": "default"
},
"manager_params": {
"timeout": 120
},
"endpoints": [
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "4"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "5"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "14"
},
{
"sample_types": [
101,
102,
201,
202
],
"type": "optical",
"uuid": "15"
}
]
}
}
}
]
}
}
]
}
\ No newline at end of file
{ "links": [
{"link_id": {"link_uuid": {"uuid": "T1->R1"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "T1"}}, "endpoint_uuid": {"uuid": "1"}},
{"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "12"}}
]},
{"link_id": {"link_uuid": {"uuid": "R1->T1"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "2"}},
{"device_id": {"device_uuid": {"uuid": "T1"}}, "endpoint_uuid": {"uuid": "1"}}
]},
{"link_id": {"link_uuid": {"uuid": "R1->R2"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "3"}},
{"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "14"}}
]},
{"link_id": {"link_uuid": {"uuid": "R2->R1"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "4"}},
{"device_id": {"device_uuid": {"uuid": "R1"}}, "endpoint_uuid": {"uuid": "13"}}
]},
{"link_id": {"link_uuid": {"uuid": "T2->R2"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "T2"}}, "endpoint_uuid": {"uuid": "6"}},
{"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "15"}}
]},
{"link_id": {"link_uuid": {"uuid": "R2->T2"}}, "link_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "R2"}}, "endpoint_uuid": {"uuid": "5"}},
{"device_id": {"device_uuid": {"uuid": "T2"}}, "endpoint_uuid": {"uuid": "6"}}
]}
]
}
{
"services": [
{
"service_id": {
"context_id": {"context_uuid": {"uuid": "admin"}},
"service_uuid": {"uuid": "optical-connection"}
},
"service_type": 6,
"service_status": {"service_status": 1},
"service_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "T1"}}, "endpoint_uuid": {"uuid": "1"}},
{"device_id": {"device_uuid": {"uuid": "T2"}}, "endpoint_uuid": {"uuid": "6"}}
],
"service_constraints": [
{"custom": {"constraint_type": "bandwidth[gbps]", "constraint_value": "100.0"}},
{"custom": {"constraint_type": "bidirectionality", "constraint_value": "1"}},
{"custom": {"constraint_type": "optical-band-width[GHz]", "constraint_value": "200"}}
],
"service_config": {"config_rules": []}
}
]
}
{
"services": [
{
"service_id": {
"context_id": {"context_uuid": {"uuid": "admin"}},
"service_uuid": {"uuid": "optical-connection"}
},
"service_type": 6,
"service_status": {"service_status": 1},
"service_endpoint_ids": [
{"device_id": {"device_uuid": {"uuid": "T1"}}, "endpoint_uuid": {"uuid": "1"}},
{"device_id": {"device_uuid": {"uuid": "T2"}}, "endpoint_uuid": {"uuid": "6"}}
],
"service_constraints": [
{"custom": {"constraint_type": "bandwidth[gbps]", "constraint_value": "100.0"}},
{"custom": {"constraint_type": "bidirectionality", "constraint_value": "0"}},
{"custom": {"constraint_type": "optical-band-width[GHz]", "constraint_value": "200"}}
],
"service_config": {"config_rules": []}
}
]
}
# start topology , 2 Transponders Openconfig and 2 multi granular Roadms :
sudo ./start_topo.sh
# populate tfs context in (pushing the json files) following the file index , i.e : 1 , 2
# last json is with ID 7 is the service , to check the service is onboarded successfully go into the srevice interface
# of tfs webGui
# to check if the devices are configured , run
screen -r tx with x = 1, 2,3 , 4
# to release the terminal , press ctrl + a + d
\ No newline at end of file
<config xmlns="http://tail-f.com/ns/config/1.0">
<components xmlns="http://openconfig.net/yang/platform">
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>2</name>
<config>
<name>2</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>OUTPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D1</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>12</name>
<config>
<name>12</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>INPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D1</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>3</name>
<config>
<name>3</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>OUTPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D2</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>13</name>
<config>
<name>13</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>INPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D2</value>
</config>
</property>
</properties>
</component>
</components>
</config>
\ No newline at end of file
<config xmlns="http://tail-f.com/ns/config/1.0">
<components xmlns="http://openconfig.net/yang/platform">
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>4</name>
<config>
<name>4</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>OUTPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D1</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>14</name>
<config>
<name>14</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>INPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D1</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>5</name>
<config>
<name>5</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>OUTPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D2</value>
</config>
</property>
</properties>
</component>
<component xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="create">
<name>15</name>
<config>
<name>15</name>
</config>
<properties>
<property>
<name>MG_ON_PORT_TYPE</name>
<config>
<name>MG_ON_PORT_TYPE</name>
<value>MG_ON_OPTICAL_PORT_WAVEBAND</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DIRECTION</name>
<config>
<name>MG_ON_PORT_DIRECTION</name>
<value>INPUT</value>
</config>
</property>
<property>
<name>MG_ON_PORT_DEGREE</name>
<config>
<name>MG_ON_PORT_DEGREE</name>
<value>D2</value>
</config>
</property>
</properties>
</component>
</components>
</config>
\ No newline at end of file
#!/bin/bash
<<<<<<< HEAD:ofc24/start_topo.sh
=======
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
......@@ -12,7 +14,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
>>>>>>> d5bb84dd9f53b483dcb31ec12a061abe21668703:src/tests/ofc24/start_topo.sh
IMAGE_NAME="asgamb1/oc23bgp.img:latest"
Docker_Container=$1
Docker_Port="2022"
sudo docker stop na1 -t 1
sudo docker stop na2 -t 1
sudo docker stop na3 -t 1
......@@ -23,7 +29,31 @@ sudo docker rm na1
sudo docker rm na3
sudo docker rm na4
echo "Creating NewAgent"
echo "Creating Transponder Agents"
# if ! docker image inspect "$IMAGE_NAME" >/dev/null 2>&1 ; then
# echo "asgamb1/oc23bgp.img:latest not existed ! "
# screen -dmS t3 -T xterm sh -c "docker run -p 10.0.2.15:2025:2022 -v ~/tempOC/files:/files --name na -it $IMAGE_NAME bash"
# echo 'start downloading asgamb1/oc23bgp.img:latest , it may take few minutes ! .... '
# while [ "$(docker image inspect asgamb1/oc23bgp.img:latest 2>/dev/null)" == "[]" ]; do
# sleep 1
# done
#fi
screen -dmS t1 -T xterm sh -c "docker run -p 127.0.0.1:2023:2022 -v ~/tempOC/files:/files --name $Docker_Container -it asgamb1/oc23bgp.img:latest bash"
sleep 2
if [ "$( docker container inspect -f '{{.State.Running}}' "$Docker_Container")" = "true" ]; then
docker exec "$Docker_Container" cp /files/demoECOC21_4.xml demoECOC21.xml
docker exec "$Docker_Container" /confd/examples.confd/OC23/startNetconfAgent.sh
else
echo "your container is not running yet"
echo " It may take a while , Hang on ..."
source "./startExtraNetConfigAgent.sh" "na1" "2023"
sleep 3
......@@ -31,5 +61,9 @@ sleep 3
source "./startExtraNetConfigAgent.sh" "na2" "2024"
sleep 3
R1
bash -c "cp /tempOC/files/plat_r1.xml /confd/examples.confd/OC23/init_openconfig-platform.xml; ./startNetconfAgent.sh"
R2
bash -c "cp /tempOC/files/plat_r2.xml /confd/examples.confd/OC23/init_openconfig-platform.xml; ./startNetconfAgent.sh"
screen -dmS t3 -T xterm sh -c 'docker run -p 10.0.2.15:2025:2022 -v ~/tfs-ctrl/tempOC/files:/files --name na3 -it asgamb1/flexscale-node.img:latest ./startNetconfAgent.sh'
screen -dmS t4 -T xterm sh -c 'docker run -p 10.0.2.15:2026:2022 -v ~/tfs-ctrl/tempOC/files:/files --name na4 -it asgamb1/flexscale-node.img:latest ./startNetconfAgent.sh'
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<components xmlns="http://openconfig.net/yang/platform">
<component>
<name>device</name>
<config>
<name>device</name>
</config>
<state>
<name>MellanoxSwitch</name>
<mfg-name>SSSA-CNIT</mfg-name>
<hardware-version>1.0.0</hardware-version>
<firmware-version>1.0.0</firmware-version>
<software-version>1.0.0</software-version>
<serial-no>610610</serial-no>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:OPERATING_SYSTEM</type>
</state>
</component>
<component>
<name>channel-1</name>
<config>
<name>channel-1</name>
</config>
<state>
<name>channel-1</name>
<type xmlns:typex="http://openconfig.net/yang/transport-types">typex:OPTICAL_CHANNEL</type>
</state>
<optical-channel xmlns="http://openconfig.net/yang/terminal-device">
<config>
<frequency>191600000</frequency>
<target-output-power>100</target-output-power>
<operational-mode>0</operational-mode>
<line-port>transceiver-1</line-port>
</config>
<state>
<frequency>191600000</frequency>
<target-output-power>0</target-output-power>
<operational-mode>0</operational-mode>
<line-port>transceiver-1</line-port>
<group-id>1</group-id>
<output-power>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</output-power>
<input-power>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</input-power>
<laser-bias-current>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</laser-bias-current>
<chromatic-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</chromatic-dispersion>
<polarization-mode-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</polarization-mode-dispersion>
<second-order-polarization-mode-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</second-order-polarization-mode-dispersion>
<polarization-dependent-loss>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</polarization-dependent-loss>
</state>
</optical-channel>
</component>
<component>
<name>transceiver-1</name>
<config>
<name>transceiver-1</name>
</config>
<state>
<name>transceiver-1</name>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:TRANSCEIVER</type>
</state>
<transceiver xmlns="http://openconfig.net/yang/platform/transceiver">
<config>
<enabled>true</enabled>
<form-factor-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:QSFP56_DD_TYPE1</form-factor-preconf>
<ethernet-pmd-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:ETH_400GBASE_ZR</ethernet-pmd-preconf>
<fec-mode xmlns:typex="http://openconfig.net/yang/platform-types">typex:FEC_AUTO</fec-mode>
<module-functional-type xmlns:typex="http://openconfig.net/yang/transport-types">typex:TYPE_DIGITAL_COHERENT_OPTIC</module-functional-type>
</config>
<state>
<enabled>true</enabled>
<form-factor-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:QSFP56_DD_TYPE1</form-factor-preconf>
<ethernet-pmd-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:ETH_400GBASE_ZR</ethernet-pmd-preconf>
<fec-mode xmlns:typex="http://openconfig.net/yang/platform-types">typex:FEC_AUTO</fec-mode>
<module-functional-type xmlns:typex="http://openconfig.net/yang/transport-types">typex:TYPE_DIGITAL_COHERENT_OPTIC</module-functional-type>
<vendor>Cisco</vendor>
<vendor-part>400zr-QSFP-DD</vendor-part>
<vendor-rev>01</vendor-rev>
<serial-no>1567321</serial-no>
</state>
<physical-channels>
<channel>
<index>1</index>
<config>
<index>1</index>
<associated-optical-channel>channel-1</associated-optical-channel>
</config>
<!--state>
<index>1</index>
<associated-optical-channel>channel-4</associated-optical-channel>
</state-->
</channel>
</physical-channels>
</transceiver>
</component>
<component>
<name>port-1</name>
<config>
<name>port-1</name>
</config>
<state>
<name>port-1</name>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:PORT</type>
</state>
<subcomponents>
<subcomponent>
<name>channel-1</name>
<config>
<name>channel-1</name>
</config>
<state>
<name>channel-1</name>
</state>
</subcomponent>
</subcomponents>
<properties>
<property>
<name>onos-index</name>
<config>
<name>onos-index</name>
<value>4</value>
</config>
<state>
<name>onos-index</name>
<value>4</value>
</state>
</property>
<property>
<name>odtn-port-type</name>
<config>
<name>odtn-port-type</name>
<value>line</value>
</config>
<state>
<name>odtn-port-type</name>
<value>line</value>
</state>
</property>
</properties>
</component>
</components>
<terminal-device xmlns="http://openconfig.net/yang/terminal-device">
<logical-channels>
<!--Description: Optical logical link-->
<channel>
<!--Description: Line (OTN) Port-->
<index>1</index>
<config>
<index>1</index>
<description>Logical channel 1</description>
<admin-state>DISABLED</admin-state>
<logical-channel-type xmlns:type="http://openconfig.net/yang/transport-types">type:PROT_OTN</logical-channel-type>
<loopback-mode>NONE</loopback-mode>
</config>
<state>
<index>1</index>
<description>Logical channel 1</description>
<admin-state>DISABLED</admin-state>
<logical-channel-type xmlns:type="http://openconfig.net/yang/transport-types">type:PROT_OTN</logical-channel-type>
<loopback-mode>NONE</loopback-mode>
<link-state>UP</link-state>
</state>
<ingress>
<config>
<transceiver>transceiver-1</transceiver>
</config>
<state>
<transceiver>transceiver-1</transceiver>
</state>
</ingress>
<otn>
<config>
<tti-msg-expected>test1</tti-msg-expected>
<tti-msg-transmit>test1</tti-msg-transmit>
</config>
<state>
<tti-msg-expected>test1</tti-msg-expected>
<tti-msg-transmit>test1</tti-msg-transmit>
<tti-msg-auto>0</tti-msg-auto>
<tti-msg-recv>0</tti-msg-recv>
<rdi-msg>0</rdi-msg>
<errored-seconds>0</errored-seconds>
<severely-errored-seconds>0</severely-errored-seconds>
<unavailable-seconds>0</unavailable-seconds>
<code-violations>0</code-violations>
<fec-uncorrectable-words>0</fec-uncorrectable-words>
<fec-corrected-bytes>0</fec-corrected-bytes>
<fec-corrected-bits>0</fec-corrected-bits>
<background-block-errors>0</background-block-errors>
<pre-fec-ber>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
</pre-fec-ber>
<post-fec-ber>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
</post-fec-ber>
<q-value>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
<interval>0</interval>
</q-value>
<esnr>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
<interval>0</interval>
</esnr>
</state>
</otn>
<logical-channel-assignments>
<assignment>
<index>1</index>
<config>
<index>1</index>
<description>Optical channel assigned 100</description>
<allocation>100</allocation>
<assignment-type>OPTICAL_CHANNEL</assignment-type>
<optical-channel>channel-1</optical-channel>
</config>
<state>
<index>1</index>
<description>Optical channel assigned 100</description>
<allocation>100</allocation>
<assignment-type>OPTICAL_CHANNEL</assignment-type>
<optical-channel>channel-1</optical-channel>
</state>
</assignment>
</logical-channel-assignments>
</channel>
</logical-channels>
<operational-modes>
<mode>
<mode-id>1</mode-id>
<state>
<mode-id>1</mode-id>
<description>FEC1</description>
<vendor-id>Ericsson</vendor-id>
</state>
</mode>
<mode>
<mode-id>2</mode-id>
<state>
<mode-id>2</mode-id>
<description>FEC2</description>
<vendor-id>Ericsson</vendor-id>
</state>
</mode>
</operational-modes>
</terminal-device>
</config>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<components xmlns="http://openconfig.net/yang/platform">
<component>
<name>device</name>
<config>
<name>device</name>
</config>
<state>
<name>MellanoxSwitch</name>
<mfg-name>SSSA-CNIT</mfg-name>
<hardware-version>1.0.0</hardware-version>
<firmware-version>1.0.0</firmware-version>
<software-version>1.0.0</software-version>
<serial-no>610610</serial-no>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:OPERATING_SYSTEM</type>
</state>
</component>
<component>
<name>channel-6</name>
<config>
<name>channel-6</name>
</config>
<state>
<name>channel-6</name>
<type xmlns:typex="http://openconfig.net/yang/transport-types">typex:OPTICAL_CHANNEL</type>
</state>
<optical-channel xmlns="http://openconfig.net/yang/terminal-device">
<config>
<frequency>191600000</frequency>
<target-output-power>100</target-output-power>
<operational-mode>0</operational-mode>
<line-port>transceiver-6</line-port>
</config>
<state>
<frequency>191600000</frequency>
<target-output-power>0</target-output-power>
<operational-mode>0</operational-mode>
<line-port>transceiver-6</line-port>
<group-id>1</group-id>
<output-power>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</output-power>
<input-power>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</input-power>
<laser-bias-current>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</laser-bias-current>
<chromatic-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</chromatic-dispersion>
<polarization-mode-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</polarization-mode-dispersion>
<second-order-polarization-mode-dispersion>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
</second-order-polarization-mode-dispersion>
<polarization-dependent-loss>
<instant>0</instant>
<avg>0</avg>
<min>0</min>
<max>0</max>
<interval>0</interval>
</polarization-dependent-loss>
</state>
</optical-channel>
</component>
<component>
<name>transceiver-6</name>
<config>
<name>transceiver-6</name>
</config>
<state>
<name>transceiver-6</name>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:TRANSCEIVER</type>
</state>
<transceiver xmlns="http://openconfig.net/yang/platform/transceiver">
<config>
<enabled>true</enabled>
<form-factor-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:QSFP56_DD_TYPE1</form-factor-preconf>
<ethernet-pmd-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:ETH_400GBASE_ZR</ethernet-pmd-preconf>
<fec-mode xmlns:typex="http://openconfig.net/yang/platform-types">typex:FEC_AUTO</fec-mode>
<module-functional-type xmlns:typex="http://openconfig.net/yang/transport-types">typex:TYPE_DIGITAL_COHERENT_OPTIC</module-functional-type>
</config>
<state>
<enabled>true</enabled>
<form-factor-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:QSFP56_DD_TYPE1</form-factor-preconf>
<ethernet-pmd-preconf xmlns:typex="http://openconfig.net/yang/transport-types">typex:ETH_400GBASE_ZR</ethernet-pmd-preconf>
<fec-mode xmlns:typex="http://openconfig.net/yang/platform-types">typex:FEC_AUTO</fec-mode>
<module-functional-type xmlns:typex="http://openconfig.net/yang/transport-types">typex:TYPE_DIGITAL_COHERENT_OPTIC</module-functional-type>
<vendor>Cisco</vendor>
<vendor-part>400zr-QSFP-DD</vendor-part>
<vendor-rev>01</vendor-rev>
<serial-no>1567321</serial-no>
</state>
<physical-channels>
<channel>
<index>1</index>
<config>
<index>1</index>
<associated-optical-channel>channel-6</associated-optical-channel>
</config>
<!--state>
<index>1</index>
<associated-optical-channel>channel-4</associated-optical-channel>
</state-->
</channel>
</physical-channels>
</transceiver>
</component>
<component>
<name>port-6</name>
<config>
<name>port-6</name>
</config>
<state>
<name>port-6</name>
<type xmlns:typex="http://openconfig.net/yang/platform-types">typex:PORT</type>
</state>
<subcomponents>
<subcomponent>
<name>channel-6</name>
<config>
<name>channel-6</name>
</config>
<state>
<name>channel-6</name>
</state>
</subcomponent>
</subcomponents>
<properties>
<property>
<name>onos-index</name>
<config>
<name>onos-index</name>
<value>4</value>
</config>
<state>
<name>onos-index</name>
<value>4</value>
</state>
</property>
<property>
<name>odtn-port-type</name>
<config>
<name>odtn-port-type</name>
<value>line</value>
</config>
<state>
<name>odtn-port-type</name>
<value>line</value>
</state>
</property>
</properties>
</component>
</components>
<terminal-device xmlns="http://openconfig.net/yang/terminal-device">
<logical-channels>
<!--Description: Optical logical link-->
<channel>
<!--Description: Line (OTN) Port-->
<index>4</index>
<config>
<index>4</index>
<description>Logical channel 4</description>
<admin-state>DISABLED</admin-state>
<logical-channel-type xmlns:type="http://openconfig.net/yang/transport-types">type:PROT_OTN</logical-channel-type>
<loopback-mode>NONE</loopback-mode>
</config>
<state>
<index>4</index>
<description>Logical channel 4</description>
<admin-state>DISABLED</admin-state>
<logical-channel-type xmlns:type="http://openconfig.net/yang/transport-types">type:PROT_OTN</logical-channel-type>
<loopback-mode>NONE</loopback-mode>
<link-state>UP</link-state>
</state>
<ingress>
<config>
<transceiver>transceiver-6</transceiver>
</config>
<state>
<transceiver>transceiver-6</transceiver>
</state>
</ingress>
<otn>
<config>
<tti-msg-expected>test1</tti-msg-expected>
<tti-msg-transmit>test1</tti-msg-transmit>
</config>
<state>
<tti-msg-expected>test1</tti-msg-expected>
<tti-msg-transmit>test1</tti-msg-transmit>
<tti-msg-auto>0</tti-msg-auto>
<tti-msg-recv>0</tti-msg-recv>
<rdi-msg>0</rdi-msg>
<errored-seconds>0</errored-seconds>
<severely-errored-seconds>0</severely-errored-seconds>
<unavailable-seconds>0</unavailable-seconds>
<code-violations>0</code-violations>
<fec-uncorrectable-words>0</fec-uncorrectable-words>
<fec-corrected-bytes>0</fec-corrected-bytes>
<fec-corrected-bits>0</fec-corrected-bits>
<background-block-errors>0</background-block-errors>
<pre-fec-ber>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
</pre-fec-ber>
<post-fec-ber>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
</post-fec-ber>
<q-value>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
<interval>0</interval>
</q-value>
<esnr>
<instant>0.0</instant>
<avg>0.0</avg>
<min>0.0</min>
<max>0.0</max>
<interval>0</interval>
</esnr>
</state>
</otn>
<logical-channel-assignments>
<assignment>
<index>1</index>
<config>
<index>1</index>
<description>Optical channel assigned 100</description>
<allocation>100</allocation>
<assignment-type>OPTICAL_CHANNEL</assignment-type>
<optical-channel>channel-6</optical-channel>
</config>
<state>
<index>1</index>
<description>Optical channel assigned 100</description>
<allocation>100</allocation>
<assignment-type>OPTICAL_CHANNEL</assignment-type>
<optical-channel>channel-6</optical-channel>
</state>
</assignment>
</logical-channel-assignments>
</channel>
</logical-channels>
<operational-modes>
<mode>
<mode-id>1</mode-id>
<state>
<mode-id>1</mode-id>
<description>FEC1</description>
<vendor-id>Ericsson</vendor-id>
</state>
</mode>
<mode>
<mode-id>2</mode-id>
<state>
<mode-id>2</mode-id>
<description>FEC2</description>
<vendor-id>Ericsson</vendor-id>
</state>
</mode>
</operational-modes>
</terminal-device>
</config>