Step 11. Configure an interface as NoOSPF¶
Goals¶
[explanation]
Configuration¶
This configuration is based on step 3.
The OSPF configuration:
<?xml version="1.0"?>
<OSPFASConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="OSPF.xsd">
<!-- Routers -->
<Router name="R1" RFC1583Compatible="true">
<BroadcastInterface ifName="eth0" interfaceMode="NoOSPF" />
<PointToPointInterface ifName="ppp0" />
</Router>
<Router name="R2" RFC1583Compatible="true">
<BroadcastInterface ifName="eth0" interfaceMode="NoOSPF" />
<PointToPointInterface ifName="ppp0" />
</Router>
</OSPFASConfig>
The configuration in omnetpp.ini
is the following:
[Config Step11]
description = "Configure an interface as NoOSPF"
extends = Step3
# setting interfaceMode to "NoOSPF" is equal to removing the interface from the XML config
*.R*.ospf.ospfConfig = xmldoc("ASConfig_NoOspf.xml")