Manual:SimTest

From MikroTik Wiki
Revision as of 16:30, 30 March 2012 by Marisb (talk | contribs) (Created page with "==Simtest Conf Syntax== <pre> version 1; </pre> <pre> desc { ... } </pre> <pre> #include "host.cfg" </pre> <pre> host <name> { <param> <value>; } </pre> <pre> network ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Simtest Conf Syntax

version 1;


desc {
 ...
}
#include "host.cfg"
host <name> {
    <param> <value>;
}
network <name> {
  <param> <value>;
  
  router <ref_name> {
    META {
        <api_commands>
    }
  }
}
sim <name> {
  <param> <value>;

  events {
    ...
  }
}

Possible Events:

  • print
 print "Hello World\n";
  • delay
 delay 4; 
  • wait
  • config_set
config_set {
  id {
    <API CMD>
  }
  cmd {
    <API CMD>
  }
}
  • config_check