Hi,
We are trying to use ODL in our Ems project to provide the Retconf NBI and the Netconf-connector features. The following is the topology of our implementation.
ODLàOB-BAAàSysrepo(Device Netconf server)
We are facing a problem with the Sysrepo server invalidating some configurations which have the identity-reference attributes(for eg:bbf-qos-classifier.yang:classifier:filter-operation), and the workaround for it is to
deliver a Netconf message payload that is acceptable by sysrepo. We are trying to modify the Netconf connector code to modify the Netconf message to the southbound server(BAA) with reference to the identity-ref attributes in them.
The change we are pondering over is to replace the following format/notation to the one further below, where the prefix is appended to the tag and value for identity-ref attributes.
<filter-operation> match-all-filter</filter-operation>
To
<bbf-qos-cls:filter-operation>bbf-qos-cls:match-all-filter</bbf-qos-cls:filter-operation>
So that, it reaches the sysrepo after processing at BAA in a format the sysrepo accepts. In order to achieve the above, we are planning to do a plain regex match and replace of the tag and values.
Has something similar been observed before?
Is there any better alternate to the above approach,
Are there any switches in restconf->Netconf transformation code to enable the prefix to be added all through?
or can the replace routine be done somewhere else which has single entity context processing instead of the bulk xml.
Thanks,
Thirumurugan.