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

Vladimir Gurevich vladimir.gurevich at barefootnetworks.com
Wed Aug 9 22:52:36 EDT 2017

Hello Aldo,

runtime_CLI.py (actually you should probably use sswitch_CLI.py if you use
simple_switch) accepts --thrift-ip and --thrift-port parameters that allow
you to specify the IP address and TCP port number correspondingly.

Please, note that you will need to start 3 separate instances of
sswitch_CLI.py, since one instance can control a single device only.

Happy hacking,

On Wed, Aug 9, 2017 at 7:42 PM, Aldo Febro <af12abw at gmail.com> wrote:

> 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:
> 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
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

*Vladimir Gurevich*

*Barefoot Networks*
*Technical Lead, Customer Engineering*
Email: vag at barefootnetworks.com
Phone: (408) 833-4505
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170809/93e313bd/attachment-0002.html>

More information about the P4-dev mailing list