INT application

55 views
Skip to first unread message

Davide Scano

unread,
May 22, 2020, 10:24:07 AM5/22/20
to P4 brigade
Hi,

I want to better undestand/utilize the INT application provided by Onos (https://wiki.onosproject.org/display/ONOS/In-band+Network+Telemetry+%28INT%29+with+ONOS+and+P4). The application is activated without any errors, but unfortunately when I select in the gui the tab dedicated to INT does not work. In other word I cannot reach the web page related to the "configuration of the INT".I used ONOS 2.3.1 and 2.4, in both cases nothing happens. I tried to install ONOS 1.14 but i have not succeeded.



Andrea Campanella

unread,
May 22, 2020, 10:55:38 AM5/22/20
to Davide Scano, P4 brigade, Sean Condon
Hi Davide,

By quickly looking at the app the GUI is not been ported to GUI2.
The porting is not the most difficult thing. An example here

I’ve added Sean who has worked on the GUI2 and can give you tips. 

Thanks, 
Andrea Campanella

Member of Technical Staff at ONF
Member of ONOS Technical Steering Team
Member of Ambassador Steering Team, ONOS and CORD Community

On 22 May 2020, at 16:24, Davide Scano <0ice...@gmail.com> wrote:

Hi,

I want to better undestand/utilize the INT application provided by Onos (https://wiki.onosproject.org/display/ONOS/In-band+Network+Telemetry+%28INT%29+with+ONOS+and+P4). The application is activated without any errors, but unfortunately when I select in the gui the tab dedicated to INT does not work. In other word I cannot reach the web page related to the "configuration of the INT".I used ONOS 2.3.1 and 2.4, in both cases nothing happens. I tried to install ONOS 1.14 but i have not succeeded.




--
You received this message because you are subscribed to the Google Groups "P4 brigade" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brigade-p4+...@onosproject.org.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/brigade-p4/60387cf0-f846-4170-b1ae-ef8384cdc7a3%40onosproject.org.

Sean Condon

unread,
May 22, 2020, 11:05:16 AM5/22/20
to Andrea Campanella, Davide Scano, P4 brigade
Hi Davide - It's easy to switch back to GUI1 even in 2.3 or master
At the onos prompt:
app deactivate gui2
app activate gui

--
Sean Condon
Member of Technical Staff
Open Networking Foundation

Sean Condon

unread,
May 22, 2020, 11:16:07 AM5/22/20
to Andrea Campanella, Davide Scano, P4 brigade
If you would like it to be ported to GUI2 - if you think it will be needed long term, you can add an issue to the GUI epic on Jira. https://jira.onosproject.org/secure/RapidBoard.jspa?rapidView=31

Of course any assistance you could give in porting would be appreciated

Best regards, Sean

Davide Scano

unread,
May 26, 2020, 12:50:50 PM5/26/20
to P4 brigade, and...@opennetworking.org, 0ice...@gmail.com, se...@opennetworking.org
Hi guys, 

Sorry for the late reply. Thanks for your tips, yesterday I started to write some code and undestand how the application utilize the gui2, sorry but i'm completely new on "web developing". Unfortunately I don't understand how can I solve my issue. My first objective is reach a "simple webpage" cliking on the in band telemetry tab. Looking the onos logs seems that the application have some autentication problem, where i have to looking for to solve this issue? 
 
Best
Davide
To unsubscribe from this group and stop receiving emails from it, send an email to briga...@onosproject.org.


--
Sean Condon
Member of Technical Staff
Open Networking Foundation
onoslog.txt
browser_console.txt

Sean Condon

unread,
May 27, 2020, 2:44:40 AM5/27/20
to Davide Scano, P4 brigade, Andrea Campanella
Davide - you need to add an entry to the onos-routing module

after that, you can find most of what you need at https://github.com/opennetworkinglab/onos/tree/master/web/gui2

I don't see any problem with authentication in the logs you sent.

Best regards, Sean

Davide Scano

unread,
May 27, 2020, 5:05:47 AM5/27/20
to P4 brigade, 0ice...@gmail.com, and...@opennetworking.org, se...@opennetworking.org
Thank you Sean, I have achieved my first objective.
best
Davide

Davide Scano

unread,
Jun 2, 2020, 9:58:16 AM6/2/20
to P4 brigade, 0ice...@gmail.com, and...@opennetworking.org, se...@opennetworking.org
I'm trying to show the INT "active rules" in a table. I have this issue presented in the picture called console-error. More in detail for understandig if the messages format exchanged are correct I analyzed the messages exchanged by the INT app in the gui 2,  INT app in the gui  and in the roadm app.
The format of the messages that I use is equal to the messages exchanged in INT gui and are similar to the roadm messages.
I don't undestand why I have this issue can you help me?

best,
ds
websocket-message.png
console-error.png

Sean Condon

unread,
Jun 2, 2020, 3:18:51 PM6/2/20
to Davide Scano, P4 brigade, Andrea Campanella
Davide, you are hitting the error at
https://github.com/opennetworkinglab/onos/blob/f152f4bb2fcbbc957060b55839707d2f6ad438c2/web/gui2-fw-lib/lib/remote/websocket.service.ts#L203

It's because the message is coming back in on the web socket, but you have not registered for it.

See in roadm the tag "roadm" is used here
https://github.com/opennetworkinglab/onos/blob/f152f4bb2fcbbc957060b55839707d2f6ad438c2/apps/roadm/web/roadm-gui/lib/roadm/roadm.component.ts#L82

The base class is adding on `DataResponse` to this tag and creates a handler for it.

You will need to have a tag of `intAppIntIntent` to receive something off the WebSocket with a name like `intAppIntIntentDataResponse`

Sean

Davide Scano

unread,
Jun 3, 2020, 3:13:28 AM6/3/20
to P4 brigade, 0ice...@gmail.com, and...@opennetworking.org, se...@opennetworking.org
Hi Sean,

I did it, probably the image websocket-message is not clear. More in detail I read the code wrote in intAppTableMessageHandler, where is specified the name of the request and reply, i.e intAppIntIntentDataResponse and intAppIntIntentDataRequest. So intAppIntIntent is the tag that I use in my ts file. The messages are sended and recieved with the correct name but I obtain the console error presented in the picture called console error. I don't undestand why I have this error console and what I'm doing wrong. For sake of clarity I add two new screenshot where are showed only the websocket messages related to the INT application.
error-response-messages.png
messages.png

Sean Condon

unread,
Jun 3, 2020, 3:26:07 AM6/3/20
to Davide Scano, P4 brigade, Andrea Campanella
Davide

See how "root" in the table base is the tag+"s" 

so the handler expects the payload to have "intAppIntIntents" (plural) - from what I can see in the screenshot - the payload is singular
image.png


this means that when the handler tries to decode it
it cannot find any array with that name.

you need to change the payload on the Java side

Sean Condon

unread,
Jun 4, 2020, 2:29:55 AM6/4/20
to Davide Scano, P4 brigade, Andrea Campanella
Davide - I saw your review - well done on getting it working. 

Do you have a screenshot of it that you can share with me?

Andrea Campanella

unread,
Jun 4, 2020, 3:28:55 AM6/4/20
to Sean Condon, Davide Scano, P4 brigade
Thanks Davide for the great work!! 

Cheers,

Andrea Campanella

Member of Technical Staff at ONF
Member of ONOS Technical Steering Team
Member of Ambassador Steering Team, ONOS and CORD Community
On 4 Jun 2020, at 08:29, Sean Condon <se...@opennetworking.org> wrote:

Davide - I saw your review - well done on getting it working. 

Do you have a screenshot of it that you can share with me?


On Wed, 3 Jun 2020 at 08:25, Sean Condon <se...@opennetworking.org> wrote:
Davide

See how "root" in the table base is the tag+"s" 

so the handler expects the payload to have "intAppIntIntents" (plural) - from what I can see in the screenshot - the payload is singular

Sean Condon

unread,
Jun 4, 2020, 4:32:16 AM6/4/20
to Andrea Campanella, Davide Scano, P4 brigade
Davide - do you have a screen shot of the UI with data? Sean

Davide Scano

unread,
Jun 4, 2020, 5:33:00 AM6/4/20
to P4 brigade, and...@opennetworking.org, 0ice...@gmail.com, se...@opennetworking.org
Sean - I added a dropbox link in the review, that contains the UI screenshots
Davide

Sean Condon

unread,
Jun 4, 2020, 7:19:12 AM6/4/20
to Davide Scano, P4 brigade, Andrea Campanella
Thanks for that. Merged.
Reply all
Reply to author
Forward
0 new messages