Package: inet.examples.ospfv2.areas
TwoNetsArea
compound module(no description)
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Used in
| Name | Type | Description |
|---|---|---|
| OSPF_AreaTest | network | (no description) |
Properties
| Name | Value | Description |
|---|---|---|
| display | p=10,10;b=412,316 |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| ethg [ ] | inout |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| R1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| R1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| R1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| R1.pcapRecorder.fileFormat | string | "pcapng" | |
| R1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| R1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| R1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| R1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| R1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| R1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| R1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| R1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| R1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| R1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| R1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| R1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.cb.forwardServiceRegistration | bool | true | |
| R1.cb.forwardProtocolRegistration | bool | true | |
| R1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.bl.forwardServiceRegistration | bool | true | |
| R1.bl.forwardProtocolRegistration | bool | true | |
| R1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.li.forwardServiceRegistration | bool | true | |
| R1.li.forwardProtocolRegistration | bool | true | |
| R1.eth.bitrate | double | ||
| R1.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.nl.forwardServiceRegistration | bool | true | |
| R1.nl.forwardProtocolRegistration | bool | true | |
| R1.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.tn.forwardServiceRegistration | bool | true | |
| R1.tn.forwardProtocolRegistration | bool | true | |
| R1.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.at.forwardServiceRegistration | bool | true | |
| R1.at.forwardProtocolRegistration | bool | true | |
| R1.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| R1.bgp.routingTableModule | string | ||
| R1.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| N1.macTable.agingTime | double | ||
| N1.macTable.forwardingTableFile | string | ||
| N1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| N1.l2NodeConfigurator.interfaceTableModule | string | ||
| N1.l2NodeConfigurator.l2ConfiguratorModule | string | "l2NetworkConfigurator" |
the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator |
| N1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| N1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| N1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| N1.pcapRecorder.fileFormat | string | "pcapng" | |
| N1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| N1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| N1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| N1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| N1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| N1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| N1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| N1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| N1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| N1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| N1.stp.helloTime | double | ||
| N1.stp.forwardDelay | double | ||
| N1.stp.maxAge | double | ||
| N1.stp.bridgePriority | int | ||
| N1.stp.visualize | bool | ||
| N1.sc.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.sc.forwardServiceRegistration | bool | true | |
| N1.sc.forwardProtocolRegistration | bool | true | |
| N1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.cb.forwardServiceRegistration | bool | true | |
| N1.cb.forwardProtocolRegistration | bool | true | |
| N1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.bl.forwardServiceRegistration | bool | true | |
| N1.bl.forwardProtocolRegistration | bool | true | |
| N1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.li.forwardServiceRegistration | bool | true | |
| N1.li.forwardProtocolRegistration | bool | true | |
| N1.cutthrough.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.cutthrough.forwardServiceRegistration | bool | true | |
| N1.cutthrough.forwardProtocolRegistration | bool | true | |
| N1.eth.bitrate | double | ||
| N2.macTable.agingTime | double | ||
| N2.macTable.forwardingTableFile | string | ||
| N2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| N2.l2NodeConfigurator.interfaceTableModule | string | ||
| N2.l2NodeConfigurator.l2ConfiguratorModule | string | "l2NetworkConfigurator" |
the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator |
| N2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| N2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| N2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| N2.pcapRecorder.fileFormat | string | "pcapng" | |
| N2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| N2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| N2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| N2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| N2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| N2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| N2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| N2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| N2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| N2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| N2.stp.helloTime | double | ||
| N2.stp.forwardDelay | double | ||
| N2.stp.maxAge | double | ||
| N2.stp.bridgePriority | int | ||
| N2.stp.visualize | bool | ||
| N2.sc.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.sc.forwardServiceRegistration | bool | true | |
| N2.sc.forwardProtocolRegistration | bool | true | |
| N2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.cb.forwardServiceRegistration | bool | true | |
| N2.cb.forwardProtocolRegistration | bool | true | |
| N2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.bl.forwardServiceRegistration | bool | true | |
| N2.bl.forwardProtocolRegistration | bool | true | |
| N2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.li.forwardServiceRegistration | bool | true | |
| N2.li.forwardProtocolRegistration | bool | true | |
| N2.cutthrough.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.cutthrough.forwardServiceRegistration | bool | true | |
| N2.cutthrough.forwardProtocolRegistration | bool | true | |
| N2.eth.bitrate | double | ||
| R3.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| R3.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| R3.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| R3.pcapRecorder.fileFormat | string | "pcapng" | |
| R3.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| R3.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| R3.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| R3.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| R3.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| R3.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| R3.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| R3.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| R3.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| R3.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| R3.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| R3.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.cb.forwardServiceRegistration | bool | true | |
| R3.cb.forwardProtocolRegistration | bool | true | |
| R3.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.bl.forwardServiceRegistration | bool | true | |
| R3.bl.forwardProtocolRegistration | bool | true | |
| R3.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.li.forwardServiceRegistration | bool | true | |
| R3.li.forwardProtocolRegistration | bool | true | |
| R3.eth.bitrate | double | ||
| R3.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.nl.forwardServiceRegistration | bool | true | |
| R3.nl.forwardProtocolRegistration | bool | true | |
| R3.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.tn.forwardServiceRegistration | bool | true | |
| R3.tn.forwardProtocolRegistration | bool | true | |
| R3.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R3.at.forwardServiceRegistration | bool | true | |
| R3.at.forwardProtocolRegistration | bool | true | |
| R3.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| R3.bgp.routingTableModule | string | ||
| R3.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| H1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| H1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| H1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| H1.pcapRecorder.fileFormat | string | "pcapng" | |
| H1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| H1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| H1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| H1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| H1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| H1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| H1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| H1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| H1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| H1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| H1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| H1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.cb.forwardServiceRegistration | bool | true | |
| H1.cb.forwardProtocolRegistration | bool | true | |
| H1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.bl.forwardServiceRegistration | bool | true | |
| H1.bl.forwardProtocolRegistration | bool | true | |
| H1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.li.forwardServiceRegistration | bool | true | |
| H1.li.forwardProtocolRegistration | bool | true | |
| H1.eth.bitrate | double | ||
| H1.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.nl.forwardServiceRegistration | bool | true | |
| H1.nl.forwardProtocolRegistration | bool | true | |
| H1.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.tn.forwardServiceRegistration | bool | true | |
| H1.tn.forwardProtocolRegistration | bool | true | |
| H1.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.at.forwardServiceRegistration | bool | true | |
| H1.at.forwardProtocolRegistration | bool | true | |
| H2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| H2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| H2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| H2.pcapRecorder.fileFormat | string | "pcapng" | |
| H2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| H2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| H2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| H2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| H2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| H2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| H2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| H2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| H2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| H2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| H2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| H2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.cb.forwardServiceRegistration | bool | true | |
| H2.cb.forwardProtocolRegistration | bool | true | |
| H2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.bl.forwardServiceRegistration | bool | true | |
| H2.bl.forwardProtocolRegistration | bool | true | |
| H2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.li.forwardServiceRegistration | bool | true | |
| H2.li.forwardProtocolRegistration | bool | true | |
| H2.eth.bitrate | double | ||
| H2.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.nl.forwardServiceRegistration | bool | true | |
| H2.nl.forwardProtocolRegistration | bool | true | |
| H2.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.tn.forwardServiceRegistration | bool | true | |
| H2.tn.forwardProtocolRegistration | bool | true | |
| H2.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.at.forwardServiceRegistration | bool | true | |
| H2.at.forwardProtocolRegistration | bool | true | |
| R2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| R2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| R2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| R2.pcapRecorder.fileFormat | string | "pcapng" | |
| R2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| R2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| R2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| R2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| R2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| R2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| R2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| R2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| R2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| R2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| R2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| R2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.cb.forwardServiceRegistration | bool | true | |
| R2.cb.forwardProtocolRegistration | bool | true | |
| R2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.bl.forwardServiceRegistration | bool | true | |
| R2.bl.forwardProtocolRegistration | bool | true | |
| R2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.li.forwardServiceRegistration | bool | true | |
| R2.li.forwardProtocolRegistration | bool | true | |
| R2.eth.bitrate | double | ||
| R2.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.nl.forwardServiceRegistration | bool | true | |
| R2.nl.forwardProtocolRegistration | bool | true | |
| R2.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.tn.forwardServiceRegistration | bool | true | |
| R2.tn.forwardProtocolRegistration | bool | true | |
| R2.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.at.forwardServiceRegistration | bool | true | |
| R2.at.forwardProtocolRegistration | bool | true | |
| R2.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| R2.bgp.routingTableModule | string | ||
| R2.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" |
Source code
module TwoNetsArea { parameters: @display("p=10,10;b=412,316"); gates: inout ethg[]; types: channel C extends DatarateChannel { delay = 0.1us; datarate = 100Mbps; } submodules: R1: OspfRouter { parameters: @display("p=400,190"); gates: ethg[3]; } N1: EthernetSwitch { parameters: @display("p=250,100"); gates: ethg[2]; } N2: EthernetSwitch { parameters: @display("p=250,480"); gates: ethg[2]; } R3: OspfRouter { parameters: @display("p=550,280"); gates: ethg[3]; } H1: StandardHost { parameters: @display("p=100,100;i=device/laptop"); gates: ethg[1]; } H2: StandardHost { parameters: @display("p=100,480;i=device/laptop"); gates: ethg[1]; } R2: OspfRouter { parameters: @display("p=400,370"); gates: ethg[3]; } connections: H1.ethg[0] <--> C <--> N1.ethg[1]; N1.ethg[0] <--> C <--> R1.ethg[2]; R1.ethg[0] <--> C <--> R3.ethg[2]; N2.ethg[1] <--> C <--> H2.ethg[0]; R1.ethg[1] <--> C <--> R2.ethg[0]; R2.ethg[1] <--> C <--> R3.ethg[1]; R2.ethg[2] <--> C <--> N2.ethg[0]; // towards other areas ethg[0] <--> R3.ethg[0]; }File: examples/ospfv2/areas/Area1.ned