ODL with BAA and sysrepo - Indentity-reference attribute issues.


P, Thirumurugan
 

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.

 

 

 

 

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


Venkatrangan Govindarajan
 

Hi,

 Thanks for repolrting on this use-case. I think there will be better responses.
  My undersanding is the Netconf Server has been mounted to ODL? , Is that corect?
 In that case, Did you try the ODL GUI to PUT/POST this particular API?

Regards,
gvrangan
 


Guillaume Lambert
 

Hello

Thanks for sharing your experience

Along precisions asked by gvrangan, I think it would help if you coul be more precise about the version of ODL you are using.

Best regards
Guillaume


De : Discuss@... <Discuss@...> de la part de Venkatrangan Govindarajan <gvrangan@...>
Envoyé : jeudi 19 mai 2022 18:46:41
À : Discuss@...
Objet : Re: [ODL Discuss] ODL with BAA and sysrepo - Indentity-reference attribute issues.
 
Hi,

 Thanks for repolrting on this use-case. I think there will be better responses.
  My undersanding is the Netconf Server has been mounted to ODL? , Is that corect?
 In that case, Did you try the ODL GUI to PUT/POST this particular API?

Regards,
gvrangan
 
_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.