P4 INT app

67 views
Skip to first unread message

Davide Scano

unread,
Mar 12, 2021, 4:28:14 AM3/12/21
to P4 brigade
Hi,

I tried to use p4 INT app but seems that something does not works. More in detail, I have  attached my mininet network formed by bmv2 grpc switches to the ONOS controller ( I see the pipeline in the bmv2 switch and in ONOS). I defined an intent host to host and then via the GUI I have apply the INT watchlist. I get the warning in the attached file and the INT flow rules are not installed. Wath I am doing wrong? any idea about this issue?



Yi Tseng

unread,
Mar 12, 2021, 12:44:54 PM3/12/21
to Davide Scano, P4 brigade
Hi Davide,

Can you share the ONOS log file with us? So it will be easier to understand if there are any errors when applying the INT watchlist rule.

Also, I think the file you attached is broken, can you send it again?

Yi

On Fri, Mar 12, 2021 at 1:28 AM Davide Scano <0ice...@gmail.com> wrote:
Hi,

I tried to use p4 INT app but seems that something does not works. More in detail, I have  attached my mininet network formed by bmv2 grpc switches to the ONOS controller ( I see the pipeline in the bmv2 switch and in ONOS). I defined an intent host to host and then via the GUI I have apply the INT watchlist. I get the warning in the attached file and the INT flow rules are not installed. Wath I am doing wrong? any idea about this issue?



--
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/e300b60d-0764-4d82-b705-61e138842df4n%40onosproject.org.


--
Yi Tseng
Member of Technical Staff
Open Networking Foundation

Davide Scano

unread,
Mar 12, 2021, 2:17:33 PM3/12/21
to P4 brigade, y...@opennetworking.org, P4 brigade, Davide Scano
Hi Yi Tseng,

Thank you for the reply, I attachet all the files usefull for understand what I did. I don't undestand if I'm doing something wrong or if there is an issue. If there is something to fix I'm very appy to dig more in details and submit a patch, every suggestion is welcome.
Have a nice weekend,
ds

Topo-intent.png
Intent_installed.png
GUI-INT.png
logs.txt

Yi Tseng

unread,
Mar 15, 2021, 5:26:17 PM3/15/21
to Davide Scano, P4 brigade
Hi Davide,

According to the log, you are missing the INT config in your netcfg, you need to push a netcfg with INT config to your ONOS

The attached file is an example of the INT config

int.json

Davide Scano

unread,
Mar 15, 2021, 5:48:11 PM3/15/21
to P4 brigade, y...@opennetworking.org, P4 brigade, Davide Scano
Hi Yi,

thank you so much. I didn't understand it.
best regards
ds

Yi Tseng

unread,
Mar 16, 2021, 1:26:16 PM3/16/21
to Davide Scano, P4 brigade
Hi Davide,

You need to tell ONOS the INT collector IP address and port, the way to do that is to send the JSON config from my previous email.

You can use this command to push the config to the ONOS

curl --fail -sSL --user onos:rocks -X POST -H 'Content-Type:application/json' http://[your onos IP]:8181/onos/v1/network/configuration -...@int.json

Note that you need to replace "[Your ONOS IP]" with your ONOS IP address.

You also need to modify the "int.json" file since you can use a different IP address for your INT collector.

Yi
Reply all
Reply to author
Forward
0 new messages