Disable EmuNetDevice Python bindings if the netdevice is not compiled in (bug #413)

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-11-24 12:09:47 +00:00
parent c6d1ff065d
commit ef00197fe8
2 changed files with 6 additions and 1 deletions

View File

@@ -131,6 +131,11 @@ def main():
for clsname in ['SystemThread', 'SystemMutex', 'SystemCondition', 'CriticalSection']:
root_module.classes.remove(root_module['ns3::%s' % clsname])
if 'EmuNetDevice' not in enabled_features:
for clsname in ['EmuNetDevice', 'EmuHelper']:
root_module.classes.remove(root_module['ns3::%s' % clsname])
if 'RealTime' not in enabled_features:
for clsname in ['WallClockSynchronizer', 'RealtimeSimulatorImpl', 'RealtimeEventLock']:
root_module.classes.remove(root_module['ns3::%s' % clsname])