Dear all,
(New user here, apologies if I missed a related post). I am working on a conf-d based agent for OpenROADM devices and I am blocked at some point and I cannot figure out what I am doing wrong.
The whole set of models is at https://github.com/OpenROADM/OpenROADM_MSA_Public
The relevant one is:
org-openroadm-device
import org-openroadm-interfaces {
prefix org-openroadm-interfaces;
revision-date 2017-06-26;
}
grouping interfaces-grp {
description
"OpenROADM Interface configuration parameters.";
list interface {
key "name";
description
"The list of configured interfaces on the device.";
leaf name {
type string;
description
"The name of the interface.";
}
leaf description {
type string;
description
"A textual description of the interface.";
}
leaf type {
type identityref {
base org-openroadm-interfaces:interface-type;
}
mandatory true;
description
"The type of the interface.";
}
For the interfaces module
module org-openroadm-interfaces {
namespace "http://org/openroadm/interfaces";
prefix openROADM-if;
...
identity interface-type {
description
"Base identity from which specific interface types are
derived.";
}
identity mediaChannelTrailTerminationPoint {
base interface-type;
description
"Media Channel Trail Termination Point";
}
When I try to create a new Interface with edit-config:
<org-openroadm-device xmlns="http://org/openroadm/device">
<interface>
<name>MC-TTP-DEG2-TTP-TX-190.7</name>
<description>Media-Channel</description>
<type>openROADM-if:mediaChannelTrailTerminationPoint</type>
I am getting
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<rpc-error>
<error-type>application</error-type>
<error-tag>invalid-value</error-tag>
<error-severity>error</error-severity>
<error-path xmlns:org-openroadm-device="http://org/openroadm/device" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
/nc:rpc/nc:edit-config/nc:config/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface[org-openroadm-device:name='MC-TTP-DEG2-TTP-TX-190.7']/org-openroadm-device:type
</error-path>
<error-message xml:lang="en">"openROADM-if:mediaChannelTrailTerminationPoint" is not a valid value.</error-message>
<error-info>
<bad-element>type</bad-element>
</error-info>
</rpc-error>
</rpc-reply>
Any help is much appreciated
Regards
R.