Josip Rodin [Sun, 13 Sep 2009 17:22:53 +0000 (19:22 +0200)]
ovaj whereis se vrti u hostu sto je pod OpenVZom krivo, a ionako je beskorisno jer se popis shellova ionako ne mijenja non-stop; napravio jednostavno da se makne sve osim vzctl enter
Josip Rodin [Sun, 13 Sep 2009 17:14:08 +0000 (19:14 +0200)]
revert praznog pimplanja po ngnodemapu u instantiate
usput primijetio cudnovate ngnodemap entrye za hub, rj45, lanswitch...
zakomentirano nepotreban redak u jednom destroyu koji zapravo ne radimo
Josip Rodin [Sun, 13 Sep 2009 16:01:20 +0000 (18:01 +0200)]
da bi se ispravno mogao pokrenuti router.quagga, trebalo je napraviti
nekoliko stvari:
* prebaciti vzctl start iz l3node.instantiate u l3node.start (gdje mu je
zapravo logicno i mjesto)
* povlaci prebacivanje ifcList parsinga u l3node.start jer vzctl ne zeli
napraviti --netif_add bez pokrenutog VEa
* podesiti ve_dir odmah nakon vzctl create tako da je dostupan
za vrijeme .instantiate u modulima
* prebaciti, prilagoditi i aktivirati /etc/quagga fiddling u quagga
.instantiate proceduru
* prebaciti vzctl exec sysctl -w iz quagga .instantiate u quagga .start
proceduru, jer VE mora biti pokrenut
* dodati vzctl set --capability fiddling u quagga .start a prije l3node.start
tako da se zebra smije pokrenuti
Josip Rodin [Sun, 13 Sep 2009 11:40:40 +0000 (13:40 +0200)]
prepravio node_id handling tako da ga se ne konstruira non-stop nego se u deployCfg odmah napravi per-node namespace i tamo ga stavi; tamo stavio i openvz node id i node dir; iskoristio nove verijable na zeljenim mjestima
Pokusaj dodavanja spajanja na fizički interface (rj45) tako da se napravi
L2 Bridge u koji se doda fizicko sucelje i sucelje danog VEa.
U teoriji izgleda ok, izgleda ok u "sudo brctl show" medjutim jednostavno
ne radi. Dok traje simulacija host ne moze van i DNS ne radi.
Moguce da je problem u tome sto je eth0 sucelje hosta povezano sa
VirtualBoxom kao bridged adapter.
numa [Fri, 4 Sep 2009 13:17:26 +0000 (15:17 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
(cherry picked from commit 15d9560111cb52ecc8d528000e18e8a1053592bf)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Fri, 4 Sep 2009 13:17:14 +0000 (15:17 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
(cherry picked from commit ce355bddd327e235f171b01331728f239fd48a76)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Fri, 4 Sep 2009 13:16:34 +0000 (15:16 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
(cherry picked from commit 4a6d11e1f0f2e92cf1ffccc94d468e49678dedc0)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Thu, 3 Sep 2009 11:43:38 +0000 (13:43 +0200)]
dodatni debugging posvuda; uhvaceno jos FreeBSD-specific nexeca; implementiran osnovni Linux/OpenVZ create/start i stop/destroy
(cherry picked from commit f7eeee13553959a0eb1a848b66c77a80c9a05140)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Mon, 31 Aug 2009 12:14:30 +0000 (14:14 +0200)]
u ovom stanju exec funkcije ispisuju sve korake prilikom jednog pokretanja jednostavnog eksperimenta
(cherry picked from commit 21dc367e2f539bc8bbb811bfb50784962c1523e1)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Fri, 28 Aug 2009 12:10:34 +0000 (14:10 +0200)]
prvi hack setOperMode i createIfc da se uopce dobije trivijalni instantiation na Linuxu; masovna zamjena exec vimage s exec echo vimage da se izbjegnu greske
(cherry picked from commit bccabeea50f4f00473605d6e1aa69f6451690875)
Signed-off-by: Josip Rodin <joy@CNZGRIJRL.carpriv.carnet.hr>
numa [Fri, 4 Sep 2009 13:51:03 +0000 (15:51 +0200)]
Revert "Revert "vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno""
numa [Fri, 4 Sep 2009 13:50:22 +0000 (15:50 +0200)]
Revert "vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno"
numa [Fri, 4 Sep 2009 13:17:26 +0000 (15:17 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
numa [Fri, 4 Sep 2009 13:17:14 +0000 (15:17 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
numa [Fri, 4 Sep 2009 13:16:34 +0000 (15:16 +0200)]
vratili original FreeBSD host.tcl i exec.tcl, a dodali Linux verzije u linux/; dodali OS detection i pomaknuli platform detection iznad source'inga tako da to ide kondicionalno
numa [Fri, 28 Aug 2009 12:10:34 +0000 (14:10 +0200)]
prvi hack setOperMode i createIfc da se uopce dobije trivijalni instantiation na Linuxu; masovna zamjena exec vimage s exec echo vimage da se izbjegnu greske
miljenko [Tue, 28 Oct 2008 12:30:18 +0000 (12:30 +0000)]
- Removed annoying bug: "Error: can't read "": no such variable".
(On GUI startup "Select tool" is not selected. If you try to select
something using left mouse button an error is displayed.)
- Use default font for all menu fields.
(Removed "-font arial" from "Static routes" field)
- Mode for "host" is always "static" (not quagga or xorp)
(If all nodes are selected for "Routing protocol defaults" than
only nodes of type "router" should be efected by the change.)
marko [Thu, 23 Oct 2008 14:19:14 +0000 (14:19 +0000)]
Simplify mechanisms for router config generation introduced in
last commit; fix the syntax for quagga ospf2 / ospf3 configuration;
and inject route redistribution statements to / from rip / ospf and
ripng / ospf3.
marko [Thu, 23 Oct 2008 12:04:20 +0000 (12:04 +0000)]
Add GUI support for selecting routing protocols in use on virtual
routers. The GUI now provides menus for enabling / disabling RIPv2,
RIPng, OSPFv2 and OSPFv3, as well as mechanisms for automatic
generation of appropriate quagga / xorp config files. Routing
protocols can only be enabled or disabled on per-router basis, i.e.
no finer-grain control over individual routing protocol parameters
or options is provided. If required, users can extend the
machine-generated quagga or xorp config file skeletons using the
"Custom config" menu option.
By default, all new quagga or xorp router instances will have both
RIPv2 and RIPng enabled, just as it was before this change. The
defaults can be changed in menu Tools -> Routing protocol defaults,
which will be applied both to all selected routers (if any) at the
time of change, as well as to all the subsequentially created ones.
Thanks Ana!!!
Bug found by:
Submitted by: Ana Mijocevic <ana.mijocevic at fer.hr>
Reviewed by:
Approved by:
Obtained from:
marko [Wed, 24 Sep 2008 13:02:54 +0000 (13:02 +0000)]
Do not special-case parsing of constant values in event scheduler.
Instead, constants are now specified as a "const" function with a
single argument, in addition to already existing "rand", "ramp" and
"square" functions.
marko [Thu, 17 Jul 2008 13:09:01 +0000 (13:09 +0000)]
If environment variable IMUNES_EVENTLOG is set, log all changes
trigerred by the internal event scheduler to the file specified in
$IMUNES_EVENTLOG. The log format is as follows:
timestamp link_id node0_id:ifname node1_id:ifname \
delay BER duplicate bandwidth
marko [Mon, 23 Jun 2008 19:46:24 +0000 (19:46 +0000)]
Add a ramp function generator in event scheduler.
So far, it is possible to schedule changes to link parameters
(bandwidth, delay, BER, duplicate) and attributes (width, color) to
constant values or periodic functions (rand or ramp).
Example:
link l1 {
nodes {n1 n2}
bandwidth 256000
events {
1 width ramp 5 2 1
3 color rand 0 16777216 1
5 bandwidth rand 128000 256000 2
30 width 3
35 color red
}
}
At t = 1s after the experiment is started, the width attribute of link l1
will be set to 5, and will increase by 2 each second, until t = 30s when
it will be set to constant value of 3.
At t = 3s the color attribute of link l1 will randomly change each second,
until t = 35s when the color will be set to "red".
Ar t = 5s bandwidth will begin to take random values between 128000 and
256000 each 2 seconds, and this process will continue for the entire
duration of the experiment.
All changes trigged by the event scheduled will be visible in the GUI.
marko [Mon, 23 Jun 2008 17:02:52 +0000 (17:02 +0000)]
Unbreak the scheduler, so that periodic events can be rescheduled even
in absence of another event for the same target scheduled in the future.
Allow for link width to be modulated from the event scheduler, and
convert integer values to appropriate format for specifying 24-bit
color, so that colors can be specified both as plain integers as well
as using standard Tk color naming conventions.