NextHopNetworkConfigurator

Package: inet.networklayer.configurator.nexthop

NextHopNetworkConfigurator

simple module

Adds routes to a NextHopRoutingTable similarly how Ipv4NetworkConfigurator adds static routes to Ipv4RoutingTable.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Extends

Name Type Description
L3NetworkConfiguratorBase simple module

This module serves as a base module for layer 3 network configurators.

Parameters

Name Type Default value Description
minLinkWeight double 1E-3
configureIsolatedNetworksSeparatly bool false
config xml xml("")

XML configuration parameters

addStaticRoutes bool true

add static routes to the routing tables of all nodes to route to all destination interfaces (only where applicable; turn off when config file contains manual routes)

dumpTopology bool false

print extracted network topology to the module output

dumpRoutes bool false

print configured and optimized routing tables for all nodes to the module output

Properties

Name Value Description
class NextHopNetworkConfigurator
display i=block/cogwheel

Direct method calls (observed)

call tofunctioninfo
InterfaceTableinet::InterfaceTable::findInterfaceByNodeInputGateIdfindInterfaceByNodeInputGateId
InterfaceTableinet::InterfaceTable::findInterfaceByNodeOutputGateIdfindInterfaceByNodeOutputGateId
NextHopRoutingTableinet::NextHopRoutingTable::addRouteaddRoute(...)

Tagging operations (observed)

tagTypetagAction
inet::NextHopInterfaceDatafindTag, getTag

Source code

//
// Adds routes to a ~NextHopRoutingTable similarly how ~Ipv4NetworkConfigurator adds
// static routes to ~Ipv4RoutingTable.
//
simple NextHopNetworkConfigurator extends L3NetworkConfiguratorBase
{
    parameters:
        @class(NextHopNetworkConfigurator);
        @display("i=block/cogwheel");
        xml config = default(xml("<config/>")); // XML configuration parameters
        bool addStaticRoutes = default(true);  // add static routes to the routing tables of all nodes to route to all destination interfaces (only where applicable; turn off when config file contains manual routes)
        bool dumpTopology = default(false);  // print extracted network topology to the module output
        bool dumpRoutes = default(false);    // print configured and optimized routing tables for all nodes to the module output
}

File: src/inet/networklayer/configurator/nexthop/NextHopNetworkConfigurator.ned