On 4/22/16, 11:21 PM, "dev on behalf of Ben Pfaff" <dev-boun...@openvswitch.org on behalf of b...@ovn.org> wrote:
>On Fri, Apr 22, 2016 at 04:14:25PM +0800, Huang Lei wrote: >> From: Huang Lei <lhua...@ebay.com> >> >> Add a local address option for ovn-controller's TCP socket which >> connect to southbound ovsdb-server. >> >> In a test environment, an interface may have multiple IP addresses >> in same subnet, if TCP client socket doesn't call bind() explicitly, >> OS chooses an ip and port for it, and the IP is the primary IP of >> the subnet on an interface. With this patch, a secondary IP of the >> subnet can be used as local address of TCP connection. >> >> Signed-off-by: Huang Lei <lhua...@ebay.com> > >Why not just extend the syntax for streams to allow a local address (and >possibly local port) to be specified? >e.g. remote-ip:remote-port:local-ip:local-port. Hmmm, so the possible values of ‘external-ids:ovn-remote’ will be as follow: external-ids:ovn-remote=tcp:192.168.0.1:6640:192.168.0.2:10000 external-ids:ovn-remote=tcp:192.168.0.1:6640:192.168.0.2 external-ids:ovn-remote=tcp:192.168.0.1:6640 Right? BR Huang Lei >_______________________________________________ >dev mailing list >dev@openvswitch.org >http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev