[ovs-dev] [PATCH] XenServer: Don't reset on xe-toolstack-restart

Jason Kölker jason at koelker.net
Sat Feb 7 07:11:13 UTC 2015


On Sat, Feb 7, 2015 at 6:58 AM, Ben Pfaff <blp at 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



More information about the dev mailing list