[opendaylight-dev] ODL RESTCONF to REST


Miroslav Mikluš
 

Dear Rahul,

 

RESTCONF works over REST, so you can directly connect to Cisco NSO, no need to use ODL.

 

In case your ‘adapter’ needs some additional business logic, then following example might help you: https://github.com/PANTHEONtech/lighty/tree/14.2.x/lighty-examples/lighty-controller-springboot-netconf

 

Cheers,

Miroslav Miklus

 

From: dev@... <dev@...> On Behalf Of rahul garg
Sent: Tuesday, September 14, 2021 12:22 PM
To: discuss@...; dev@...
Subject: [opendaylight-dev] ODL RESTCONF to REST

 

Hi All,

Hope you are doing well in this pandemic situation.

I need  a help for one my client requirement. I need my cisco NSO to connect with other system over REST.

So i need to develop a adapter for  RESTCONF (NB) to REST (SB). Can some one help me how can i do this using ODL.

I tried to use RESTCONF NB but how can i get data the data tree ( operational/config) for the input POST/PUT request and further send it to SB system over REST and send response back to NSO.

I need to get it ASAP , any lead will be highly appreciated.

 


--

Regards:
Rahul Kr. Garg
08447786498


Miroslav Mikluš
 

Dear Rahul,

 

In that case, your ODL journey could start with following tutorial:

https://docs.opendaylight.org/en/stable-silicon/developer-guides/developing-apps-on-the-opendaylight-controller.html

 

Cheers,

Miroslav Miklus

 

From: rahul garg <rahulgarg132@...>
Sent: Wednesday, September 15, 2021 8:14 AM
To: Miroslav Mikluš <miroslav.miklus@...>
Cc: discuss@...; dev@...
Subject: Re: [opendaylight-dev] ODL RESTCONF to REST

 

Hi Miroslav,

Thank you for the prompt response.

I was referring to the same adapter PANTHEONtech ( Spring boot netconf) . Though I was trying to build some sort of generic implementation as RESTConf in NB for my adapter , so that I don't need to explicitly expose separate endpoints ( Urls ) for my YANG models. I just need to share my Yang model with CISCO NSO.

My adapter SB system also exposes some specified rest payload and endpoints, so I need an adapter in between even though RESTConf works over rest.

So , I was thinking of using ODL to use the below two features and trying to get a custom data tree change listener so that on change call back I can write my custom logic to send the request to my SB in specified format.

  • RESTCONF in NB
  • Yang data modeling

Please suggest more on the same. Thank you in advance.

 

On Tue, Sep 14, 2021 at 6:05 PM Miroslav Mikluš <miroslav.miklus@...> wrote:

Dear Rahul,

 

RESTCONF works over REST, so you can directly connect to Cisco NSO, no need to use ODL.

 

In case your ‘adapter’ needs some additional business logic, then following example might help you: https://github.com/PANTHEONtech/lighty/tree/14.2.x/lighty-examples/lighty-controller-springboot-netconf

 

Cheers,

Miroslav Miklus

 

From: dev@... <dev@...> On Behalf Of rahul garg
Sent: Tuesday, September 14, 2021 12:22 PM
To: discuss@...; dev@...
Subject: [opendaylight-dev] ODL RESTCONF to REST

 

Hi All,

Hope you are doing well in this pandemic situation.

I need  a help for one my client requirement. I need my cisco NSO to connect with other system over REST.

So i need to develop a adapter for  RESTCONF (NB) to REST (SB). Can some one help me how can i do this using ODL.

I tried to use RESTCONF NB but how can i get data the data tree ( operational/config) for the input POST/PUT request and further send it to SB system over REST and send response back to NSO.

I need to get it ASAP , any lead will be highly appreciated.

 


--

Regards:
Rahul Kr. Garg
08447786498



--

Regards:
Rahul Kr. Garg
08447786498


rahul garg <rahulgarg132@...>
 

Hi Miroslav,
Thank you for the prompt response.
I was referring to the same adapter PANTHEONtech ( Spring boot netconf) . Though I was trying to build some sort of generic implementation as RESTConf in NB for my adapter , so that I don't need to explicitly expose separate endpoints ( Urls ) for my YANG models. I just need to share my Yang model with CISCO NSO.
My adapter SB system also exposes some specified rest payload and endpoints, so I need an adapter in between even though RESTConf works over rest.
So , I was thinking of using ODL to use the below two features and trying to get a custom data tree change listener so that on change call back I can write my custom logic to send the request to my SB in specified format.
  • RESTCONF in NB
  • Yang data modeling
Please suggest more on the same. Thank you in advance.


On Tue, Sep 14, 2021 at 6:05 PM Miroslav Mikluš <miroslav.miklus@...> wrote:

Dear Rahul,

 

RESTCONF works over REST, so you can directly connect to Cisco NSO, no need to use ODL.

 

In case your ‘adapter’ needs some additional business logic, then following example might help you: https://github.com/PANTHEONtech/lighty/tree/14.2.x/lighty-examples/lighty-controller-springboot-netconf

 

Cheers,

Miroslav Miklus

 

From: dev@... <dev@...> On Behalf Of rahul garg
Sent: Tuesday, September 14, 2021 12:22 PM
To: discuss@...; dev@...
Subject: [opendaylight-dev] ODL RESTCONF to REST

 

Hi All,

Hope you are doing well in this pandemic situation.

I need  a help for one my client requirement. I need my cisco NSO to connect with other system over REST.

So i need to develop a adapter for  RESTCONF (NB) to REST (SB). Can some one help me how can i do this using ODL.

I tried to use RESTCONF NB but how can i get data the data tree ( operational/config) for the input POST/PUT request and further send it to SB system over REST and send response back to NSO.

I need to get it ASAP , any lead will be highly appreciated.

 


--

Regards:
Rahul Kr. Garg
08447786498



--
Regards:
Rahul Kr. Garg
08447786498


rahul garg <rahulgarg132@...>
 

Hi Miroslav,
Sure, Thank you!


On Thu, Sep 16, 2021 at 6:37 PM Miroslav Mikluš <miroslav.miklus@...> wrote:

Dear Rahul,

 

In that case, your ODL journey could start with following tutorial:

https://docs.opendaylight.org/en/stable-silicon/developer-guides/developing-apps-on-the-opendaylight-controller.html

 

Cheers,

Miroslav Miklus

 

From: rahul garg <rahulgarg132@...>
Sent: Wednesday, September 15, 2021 8:14 AM
To: Miroslav Mikluš <miroslav.miklus@...>
Cc: discuss@...; dev@...
Subject: Re: [opendaylight-dev] ODL RESTCONF to REST

 

Hi Miroslav,

Thank you for the prompt response.

I was referring to the same adapter PANTHEONtech ( Spring boot netconf) . Though I was trying to build some sort of generic implementation as RESTConf in NB for my adapter , so that I don't need to explicitly expose separate endpoints ( Urls ) for my YANG models. I just need to share my Yang model with CISCO NSO.

My adapter SB system also exposes some specified rest payload and endpoints, so I need an adapter in between even though RESTConf works over rest.

So , I was thinking of using ODL to use the below two features and trying to get a custom data tree change listener so that on change call back I can write my custom logic to send the request to my SB in specified format.

  • RESTCONF in NB
  • Yang data modeling

Please suggest more on the same. Thank you in advance.

 

On Tue, Sep 14, 2021 at 6:05 PM Miroslav Mikluš <miroslav.miklus@...> wrote:

Dear Rahul,

 

RESTCONF works over REST, so you can directly connect to Cisco NSO, no need to use ODL.

 

In case your ‘adapter’ needs some additional business logic, then following example might help you: https://github.com/PANTHEONtech/lighty/tree/14.2.x/lighty-examples/lighty-controller-springboot-netconf

 

Cheers,

Miroslav Miklus

 

From: dev@... <dev@...> On Behalf Of rahul garg
Sent: Tuesday, September 14, 2021 12:22 PM
To: discuss@...; dev@...
Subject: [opendaylight-dev] ODL RESTCONF to REST

 

Hi All,

Hope you are doing well in this pandemic situation.

I need  a help for one my client requirement. I need my cisco NSO to connect with other system over REST.

So i need to develop a adapter for  RESTCONF (NB) to REST (SB). Can some one help me how can i do this using ODL.

I tried to use RESTCONF NB but how can i get data the data tree ( operational/config) for the input POST/PUT request and further send it to SB system over REST and send response back to NSO.

I need to get it ASAP , any lead will be highly appreciated.

 


--

Regards:
Rahul Kr. Garg
08447786498



--

Regards:
Rahul Kr. Garg
08447786498



--
Regards:
Rahul Kr. Garg
08447786498