snlab-freedom / sdntest

This is an easy-to-use test framework for general purpose in SDN scenario.
MIT License
0 stars 0 forks source link

bootstrap_mininet() cannot get the latest attrs of controller container #1

Closed fno2010 closed 7 years ago

fno2010 commented 7 years ago

bootstrap_mininet() in sdntest/suite.py need to read self.controller.attrs to get the ip address of the controller container. But it seems that this variable is not updated so that mininet cannot get the latest information.

fno2010 commented 7 years ago

Checked the docker-py doc:

In [21]: odl.reload?
Type:       instancemethod
String Form:<bound method Container.reload of <Container: 9bfa59c227>>
File:       /usr/local/lib/python2.7/dist-packages/docker/models/resource.py
Definition: odl.reload(self)
Docstring:
Load this object from the server again and update ``attrs`` with the
new data.

reload() method may be the solution.