%description: Test node shutdown followed by ping start. %inifile: omnetpp.ini [General] network = Test tkenv-plugin-path = ../../../etc/plugins ned-path = .;../../../../src;../../lib cmdenv-express-mode = false #omnetpp 5.0 - 5.1 compatibility: eventlog-file = "${resultdir}/${configname}-${runnumber}.elog" output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca" output-vector-file = "${resultdir}/${configname}-${runnumber}.vec" snapshot-file = "${resultdir}/${configname}-${runnumber}.sna" *.host.numPingApps = 1 *.host.pingApp[0].destAddr = "192.168.0.42" *.host.pingApp[0].startTime = 6s *.host.networkLayer.configurator.networkConfiguratorModule = "" **.hasStatus = true **.scenarioManager.script = xmldoc("scenario.xml") %file: test.ned import inet.node.inet.StandardHost; import inet.common.lifecycle.LifecycleController; import inet.common.scenario.ScenarioManager; network Test { submodules: scenarioManager: ScenarioManager; lifecycleController: LifecycleController; host: StandardHost; } %#-------------------------------------------------------------------------------------------------------------- %file: scenario.xml %#-------------------------------------------------------------------------------------------------------------- %subst: /DEBUG: // %#-------------------------------------------------------------------------------------------------------------- %contains: stdout Running simulation... ** Event #1 t=0 Test.host.networkLayer.ip (IPv4, id=12) ** Event #2 t=0 Test.host.networkLayer.ip (IPv4, id=12) ** Event #3 t=3 Test.scenarioManager (ScenarioManager, id=2) processing command... processing command... Doing stage 0/8 of operation inet::NodeShutdownOperation on Test.host Test.host shutting down %#-------------------------------------------------------------------------------------------------------------- %contains: stdout Doing stage 7/8 of operation inet::NodeShutdownOperation on Test.host Test.host shut down No more events %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------