package inet.examples.ospfv2.dynamictest; import inet.common.lifecycle.LifecycleController; import inet.common.misc.ThruputMeteringChannel; import inet.common.scenario.ScenarioManager; import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator; import inet.node.inet.StandardHost; import inet.node.ospfv2.OSPFRouter; network DynamicTest { parameters: @display("p=10,10;b=712,152"); types: channel C extends ThruputMeteringChannel { delay = 0.1us; datarate = 100Mbps; thruputDisplayFormat = "#N"; } submodules: H1: StandardHost { parameters: @display("p=50,123"); gates: ethg[1]; } R1: OSPFRouter { parameters: @display("p=192,123"); gates: ethg[3]; } RA: OSPFRouter { parameters: @display("p=351,42"); gates: ethg[2]; } RB: OSPFRouter { parameters: @display("p=351,194"); gates: ethg[2]; } R2: OSPFRouter { parameters: @display("p=486,123"); gates: ethg[3]; } H2: StandardHost { parameters: @display("p=666,123"); gates: ethg[1]; } configurator: IPv4NetworkConfigurator { parameters: @display("p=94,42"); config = xml("" + "" + "" + "" + "" + "" + "" + "" + "" + "" + ""); } scenarioManager: ScenarioManager { @display("p=594,50"); } lifecycleController: LifecycleController { @display("p=94,194"); } connections: H1.ethg[0] <--> C <--> R1.ethg[0]; R1.ethg[1] <--> C <--> RA.ethg[0]; R1.ethg[2] <--> C <--> RB.ethg[0]; RA.ethg[1] <--> C <--> R2.ethg[1]; RB.ethg[1] <--> C <--> R2.ethg[2]; R2.ethg[0] <--> C <--> H2.ethg[0]; }