Exemplo n.º 1
0
 def dump_group_for_id(self, group_id):
     retval = None
     group_str = "%d" % group_id
     group = self.run_ofctl("dump-groups", [group_str])
     if group:
         retval = '\n'.join(item for item in group.splitlines()
                            if ovs_lib.is_a_flow_line(item))
     return retval
Exemplo n.º 2
0
 def dump_group_for_id(self, group_id):
     retval = None
     group_str = "%d" % group_id
     group = self.run_ofctl("dump-groups", [group_str])
     if group:
         retval = '\n'.join(item for item in group.splitlines()
                            if ovs_lib.is_a_flow_line(item))
     return retval