Tom Goff
6d1b5d28a1
daemon: Remove tracking remote node boot status.
...
The instantiation-complete status of remote servers should indicate
when all nodes are running.
2016-10-12 17:37:13 +00:00
Tom Goff
d33147154c
daemon: Add an instantiation-complete CORE API event type.
...
Have CORE servers send an instantiation-complete event after a session
has completed instantiating. Only enter the runtime state after
instantiation-complete events have been received form all servers.
2016-10-12 17:36:59 +00:00
Tom Goff
42b1771dcb
daemon: Create a CoreServer class to represent CORE servers.
...
Includes related changes and refactoring.
2016-10-12 17:36:42 +00:00
Tom Goff
31a9f6fb34
daemon: Use a set to store broker handlers.
2016-10-12 15:55:30 +00:00
Rod A Santiago
9913168896
Fixed sendnodeemuid to use the handler's sendall() method instead of BaseRequestHandler's request.sendall(). Added a method to retrieve a configuration item by key.
2016-09-14 18:05:52 -07:00
Tom Goff
e5e75756ea
daemon: Remove session-related changes introduced by 68532cb
.
2016-09-05 17:12:16 -04:00
Rod A Santiago
68532cb818
daemon: added option API TLVs so that per-interface parameters are kept for EMANE models when a single node has multiple interfaces of the same EMANE model type but different model parameters
2016-04-20 08:43:39 -07:00
Tom Goff
6f77086540
daemon: Remove __del__() methods.
...
This simplifies Python garbage collection.
2016-03-04 16:57:29 -05:00
Tom Goff
6dbec302e3
daemon: Use /dev/null for stdin when running state hooks.
2016-01-29 18:47:12 -05:00
Tom Goff
6fb1eb9bd6
daemon: Log output from state hooks to a file.
...
Also close other file descriptors when running state hooks.
2016-01-29 16:18:39 -05:00
Tom Goff
c8d5ec994a
daemon: Include stack trace information when an exception occurs in a
...
session state hook.
2015-11-04 19:06:33 -05:00
Tom Goff
04e934c93c
daemon: Prefer using Session.getcfgitem() instead of direct access.
2015-10-09 13:50:45 -04:00
Tom Goff
e24bc9f3b9
daemon: Fix support for multiple session state hooks.
2015-10-09 13:50:39 -04:00
tgoff0
5838814f07
daemon: Improve running session state change hooks.
2015-05-22 00:56:24 +00:00
tgoff0
0018be074f
daemon: Only automatically save a XML representation of the current
...
running session when NMF version 1.0 is used.
2015-05-22 00:54:34 +00:00
tgoff0
ea4f6ba518
fixed issues with shutting down a distributed batch mode
2015-05-22 00:54:28 +00:00
tgoff0
591ec20937
daemon: Automatically save a XML representation of the current session
...
after starting, including the deployed network plan when the new NMF
format is used.
2015-05-22 00:54:04 +00:00
tgoff0
baec96fac1
Undo check for configured controlnet, which is optional.
2015-05-22 00:53:59 +00:00
tgoff0
f6049614ab
Undo check for configured controlnet, which is optional.
2015-05-22 00:53:54 +00:00
tgoff0
06fe91ea86
Added support for auxiliary control networks. Some refactoring.
2015-05-22 00:53:43 +00:00
tgoff0
5d08aa21bf
daemon: Set session configuration before setting the initial session state.
2015-03-24 23:30:04 +00:00
tgoff0
5bb00646d7
daemon: Call the EMANE post-startup function when entering the session
...
runtime state.
This should help synchronization startup for distributed emulations.
2015-02-05 00:15:48 +00:00
tgoff0
978f9946f1
daemon: Add initial support for invoking python callbacks when session
...
state changes occur.
2015-02-05 00:15:43 +00:00
tgoff0
fb662d06b7
daemon: Ignore redundant session state changes.
2015-02-05 00:15:38 +00:00
ahrenholz
503713f0bc
use hex value for short session ID used in naming interfaces
...
use interface names "vethOOOOO.ii.ss" and "vethOOOOO.iipss" for veth pairs
(where OOOOO = object id, ii = interface index, ss = hex short session ID)
fixes bug #260 virtual interface names too long
(Boeing r1894)
2014-10-28 21:18:16 +00:00
ahrenholz
5359ff4fd4
added support for distributed EMANE 0.9.2
...
(Boeing r1884)
2014-09-29 19:07:25 +00:00
ahrenholz
4ee92d1711
support linking RJ45 with EMANE 0.9.2 using Raw transport;
...
build extra XML and launch emane process on host for the raw devices
(Boeing r1882)
2014-09-23 20:24:19 +00:00
ahrenholz
e825b94e13
support for EMANE 0.9.2 by running emane process in each container
...
use control network for data and events
use internal transport instead of emanetransportd for 0.9.2
(Boeing r1881)
2014-09-23 16:26:22 +00:00
ahrenholz
66ebcb5cf4
fix bug #253 "NetworkManager runs DHCP..." for Ubuntu (but not Fedora/CentOS)
...
use "vethA.B.SS" name for veth devices (A = node number, B = index, SS = short session ID)
use "tapA.B.SS" name for tap devices; use "b.A.SS" name for bridge devices
added a SESSION_SHORT environment variable to the default CORE environment
(Boeing r1867)
2014-08-04 17:28:35 +00:00
ahrenholz
3bcbc0ffac
make daemon shutdown more robust to Python errors
...
(Boeing r1855)
2014-07-22 17:17:42 +00:00
ahrenholz
422ecab341
use default SDT URL as default session option
...
(Boeing r1840)
2014-04-22 15:49:12 +00:00
ahrenholz
7bc3fa99a0
added stdurl session option
...
(Boeing r1839)
2014-04-22 15:23:59 +00:00
ahrenholz
f717fcc0dd
(commit by Kelly Bunn)
...
session.py: Created method (sendnodeemuid) to send node status response
message, so all nodes can call it. Added per session updown
script option.
service.py: Added test for _starttime before calling float() in
bootnodeservices().
Changed servicesfromopaque code to collect unknown
services and return with valid services.
Changed handleevent to send a message with posible failed
and unknown services.
coreobj.py: Added code to put nodes actual configured services in
tonodemsg.
core-daemon: Added call to self.session.sendnodeemuid if in running
state in handlenodemsg
(Boeing r1824,1825)
2014-03-05 16:28:32 +00:00
ahrenholz
47433fc231
log exception messages generated by Session.exception()
...
(Boeing r1819)
2014-01-10 16:56:14 +00:00
ahrenholz
1e8abc4c1e
allow executing XML files from daemon from Register Message
...
(like a Python script)
added start flag to xmlutils.opensessionxml(),
XML file will be parsed into a live running session
(Boeing r1792)
2013-11-25 19:54:02 +00:00
ahrenholz
d00a49d682
added mkdir flag to Session.__init__() to allow adopting existing sessions
...
(Boeing r1786)
2013-10-25 15:21:08 +00:00
ahrenholz
dba5f31b8d
(Boeing r1766)
...
fix bug where TunnelNodes not included in boot count, session doesn't enter
the RUNTIME state
2013-09-05 17:32:50 +00:00
ahrenholz
30965ba950
(Boeing r1764)
...
added Broker.handlerawmsg() helper to invoke handlemsg() using packed bytes
2013-09-04 17:03:34 +00:00
ahrenholz
aad3f07560
(Boeing r1760)
...
fix Session.instantiate() for EMANE slave servers, which wait for their
platform ID and starting NEM ID from the master server
2013-08-30 18:41:39 +00:00
ahrenholz
ce65d617c5
(Boeing r1755)
...
allow specifying multiple controlnet prefixes for distributed sessions
a callback causes the broker to munge the CONF message so that controlnet
prefixes are assigned to slave servers by the master server
2013-08-29 17:51:19 +00:00
ahrenholz
f8f46d28be
initial import (Boeing r1752, NRL r878)
2013-08-29 14:21:13 +00:00