On Tue, 17 Jul 2018 17:20:18 +0900, knet solutions wrote: > > [1 <multipart/alternative (7bit)>] > [1.1 <text/plain; UTF-8 (7bit)>] > Hi, > > ovs get-controller command returns all the controllers (if we have multiple > controllers) > > > My use case is, > I have 'n' controllers associated with the switch, i have to update the > controllers list(add new controller, delete a existing controller etc) in > the switch. > Towards that, i should know how many controllers associated with that > switch.
I've sent a patch to this mailing list. Could you test? Maybe it's easier to just use VSCtlCommand get-controller, though. > On Tue, Jul 17, 2018 at 1:42 PM, IWAMOTO Toshihiro <iwam...@valinux.co.jp> > wrote: > > > On Fri, 13 Jul 2018 20:10:44 +0900, > > knet solutions wrote: > > > ovs_bridge.get_controller() API returns only the first controller. > > > > > > > > > The respective code , > > > > > > https://github.com/osrg/ryu/blob/b9909d06862454d4907c29b0688788 > > ab80406f9b/ryu/lib/ovs/bridge.py#L174 > > > > > > > > > In the code, the return is only first element from the list. > > > > Thanks for reporting the problem. > > > > > I think, it should return the complete list. > > > > get_controller may be changed return a list when there are multiple > > controllers. For compatibility, we can't change return value to a list > > when there's only one controller. > > > > Do you have a use case for this? > > > > -- > > IWAMOTO Toshihiro > > > > > > > -- > > *Regards, * > *Knet solutions.* > > https://github.com/knetsolutions/KNet > http://knet-topology-builder.readthedocs.io/ > http://knetsolutions.in/ > [1.2 <text/html; UTF-8 (quoted-printable)>] > [2 <text/plain; us-ascii (7bit)>] > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > [3 <text/plain; us-ascii (7bit)>] > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel