[P4-dev] Assigning an IP address for mininet/P4Switch() class

Aldo Febro af12abw at gmail.com
Wed Aug 9 22:42:18 EDT 2017


Hi all,

>From runtime_CLI.py, I'd like to connect to a P4Switch with IP_address:port
(instead of localhost:port) to simulate a control-plane session to multiple
remote P4 switches.

For example, instead of connecting to
localhost:9090
localhost:9091
localhost:9092

I'd like to connect to:
10.10.10.1:9090
10.10.20.1:9090
10.10.30.1:9090

Can I assign an IP address to a P4Switch() class when I instantiate/launch
simple_switch?

Has anyone tried this? Any help would be appreciated. Thanks!

Aldo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170809/41ce6a72/attachment-0002.html>


More information about the P4-dev mailing list