File Underlay/TunOut/TunOutTestNet.ned

Contains:

//
// Copyright (C) 2004 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//


import
    "Router",
    "TunOutRouter",
    "StandardHost",
    "TunOutTestConfigurator";


module TunOutTestNet
    submodules:
        configurator: TunOutTestConfigurator;
            parameters:
                moduleTypes = "TunOutRouter Router StandardHost",
		outModule = "TunOutRouter",
		outDevName = "tunOut",
                nonIPModuleTypes = "",
                networkAddress = "145.236.0.0",
                netmask = "255.255.0.0";
            display: "i=block/cogwheel";
        rte: Router[2];
            display: "i=misc/node_s,green4";
        cli: StandardHost[2];
            display: "i=device/laptop";
        tunOut: TunOutRouter;
            display: "i=misc/globe";
    connections nocheck:
        cli[0].out++ --> ethernetline --> rte[0].in++;
        cli[0].in++ <-- ethernetline <-- rte[0].out++;
        cli[1].out++ --> ethernetline --> rte[1].in++;
        cli[1].in++ <-- ethernetline <-- rte[1].out++;

        tunOut.out++ --> fiberline --> rte[0].in++;
        tunOut.in++ <-- fiberline <-- rte[0].out++;

        rte[0].out++ --> fiberline --> rte[1].in++;
        rte[0].in++ <-- fiberline <-- rte[1].out++;

endmodule

network TunOutTest : TunOutTestNet
endnetwork