package inet.examples.ospfv2.areatests; import inet.common.misc.ThruputMeteringChannel; import inet.common.scenario.ScenarioManager; import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator; import inet.node.ospfv2.OSPFRouter; network OSPF_BackboneAndTwoStubsTest { parameters: int numBBRouters = default(3); @display("bgb=561,300"); types: channel C extends ThruputMeteringChannel { delay = 0.1us; datarate = 100Mbps; thruputDisplayFormat = "#N"; } submodules: BBR[numBBRouters]: OSPFRouter; Stub1: TestArea { parameters: numHosts = 2; extGates = 1; @display("p=138,156;b=136,136"); } Stub2: TestArea { parameters: numHosts = 2; extGates = 1; @display("p=409,156;b=136,136"); } configurator: IPv4NetworkConfigurator { parameters: config = xml(""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ ""); addStaticRoutes = false; addDefaultRoutes = false; @display("p=75,43"); } scenarioManager: ScenarioManager { @display("p=187,43"); } connections: BBR[0].ethg++ <--> C <--> Stub1.ethg[0]; BBR[numBBRouters-1].ethg++ <--> C <--> Stub2.ethg[0]; for i=1..numBBRouters-1 { BBR[i].ethg++ <--> C <--> BBR[i-1].ethg++; } //BBR[0].ethg++ <--> C <--> BBR[numBBRouters-1].ethg++; }