REST APIs - JSON for intents and flows ?

3 views
Skip to first unread message

Luciano Martins

unread,
Dec 7, 2021, 1:12:21 PM12/7/21
to ONOS Developers, ONOS Technical Steering Team, ONOS Discuss
Hi People,

In the REST API link in ONOS (http://localhost:8181/onos/v1/docs/#/), it is possible to GET and POST many REST requests to ONOS....

But I'm looking for HOW is possible to create the JSON structure for the APIs, mainly "flows" and "intents"..... There is an example in each option there, but is
not possible to know ALL options that I can use...

In my case, I have  2 Cassinis and 2 Stordis with Stratum inside, that use P4 for programming.... I have an Application that needs to use REST APIs to ask ONOS to create tents and flows...

How can I figure out the JSON structure for intents and flows?

Tks in advance
Regards,
Luciano




--

Luciano Martins

CPQD - Diretoria de Operações

Tel.: +55 19 3705-4089 / Cel.: +55 19 99790-6052

lmar...@cpqd.com.br


"Esta mensagem pode conter informações confidenciais ou privilegiadas. Caso não seja o destinatário desta mensagem ou caso ela lhe tenha sido enviada por engano, pedimos a gentileza de eliminar esta mensagem e todos os seus anexos imediatamente. Utilizar, divulgar a quaisquer terceiros ou copiar esta mensagem para qualquer fim é expressamente proibido e punido por lei."

"This message may contain privileged or confidential information. If you are not the intended recipient of this message or if you have received it in error, please kindly delete this message and all its attachments immediately. Unauthorized use, disclosure to any third parties or copying of this message is expressly prohibited and may be subject to the penalties of law."

Charles Chan

unread,
Dec 7, 2021, 2:55:36 PM12/7/21
to Luciano Martins, ONOS Developers, ONOS Technical Steering Team, ONOS Discuss
Hi Luciano,

Are you asking for examples of all possible matches and actions you can use in the flow JSON? We don't have an exhaustive list of that to the best of my knowledge, but you may find the answer by looking at the codec implementation in this folder. More specifically, I would suggest starting with EncodeCriterionCodecHelper/DecodeCriterionCodecHelper and EncodeInstructionCodecHelper/DecodeInstructionCodecHelper

Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation


--
You received this message because you are subscribed to the Google Groups "ONOS Technical Steering Team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-tech-steerin...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-tech-steering-team/CAH7XjRgvKM5LKRK2DsMUUMRq2DSOonWhS8KUrOC0B_AomoFGVw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages