RoutingTableLogger.ned 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Copyright (C) 2013 Opensim Ltd.
  3. //
  4. // This program is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public License
  6. // as published by the Free Software Foundation; either version 2
  7. // of the License, or (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program; if not, see <http://www.gnu.org/licenses/>.
  16. //
  17. //
  18. // An ISriptable module for dumping routing tables into a file.
  19. //
  20. // Use the following command in the script of the ScenarioManager:
  21. //
  22. // <dump-routes module="..." nodes="..." dest="..."/>
  23. //
  24. // where
  25. // - @module is the full name of this logger module
  26. // - @nodes is the full name of the nodes whose routing tables to be dumped
  27. // - @dest is a list of address/prefix_length pairs for filtering the routes (optional)
  28. //
  29. simple RoutingTableLogger
  30. {
  31. parameters:
  32. string outputFile = default("");
  33. @display("i=block/cogwheel_s");
  34. }