else:
is_app_running = self.simulation.invoke(self.uuid, "isAppRunning")
- if is_app_running or self.simulation.state > Resource.STARTED:
+ if is_app_running or self.simulation.state > ResourceState.STARTED:
super(NS3BaseApplication, self).do_start()
self._start_time = self.simulation.start_time
else:
@property
def _rms_to_wait(self):
- rms = set([self.node, self.node.ipv4])
+ rms = set([self.node])
return rms
def _configure_mac_address(self):
app.GetAttribute("StartTime", start_time_value)
start_time = start_time_value.Get()
- if now.Compare(start_time) >= 0 and now.Compare(stop_time) < 0:
- return True
+ if now.Compare(start_time) >= 0:
+ if stop_time.IsZero() or now.Compare(stop_time) < 0:
+ return True
return False