On Sat, Feb 7, 2015 at 6:58 AM, Ben Pfaff <b...@nicira.com> wrote: > I'm pretty sure that this version will not parse "ssl:1.2.3.4:5" > correctly; won't it return "1.2.3.4:5" instead of just "1.2.3.4"?
It handles bolth cases. The split tuple will be ('ssl', '1.2.3.4', '5') and it will return the middle value, else it will return first value: In [11]: [parse_controller(c) for c in ('ssl:1.2.3.4:5', '6.7.8.9:0')] Out[11]: ['1.2.3.4', '6.7.8.9'] Happy Hacking! 7-11 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev