ODTN manual testing tool for OpenConfig configuration
- ONOS-7567
Example:
onos> odtn-manual-test ENABLE_TRANSCEIVER
JSON:
{
"openconfig-platform:component" : [ {
"name" : "TRANSCEIVER_1_1_4_1",
"openconfig-platform-transceiver:transceiver" : {
"config" : {
"enabled" : "true"
}
},
"config" : {
"name" : "TRANSCEIVER_1_1_4_1"
}
} ]
}
XML:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target>
<running/>
</target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<component xmlns="http://openconfig.net/yang/platform" xc:operation="merge">
<name>TRANSCEIVER_1_1_4_1</name>
<transceiver xmlns="http://openconfig.net/yang/platform/transceiver">
<config>
<enabled>true</enabled>
</config>
</transceiver>
<config>
<name>TRANSCEIVER_1_1_4_1</name>
</config>
</component>
</config>
</edit-config>
</rpc>
Change-Id: Ief5f1a1933fb00a2118bd941d8c5f0310ed9c815
diff --git a/apps/odtn/BUCK b/apps/odtn/BUCK
index 60c82cb..eef902a 100644
--- a/apps/odtn/BUCK
+++ b/apps/odtn/BUCK
@@ -22,7 +22,11 @@
'//models/openconfig:onos-models-openconfig',
'//apps/yang:onos-apps-yang',
'//incubator/api:onos-incubator-api',
- '//lib:COMPILE'
+ '//lib:org.apache.karaf.shell.console',
+ '//cli:onos-cli',
+ '//lib:JACKSON',
+ '//lib:COMPILE',
+ '//protocols/netconf/api:onos-protocols-netconf-api'
]
TEST_DEPS = [