Hi Inês, please put br0 inside of list, for example,
c = vsctl.VSCtlCommand('br-exists', ["br0"]) regards, Em sex., 10 de jan. de 2020 às 16:21, Inês Lopes <inesle...@ua.pt> escreveu: > Good afternoon, > > I've solved my previous problem (01-10-2020). It turns > out '--columns=options' is not an available option in the OVSDB library in > Ryu and I was not aware of that. I apolagize. > > However, I think I've found a bug coming from vsctl.py, in /ryu/lib/ovs > (but I hope I'm wrong). I'm trying to do a simple task: list all ports of > an OVS or list all ports associated with a bridge. The following commands > were executed in the same order as shown and their outputs are below each > one: > > _______________________________________________________ > c = vsctl.VSCtlCommand('list-br') > print(c) > >> "br0" > > c = vsctl.VSCtlCommand('br-exists', "br0") > print(c) > >> [False] > > c = vsctl.VSCtlCommand('list-ifaces', "br0") > print(c) > >> "no bridge named b" > ________________________________________________________ > > > Now, using only "ryu.lib.ovs.bridge": > *_____________________________________________* > result = br.get_port_name_list() > >> "no bridge named None" > > result = br.get_port_name_list("br0") > >> get_port_name_list() takes 1 positional argument but 2 were given > _________________________________________________________ > > > As anyone experienced this problem before? It's like the string of the > name of the bridge, "br0", never reaches as a whole to the function > "find_bridge(self, name, must_exist)" of vsctl.py. > It's important to note that when I print the "self.bridges" variable > inside the "find_bridge" function, a dictionary with a "br0" key is > displayed. > Could the problem be the fact that I'm using openflow13? > > Regards, > Inês > > _______________________________________________ > Ryu-devel mailing list > Ryu-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ryu-devel > -- "A computer is like air conditioning: it becomes useless when you open windows." - Linus Torvalds Fernando N. N. Farias PhD in Computer Science Researcher Member on GERCOM/UFPA Federal University of Pará (LATTES <http://lattes.cnpq.br/9102110853958370> | ORCID <https://orcid.org/0000-0003-0354-9544>)
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel