Jeff Ahrenholz
6be1e19d98
don't flush IPv6 address if interface is absent
2019-10-31 13:20:28 -07:00
Jeff Ahrenholz
85c926ff47
create ebtables chains as needed
...
* otherwise every switch gets a chain, causing problems with simultaneous running Python scripts
2019-10-31 13:00:46 -07:00
Blake Harnden
ea39f8fc6f
updated corehandlers.py to no longer use threading.isAlive, which is pending deprecation
2019-10-30 15:49:08 -07:00
Huy Pham
ef213dc66f
Merge branch 'develop' into coretk-config
2019-10-30 13:34:56 -07:00
Blake Harnden
79dfbaa3ec
switched session.metadata to just be a standard dict, fixed shutdown service issue during session.data_collect
2019-10-30 13:27:12 -07:00
Blake Harnden
fe95f246d4
added grpc get/set session metadata
2019-10-30 12:01:01 -07:00
bharnden
c0516255f2
added emane model configs and mobility configs to grpc.StartSession
2019-10-29 14:40:37 -07:00
bharnden
adbab066c9
added wlan configs to grpc.StartSession
2019-10-29 13:37:37 -07:00
bharnden
de936ea315
added hook creation and set location to grpc.StartSession
2019-10-29 12:35:07 -07:00
bharnden
4e03dc6888
updates to grpc StartSession, added utility threadpool function to help improve speed when running certain tasks, made use of utility threadpool function where needed
2019-10-29 10:25:39 -07:00
bharnden
236ac7919a
moved grpc utility functions into grpcutils, updated StartSession to threadpool node and link creation
2019-10-28 23:11:15 -07:00
Blake Harnden
934ea96558
changes to support a simpler start/stop session API
2019-10-28 15:18:57 -07:00
bharnden
fff281a452
removed master from corehandlers and session, since it will not be needed any more
2019-10-25 22:06:30 -07:00
Blake Harnden
77c7bf798e
changes to tests to fix session fixture not being master and updated emane xml config test to use a valid value
2019-10-25 15:32:12 -07:00
bharnden
8e67294a8a
changes to fix lock issues with multiple threads when stopping from gui
2019-10-24 21:17:15 -07:00
bharnden
5c12651e4e
updates to session.clear to clear out all configuration data as well, updated session.shutdown to use clear, updated tests to account for this
2019-10-24 13:05:02 -07:00
bharnden
dc27fadb10
added distributed tests based on new distributed, removed old distributed tests and fixture to support it
2019-10-24 11:52:25 -07:00
bharnden
c255625d2f
removed skipping TestCore:test_mobility
2019-10-24 11:20:38 -07:00
bharnden
6045908a14
cleanup for test fixtures to help simplify test_gui fixture setup
2019-10-24 10:58:26 -07:00
bharnden
27be86f175
fixed unwanted patcher in test fixture
2019-10-24 09:26:28 -07:00
bharnden
4a6a87b931
updates to how test fixtures are created
2019-10-24 09:06:14 -07:00
bharnden
ade1d980a8
updates to speed up tests
2019-10-23 23:15:19 -07:00
bharnden
d28a64b53c
removed todo for wireless links, since they may be used by an API, until know for sure, leaving in
2019-10-23 12:31:13 -07:00
bharnden
7366738023
updated network to network link to not look for Rj45, since that wont happen, removed unwanted grpc client function
2019-10-23 11:24:50 -07:00
bharnden
053d2a0b10
removed unused utils.hex_dump
2019-10-23 11:01:25 -07:00
bharnden
711104df64
update to move mac learning disable into wlan and hub node startup
2019-10-23 10:56:01 -07:00
bharnden
440c8ed565
updated interface.py to use python3 super()
2019-10-23 10:40:40 -07:00
bharnden
b185c3c679
updated network.py to leverage super()
2019-10-23 10:16:35 -07:00
bharnden
68be311c7a
updated usages of super to use python3 variation
2019-10-23 09:51:52 -07:00
bharnden
6a0a9e7698
updated all classes to be created without using (object), in python3 all classes are new style classes
2019-10-23 09:31:34 -07:00
bharnden
39c40d2a8c
updated netif function to remove net parameter, since it was not used
2019-10-23 09:15:27 -07:00
bharnden
3dccd073f2
updated newveth and newtuntap function to remove the net parameter, since it was not being used
2019-10-23 09:02:24 -07:00
bharnden
28d1803af6
added netifi to CoreInterface, so it is defined up front
2019-10-22 23:03:03 -07:00
bharnden
945f3cce5b
removed session.create_emane_network, removed unused node types
2019-10-22 21:27:31 -07:00
bharnden
14d759667c
refactored session.update_node to session.edit_node to match grpc call
2019-10-22 20:55:06 -07:00
bharnden
cb81095b64
refactored NodeData and NodeOptions to use server instead of emulation_server
2019-10-22 20:50:01 -07:00
Blake Harnden
ab0abd65aa
modified session.add_node parameter node_options, to just be options
2019-10-22 15:31:50 -07:00
Blake Harnden
ce411a07d7
removed session.create_wireless_node, can be achieved simply without needing this function
2019-10-22 15:13:28 -07:00
Huy Pham
b097028a4a
Merge branch 'develop' into coretk-create-node
2019-10-22 13:20:34 -07:00
Blake Harnden
c1bb9ed5d8
added optional custom class param for session.add_node
2019-10-22 13:15:12 -07:00
Blake Harnden
9e7b5abeb9
updated fabric commands to be hide output
2019-10-22 12:36:47 -07:00
Blake Harnden
b703ad11c6
updating command logging back to debug
2019-10-22 12:19:37 -07:00
Blake Harnden
f39b7e9f96
updated open_xml functionality, grpc open_xml can optionally start now, added opened files to grpc get_sessions
2019-10-22 12:08:55 -07:00
Blake Harnden
0a689a3e96
updates to grpc to provide a consistent config response, mapping config ids to ConfigOptions
2019-10-22 09:57:41 -07:00
Huy Pham
0e036ddca9
Merge branch 'develop' into coretk-create-node
2019-10-21 16:56:59 -07:00
Blake Harnden
233ca92fd2
update grpc to allow for configuring and created distributed nodes
2019-10-21 12:51:38 -07:00
Blake Harnden
630b44627c
updated distributed python examples a bit to clean things up
2019-10-21 11:36:59 -07:00
Blake Harnden
78f981463d
renamed utils.check_cmd to utils.cmd, updated host_cmd to allow for shell commands for output redirection
2019-10-21 10:32:42 -07:00
Blake Harnden
3fc0ca5cec
fix to get_node over grpc to avoid issues with nodes that dont have services
2019-10-21 09:51:52 -07:00
Blake Harnden
104ac4cdc7
Merge branch 'develop' of https://github.com/coreemu/core into develop
2019-10-21 09:37:26 -07:00
Blake Harnden
d056578e9d
modified ctrlnets to use an id starting at 9001, to avoid string based ids
2019-10-21 09:36:07 -07:00
bharnden
6006710c32
changed net_cmd to host_cmd and node_net_cmd to cmd, for simpler more logical naming
2019-10-18 23:28:09 -07:00
Blake Harnden
18e5598203
fixed node data reporting emulation server host instead of name
2019-10-18 16:28:13 -07:00
Blake Harnden
73b2eff312
fix for corehandlers.py session_clients access
2019-10-18 16:25:38 -07:00
Blake Harnden
83c408359a
set flow id logging to debug
2019-10-18 14:56:21 -07:00
Blake Harnden
2012105df0
updated core.conf to contain distributed address and grpc configurations
2019-10-18 14:43:36 -07:00
Blake Harnden
e298a2a5c1
grpc will now always be ran, but can be configured through command line or core.conf
2019-10-18 14:28:50 -07:00
Blake Harnden
c5ce85b235
added net client get ifindex and mac functions
2019-10-18 14:22:37 -07:00
Blake Harnden
bab5c75cb9
removed unwanted logging of container env
2019-10-18 13:20:05 -07:00
Blake Harnden
5633d4d18b
converted format strings to f strings
2019-10-18 12:55:35 -07:00
Blake Harnden
07b4408076
f string updates to all but services complete
2019-10-18 12:44:13 -07:00
Blake Harnden
7d2a615716
more updates to using f string
2019-10-18 10:33:31 -07:00
Blake Harnden
79cde8cd59
further f string updates
2019-10-17 19:25:52 -07:00
Blake Harnden
c9326b6a97
initial changes to use f strings
2019-10-17 18:59:50 -07:00
Blake Harnden
da946f1f56
removing builtins imports
2019-10-17 15:02:24 -07:00
Blake Harnden
6edd6a7fdb
first pass at removing all python2 specific dependencies, updating python requirements.txt/setup.py/Pipfiles/Makefiles, and removing python2 compat imports
2019-10-17 14:52:31 -07:00
Blake Harnden
5d5ffb70c2
update to grpc edit_node to allow editing icon and broadcasting a node update for all to listen to a change
2019-10-17 13:00:20 -07:00
Blake Harnden
fb28741393
Merge branch 'enhancement/distributed-flask' of https://github.com/coreemu/core into enhancement/distributed-flask
2019-10-17 12:13:45 -07:00
bharnden
8a3183c8b3
Merge branch 'enhancement/distributed-flask' of https://github.com/coreemu/core into enhancement/distributed-flask
2019-10-17 12:13:26 -07:00
Blake Harnden
4746fe67ef
added docs for distributed.py
2019-10-17 11:35:48 -07:00
Blake Harnden
e94a6d1afa
separated distributed session logic into its own class to help reduce session.py size as it is already too big
2019-10-17 11:10:59 -07:00
Blake Harnden
0ef06a0167
added docs for session distributed commands
2019-10-17 09:32:32 -07:00
Blake Harnden
b7dd8ddb66
fix for docker/lxd based nodes to use remote servers and example for lxd
2019-10-17 09:09:03 -07:00
Blake Harnden
7afaff8cbb
updated requirements and setup.py to include fabric/invoke
2019-10-17 08:41:48 -07:00
Blake Harnden
774dd8330c
removed broker.py
2019-10-16 20:26:14 -07:00
Blake Harnden
009ce8143e
removed lock for distributed commands and limited usage to uploads
2019-10-16 20:19:51 -07:00
Blake Harnden
8aef9f273f
updates to clear broker from physical node
2019-10-16 17:11:21 -07:00
Blake Harnden
61a4e228a1
updated ctrlnets to assign unique addresses per server, fixed ovs command issue for interface specific commands
2019-10-16 10:14:36 -07:00
Blake Harnden
0b8bc7bd13
updated corehandlers to allow sdt snooping to help mimic previous behavior
2019-10-15 15:02:38 -07:00
Blake Harnden
b2d2705849
removed broker from session, updated most places using broker to use alternative logic to compensate where needed
2019-10-15 14:13:42 -07:00
Blake Harnden
6570f22ccf
refactor fabric distributed to use a class and update sessions to create and provide these to nodes
2019-10-14 15:43:57 -07:00
Blake Harnden
5f282bb695
updates to lxd/docker to work with net_cmd/node_net_cmd
2019-10-14 14:28:18 -07:00
Blake Harnden
82bdbd776b
removed parameter conversion for creating GreTap commands
2019-10-14 12:31:41 -07:00
bharnden
1b428c120b
merged latest from develop
2019-10-12 14:39:29 -07:00
bharnden
4e4fcddd00
added grpc api for creating emane link/unlink messages, which will be sent to the gui for being added/removed
2019-10-12 08:56:39 -07:00
bharnden
eb248291a5
fix for gretap interfaces giving bad values to netclient
2019-10-12 08:10:30 -07:00
bharnden
fee56302a1
fix for wlan configuration issues
2019-10-12 08:03:20 -07:00
bharnden
2bfd050880
updated missed commands to be string based
2019-10-11 22:37:33 -07:00
bharnden
5b3308a231
updated linkconfig to use string commands, fixed issues for wlan configuration
2019-10-11 22:27:04 -07:00
Blake Harnden
02ef91242e
initial changes to convert all commands to be string based for consistency
2019-10-11 16:36:57 -07:00
Blake Harnden
69772f993c
removed VnodeClient.icmd and VnodeClient.term
2019-10-11 13:55:06 -07:00
Blake Harnden
b5d71bab82
removed VnodeClient.popen
2019-10-11 13:36:00 -07:00
Blake Harnden
fc7a161221
updated utils.check_cmd to accept the same parameters as other commands and be leveraged for node cmds
2019-10-11 13:15:57 -07:00
Blake Harnden
d326f246a7
removed node based check_cmd, updated to use appropriate function
2019-10-11 12:57:37 -07:00
Blake Harnden
4a6d69bb09
removing cmd_output function from utils and nodes
2019-10-11 09:34:49 -07:00
Blake Harnden
c3d27eb8a5
removed utils.cmd and related node functions
2019-10-10 23:01:16 -07:00
Blake Harnden
f6cdeb23de
changes to update commands to leverage either node_net_cmd/net_cmd
2019-10-10 15:25:12 -07:00
Blake Harnden
bc58693339
updated emane config files to be generated for remote servers, fixed services not using node remote server compatible commands
2019-10-10 11:53:52 -07:00
Blake Harnden
a4b6b8be51
updated link config to work distributed, added crude locking for fabric
2019-10-09 15:44:45 -07:00
Blake Harnden
859f473ba9
updated ebtables to use net_cmd
2019-10-09 12:13:26 -07:00
Blake Harnden
7e45168e77
distributed example for ptp
2019-10-08 21:17:15 -07:00
Blake Harnden
c8d68c332a
updates for testing using examples
2019-10-08 21:06:22 -07:00
Blake Harnden
b7b0e4222c
updates for basic working distrbuted network using fabric
2019-10-08 15:09:26 -07:00
Jeff Ahrenholz
0bbb686bda
fix exception when trying to run Python script from GUI
2019-10-08 13:05:37 -07:00
Blake Harnden
212fec916b
updated how distributed servers are added and connections are created to reduce duplicate connections
2019-10-07 11:58:27 -07:00
bharnden
4eacd815d1
updated to use fabric scp for copying files to remote nodes
2019-10-06 00:06:29 -07:00
bharnden
cca57bba47
updated other node system commands to be ran in such a way that should work if local or remote using shell commands
2019-10-05 16:10:01 -07:00
bharnden
95296988c5
updates to Pipefile.lock and for nodes to add server to constructor
2019-10-05 11:16:57 -07:00
bharnden
931ee65235
added remote_cmd func for nodes to avoid duplication
2019-10-05 09:48:30 -07:00
Blake Harnden
f83f98262f
some initial remote node commands using fabric
2019-10-04 17:33:44 -07:00
Blake Harnden
cc9c0eec96
Merge branch 'develop' into enhancement/distributed-flask
2019-10-04 13:31:13 -07:00
Blake Harnden
bb98a4a77f
removed circular dependency causing issues in python2
2019-10-04 12:36:15 -07:00
Blake Harnden
031517ba56
fixed base.py imports with isort
2019-10-04 09:29:10 -07:00
bharnden
7aa013d351
start to wrapping commands to support remote ssh
2019-10-03 20:38:32 -07:00
bharnden
70bb1598e1
fixed some nrl services for python3, using len(filter)
2019-10-03 13:49:26 -07:00
bharnden
fbfc4929f1
updated pipenv run core to default to turning on grpc
2019-10-03 13:31:22 -07:00
bharnden
41f7f46988
removed old examples, updated examples api to denote they are python script examples
2019-10-03 12:41:56 -07:00
bharnden
478eb84786
Merge pull request #298 from coreemu/cleanup/node-client
...
Cleanup/node client
2019-10-03 12:02:24 -07:00
bharnden
6d0d183788
fixed returning output from NodeBase.net_cmd
2019-10-03 11:59:45 -07:00
Jeff Ahrenholz
6c3066e752
cherry-pick commit e56c001
for Session() instead of EmuSession() class
2019-10-02 07:55:51 -07:00
bharnden
0fe8bea25b
added net_cmd to NodeBase for encapsulating network configuration commands
2019-10-01 21:06:11 -07:00
bharnden
4079df9739
added pydocs for netclient
2019-10-01 15:38:23 -07:00
bharnden
af7faa85df
removed redircmd, shcmd, shcmd_result, getaddr, netifstats from VnodeClient
2019-10-01 14:40:24 -07:00
bharnden
223590c8fb
removed vnode client netif stats, since was not being used
2019-10-01 12:52:25 -07:00
bharnden
d3d70ecc54
removed getaddr from node clients, since it was not being used
2019-10-01 12:30:32 -07:00
bharnden
e4bb315c14
updates to netclient, providing commonly used network commands in more convenient functions
2019-10-01 12:14:37 -07:00
Blake Harnden
a798774f18
updates to tone down warning logs to debug in broker.py and session.py
2019-09-30 12:58:13 -07:00
Blake Harnden
3f1ff113ca
small core configuration cleanup
2019-09-30 11:51:40 -07:00
Blake Harnden
6b43c00031
removed xmlfilever from config, since not used
2019-09-30 10:36:27 -07:00
Blake Harnden
1fb99e8690
converted info to debug for some corehandlers logging
2019-09-30 10:06:10 -07:00
Blake Harnden
d6cf09e4b8
updated service loading to catch on_load exceptions and ignore service
2019-09-30 09:33:17 -07:00
bharnden
503fa754a9
updates to fail early for required executables that are not in PATH
2019-09-27 23:29:15 -07:00
bharnden
050297587d
consolidated EmaneNode and EmaneNet, renaming EmaneNode to EmaneNet
2019-09-27 22:31:56 -07:00
Huy Pham
130c2a9b8d
Merge branch 'develop' into coretk-create-node
2019-09-27 16:19:03 -07:00
Blake Harnden
b961a8a959
updated broker.py logging to not be as noisy by default
2019-09-27 15:31:19 -07:00
bharnden
6886746711
Merge pull request #292 from coreemu/bug/290-fix-default-pythonpath
...
fix #290 use pythondir var as base for setting PYTHONLIBDIR
2019-09-27 14:25:19 -07:00
Blake Harnden
cd747515ea
added python path change to ns3 and simplified substitution, which is not version dependent
2019-09-27 12:11:14 -07:00
Jeff Ahrenholz
4b028661ab
fix #290 use pythondir var as base for setting PYTHONLIBDIR
2019-09-27 11:02:01 -07:00
Blake Harnden
a01ea35f7c
bumping configparser version in requirements.txt due to previous version removal
2019-09-27 11:01:19 -07:00
Blake Harnden
1277ae4686
fleshed out documentation for netclient.py and removed openvswitch.py
2019-09-27 10:48:24 -07:00
bharnden
0c002bb491
implemented net client for linux and ovs
2019-09-26 22:04:29 -07:00
bharnden
b449729a31
added net client to consolidate bridge and interface creation
2019-09-26 15:20:32 -07:00
bharnden
bdf288ff1d
removed is_net_node utility to leverage isinstance as other places are consistently
2019-09-26 13:15:46 -07:00
bharnden
b14012e5e9
removed node map file and utilities, added formal class methods to session objects and added checks for specific classes where needed
2019-09-26 13:00:12 -07:00
bharnden
d5c257fc9b
fixed flake8 config to match other tooling
2019-09-23 23:28:08 -07:00
Blake Harnden
597342248b
Merge branch 'develop' into coretk
2019-09-19 10:29:34 -07:00
Blake Harnden
372a690af9
coretk - added to pre-commit
2019-09-18 11:39:48 -07:00
bharnden
939203aa46
Merge pull request #280 from coreemu/pydocupdates
...
Pydocupdates
2019-09-17 11:56:04 -07:00
bharnden
976f06dc10
removed unwanted logging line from corexml.py
2019-09-17 10:13:51 -07:00
Huy Pham
22189122e6
add text to markdown table headers, fix some return types, fix emane link
2019-09-17 09:33:55 -07:00
bharnden
b6d5f23201
Merge pull request #275 from NvanAdrichem/master
...
Disable MAC learning on Wlan networks
2019-09-16 21:55:34 -07:00
Huy Pham
b333859d86
finish up server.py and fix 2 broken links
2019-09-16 12:55:00 -07:00
Huy Pham
edcb3d3472
updates on python comments 4:20pm friday
2019-09-13 16:21:07 -07:00
Blake Harnden
c0ce07404f
moved service validation to debug, to limit error messages causing confusion about failures
2019-09-13 13:26:30 -07:00
Blake Harnden
fcee44775a
changes to logging, moving logs to debug and removing setnemposition logging that could spam output
2019-09-13 13:13:59 -07:00
Huy Pham
813ddc10c6
Merge branch 'develop' into pydocupdates
2019-09-13 11:07:43 -07:00
Huy Pham
1843b5f709
further updates to python docs and docs files
2019-09-13 11:07:04 -07:00
Blake Harnden
5b8a7b1cfd
fixed path for example tdma schedule from moving emane tests
2019-09-12 16:13:24 -07:00
Blake Harnden
32bfa4b2f9
fixed exception catches for get_node expecting KeyError to expect CoreError
2019-09-12 15:48:09 -07:00
Blake Harnden
f71e2522dd
update Pipfile.lock due to configparser 4.0.1 removal
2019-09-12 14:29:56 -07:00
Huy Pham
2bfcc9ef24
Merge branch 'develop' into pydocupdates
2019-09-12 10:24:23 -07:00
Huy Pham
b43a686d6b
initial documentation improvements
2019-09-12 10:23:46 -07:00
bharnden
89fe61f312
fix for wlan configuration not getting set by default
2019-09-11 21:54:07 -07:00
bharnden
935a7da0e9
added node delete info logging
2019-09-11 15:44:15 -07:00
bharnden
0d5692e7e8
updates to try and clean up info logging, moved some statements to debug
2019-09-11 15:05:05 -07:00
bharnden
2a4ee68fd9
moved ping test method into the emane test itself
2019-09-11 13:16:09 -07:00
bharnden
3776e1dda7
moved emane dependent tests into subdir, moved pytest config into setup.cfg, added CoreError and made use of in session.py
2019-09-11 13:12:42 -07:00
bharnden
58471b168b
fixed logging changes to be python2 compatible, small change to Pipfile to support possibility of installing to python2, but python3 required for dev
2019-09-11 10:59:06 -07:00
bharnden
0683ea3c22
update setup.py to leverage extra_requires and updates to pipfile dependencies
2019-09-11 09:37:06 -07:00
Niels van Adrichem
09896b008e
Disable MAC learning on Wlan networks
2019-09-11 15:27:55 +02:00
bharnden
3e325fcdc7
fixed typo in test_links
2019-09-10 21:35:47 -07:00
bharnden
b4bc9c23a3
updated test_links to avoid running a system command and the need to use iperf/ping
2019-09-10 21:33:35 -07:00
bharnden
fb8fc46d0d
added pytest/mock to Pipfile, updated setup.cfg to increase max complexity for flake8 to pass for now with plans to decrease in the future
2019-09-10 21:12:39 -07:00
bharnden
dee91e97bf
changes to fix flake8 issues
2019-09-10 21:01:51 -07:00
bharnden
1fc8d647c3
added flake8/black, pre-commit integration for flake8/black, and black formatting changes
2019-09-10 15:10:24 -07:00
bharnden
d5055f85d3
pass over files using isort
2019-09-10 14:20:51 -07:00
bharnden
a004285514
adding isort/pre-commit dev dependencies and setup.cfg for isort
2019-09-10 14:07:46 -07:00
bharnden
6d8099e8c6
added pipenv as a recommend use case for development, updated core-daemon script to allow a parameter to pass in the logging configuration
2019-09-10 13:39:36 -07:00
bharnden
527a44748d
avoid bad check that prevents reverting link configuration to 0
2019-07-05 19:06:27 -07:00
Blake Harnden
2cd0f381ea
updated ovs service to use fail mode secure
2019-07-19 11:35:01 -07:00
Blake Harnden
554f4a570d
added check when deleting links to avoid exceptions from gui driven deletions
2019-07-19 07:46:17 -07:00
Blake Harnden
ccf5a5de60
updates to ryu service to run in a more general way avoiding the need for specific pathing and local installs
2019-07-18 08:19:51 -07:00
Blake Harnden
bcd2584eb8
grpc - add rpc to get local non-core interfaces
2019-07-12 13:02:15 -07:00
Blake Harnden
02668c9c3c
grpc - initial support for container node types
2019-07-11 13:09:04 -07:00
Blake Harnden
0d24ca3387
grpc support for docker/lxc
2019-07-10 13:58:27 -07:00
bharnden
802379d763
Merge pull request #267 from coreemu/feature/new-nodes
...
Adds Docker/LXD support
2019-07-05 16:36:16 -07:00
bharnden
836133c97d
reverting a change that caused switching sessions within gui to break
2019-07-05 09:00:14 -07:00
bharnden
ae5d718737
revert loss pack to using floats in all related places
2019-07-03 23:09:55 -07:00
Blake Harnden
913ca51b1c
cleanup for docker/lxd code being used, tweaks to running container commands
2019-07-02 16:05:45 -07:00
Blake Harnden
9e273c2d8f
small tweaks to cleanup lxd from commented out code
2019-07-02 09:51:56 -07:00
Blake Harnden
e83b38d96a
initial lxd based node working from simple scripts
2019-07-02 07:48:43 -07:00
Blake Harnden
2397cd58ee
integrated creation into the standard session.add_node call, currently requires an extra check due to the need for being able to specify an image
2019-06-28 15:41:55 -07:00
Blake Harnden
0e7464d419
fixed cmd to leverage wait similar to standard nodes and avoid throwing its own exceptions
2019-06-28 14:24:36 -07:00
Blake Harnden
6ab8368f1c
updates to attempt to support trying to run traditional services in some manner within the context of a docker node
2019-06-28 12:58:08 -07:00
Blake Harnden
5971950523
changes to have DockerNode based off a CoreNode instead, elminating the need for a lot of boiler plate
2019-06-28 08:17:11 -07:00
Blake Harnden
9825706e03
initial commit with some docker nodes integrating with core at a basic level
2019-06-27 15:45:35 -07:00
Blake Harnden
67595485c6
updated example custom emane model to get away from needing pycco altogether for documentation
2019-06-26 09:38:54 -07:00
Blake Harnden
f6af078e7e
pass at cleaning up custom service documentation and removing the need for pycco for this case
2019-06-25 16:03:37 -07:00
Blake Harnden
ca10ef4e9e
finished initial pass on adding tests to help run through and validate tlv message handling
2019-06-25 12:29:46 -07:00
Blake Harnden
4f4605163f
fixed issues executing xml from gui, added more tests for testing message handling
2019-06-24 15:49:12 -07:00
bharnden
588a0932d3
beginning to add some tests to help verify handling different tlv messages, added delete link logic for net to node and node to net
2019-06-21 23:12:18 -07:00
Blake Harnden
05c6233908
added utility method to replace execfile for python2/3 support
2019-06-21 09:29:19 -07:00
Blake Harnden
c57089284f
updates to rename utils.hash to utils.hashkey to avoid builtin conflict
2019-06-21 08:51:56 -07:00
Blake Harnden
a5f26e664a
updated logic for creating tunnel keys to use a consistent hashing method, since the builtin hash is not guaranteed in python3 as it was before in python2
2019-06-20 13:22:20 -07:00
Blake Harnden
338c3a1fa1
fix to avoid sorting issue for comparinga str to an int in python3
2019-06-20 10:49:07 -07:00
Blake Harnden
b5acdf0c3d
updated tests for running distributed to working order and adding simple emane case
2019-06-19 17:34:33 -07:00
Blake Harnden
407cfa5fe1
updated emanemanager to add server prefixes to control nets, when control nets are not configured
2019-06-19 13:52:51 -07:00
Blake Harnden
6270fcbc75
shifted session startup order to help ensure broker tunnels get setup before emane starts
2019-06-19 10:58:49 -07:00
Blake Harnden
14fc16832d
updated long to use lon in emane code to avoid name conflicts in 2.7
2019-06-19 08:22:28 -07:00
Blake Harnden
948b1126ba
changes to support not modifying controlnet configuration messages and avoid issues with setting the master meane config when dealing with distributed emane
2019-06-18 10:33:16 -07:00
bharnden
0af3629ac6
corefx - fixed some issues loading xml due to grpc change, updated subnet logic to help handle loaded scenarios. grpc - fixed issue when loading network links
2019-06-15 10:42:55 -07:00
Blake Harnden
6288e11bcc
grpc - fixed issue when handling wlan configurations
2019-06-14 14:14:00 -07:00
Blake Harnden
d724ee289b
added dependency and usage of ethtool to disable rx/tx checksums, since they will never be valid from a veth. also lowered some noisy logging and removed other logging
2019-06-12 12:41:01 -07:00
Blake Harnden
ac9dab097a
default logging to INFO
2019-06-12 09:44:10 -07:00
Blake Harnden
fca79fcf94
small change for possibility of runtime mobility configuration
2019-06-11 15:55:11 -07:00
Blake Harnden
a9e622c32f
fixed issue when getting wlan config range value from gui as a float string, cannot be parsed to int by python3
2019-06-11 15:27:50 -07:00
Blake Harnden
e7d12b9746
fixing mobility working in python2/3 due to using __cmp__ and node updates not being ints
2019-06-11 15:07:36 -07:00
Blake Harnden
e0dcb194cc
removed duplicate code updating basic range model updates
2019-06-11 13:23:19 -07:00
Blake Harnden
38c58d9603
fixed tlv api changing wlan config during runtime, fixed for grpc as well and added grpc test
2019-06-11 13:11:36 -07:00
Blake Harnden
fc654a31a8
update to installation docs, tweaks to handling python2/3 package builds
2019-06-10 11:41:27 -07:00
bharnden
10df7d35ee
fixed saving bidirectional params for ptp networks, storing to xml and loading back into running environment
2019-06-08 21:46:07 -07:00
bharnden
191d392c46
updated grpc node x,y types, added new grpc session position type, grpc updated link options to use int, fixed corehandlers handling of dup, fixed corexml type handling for link options, updated mobility config types to correlate with link options
2019-06-08 16:56:39 -07:00
bharnden
e2f2d9dca0
added xml tests for network to network links and verifying saving/loading of link options for network and ptp cases
2019-06-08 14:01:26 -07:00
bharnden
7594afec82
updated all scripts to be executable
2019-06-07 21:49:48 -07:00
Blake Harnden
e62ae42bdc
merged latest from master
2019-06-07 10:05:40 -07:00
Blake Harnden
db7bfe12bd
pass on updated pydocs to reflect path changes
2019-06-07 08:59:16 -07:00
Blake Harnden
89877ffe6f
updated docs for python files
2019-06-06 16:34:26 -07:00
Blake Harnden
994fe042e1
updates to just leverage broker clients instead of repeating logic for now, until broker is refactored
2019-06-06 13:02:20 -07:00
Blake Harnden
0b770d8350
reverted enclosing system start in exception handler
2019-06-06 11:43:39 -07:00
Blake Harnden
e59a8bf66d
changes to add back in coresendmsg udp support
2019-06-06 11:33:22 -07:00
Blake Harnden
4381615f1d
fixed issue for link data not including per/loss when it is a ptp node, for host to host links
2019-06-05 09:54:11 -07:00
bharnden
c262778209
just use setuptools in setup.py
2019-06-04 21:49:44 -07:00
bharnden
996a7715be
fixed ignoring adding nodes to xml and xml links from network to network
2019-06-04 16:03:07 -07:00
bharnden
86ada3da0b
updated requirements.txt to latest tested 2/3 environment and updated setup.py to reflect current dependencies
2019-06-04 15:41:15 -07:00
bharnden
f78736ebfd
updated coresendmsg and core-manage to be 2/3 compliant
2019-06-04 14:42:40 -07:00
bharnden
6c861a6ff8
fixed issues related to writing xml with tunnel nodes using othernet, fixed reading x,y as int instead of float due to packing issues for tlv
2019-06-04 10:59:02 -07:00
bharnden
d1114bd804
fixed byte/str issue in coreapi tlv mac addr
2019-06-04 10:55:08 -07:00
bharnden
675dd0614d
fixed bad variable name in session.py
2019-06-04 10:54:09 -07:00
bharnden
f5efecabf0
byte string fix in coreapi, different approach to urlparse compatibility to avoid other issues
2019-06-03 21:22:11 -07:00
Kevin Larson
c4c1a10f05
Added compatible idioms for configparser and queue to support both python2 and python3
2019-06-03 18:22:25 -07:00
Kevin Larson
823fda9c97
Switched write to writebytes for python3 support
2019-06-03 18:22:06 -07:00
Blake Harnden
c9baf66f3d
fixed utils.cmd_output to utf-8
2019-06-03 16:49:55 -07:00
Blake Harnden
597bd21994
updated logging.warn to logging.warning due to deprecation in python3, fixed python 2/3 filter issue in tests, fixed utf decoding for some missed popen commands
2019-06-03 14:36:21 -07:00
Blake Harnden
69b1297002
updated protobuf to use string instead of bytes for 2/3 compatibility for now, updated default service in grpc tests, fixed byte string issues for python3 in coreapi
2019-06-03 13:34:54 -07:00
Blake Harnden
7efec88e79
merged latest from develop
2019-06-03 13:06:11 -07:00
Blake Harnden
bb5e68ad8b
2/3 fixes for ip address and mac byte handling
2019-06-03 11:49:43 -07:00
bharnden
db9d13aff8
update to setparams check to avoid python3 errors, and fix to ipprefix
2019-06-02 22:53:39 -07:00
bharnden
40176e861d
fixed unit test for vnode client, due to changes using python directly
2019-06-02 22:31:23 -07:00
bharnden
7a0edd5927
fixed bad logic introduced into interface setparams, fixed grpc edit link test
2019-06-02 22:20:00 -07:00
bharnden
3de37f0f5e
fixed basestring check for 2/3 compatibility
2019-06-02 19:23:49 -07:00
bharnden
ecc63f4abb
updates to support 2/3 along with not using vcmd c extension
2019-06-02 19:06:25 -07:00
bharnden
a8061b811d
grpc added get node terminal, updated corefx to leverage get node terminal to launch local terminals on double click
2019-05-31 22:20:19 -07:00
Blake Harnden
4c1d7bfb22
grpc added simple throughputs stream events
2019-05-31 14:19:23 -07:00
Blake Harnden
1890db5991
added grpc for a node command and fixed grpc unit tests
2019-05-31 11:46:47 -07:00
Blake Harnden
e063fcd4fe
core-daemon now allows configuration for grpc address and port, defaults to localhost, also fixed grpc example due to enum and event changes
2019-05-30 16:31:48 -07:00
Blake Harnden
df3a8980ed
grpc merged multiple event request/handlers into a singular event request for a session, which will return all events
2019-05-30 13:07:45 -07:00
Blake Harnden
2ed2b4a879
encapsulated grpc enums within messages to help provide better namespace separation due to python/c code generation
2019-05-30 08:57:24 -07:00
Blake Harnden
b3aaa870eb
Merge branch 'develop' of https://github.com/coreemu/core into develop
2019-05-28 14:33:10 -07:00
Blake Harnden
3e194af5ee
updated all grpc variables to use more explicit naming for session/node/interface ids
2019-05-28 14:31:34 -07:00
bharnden
f1d440488c
Merge pull request #249 from coreemu/corefx-grpc
...
Adding corefx using grpc client
2019-05-28 13:07:00 -07:00
Kevin Larson
83e883ee13
Removed instances of old nrl mailing list
2019-05-28 10:59:34 -07:00
bharnden
a593289f1b
initial commit supporting converting corefx to using grpc from previous rest client
2019-05-25 10:16:50 -07:00
bharnden
864c7b69a1
updated Queue and ConfigParser to use 2/3 compatible imports
2019-05-05 21:49:42 -07:00
bharnden
b58d32c156
updated socketserver to 2/3 compliant
2019-05-05 21:37:45 -07:00
bharnden
1e98175e35
refactored usages of iteritems, itervalues, and iterkeys to be 2/3 compliant
2019-05-05 21:23:43 -07:00
bharnden
8d6bf54a16
removed usage of longs, updated int instance checking and octal constants to be 2/3 compliant
2019-05-05 17:11:07 -07:00
bharnden
5b7453b906
updated caught exceptions to be 2/3 compliant
2019-05-05 16:58:08 -07:00
bharnden
b42b5b1a5a
fixed updated raised exceptions to be 2/3 compatible
2019-05-05 16:56:18 -07:00
bharnden
feebd8704f
updated all print calls to use print() method for 2/3
2019-05-05 16:52:55 -07:00
bharnden
e58cbe9421
added future library to support python2/3, updated xrange calls to leverage builtins range
2019-05-05 16:19:12 -07:00
bharnden
e79fd6c7ce
merged EmuSession and Session, small cleanup
2019-05-01 23:17:46 -07:00
bharnden
66e603906a
updates to layout core module packages in a more logical way, including renaming methods from objects to nodes and nodes.objid to nodes.id
2019-04-29 23:31:47 -07:00
bharnden
9517740704
initial refactor for all variables named objid
2019-04-26 22:07:51 -07:00
bharnden
d584bbbcb1
Merge branch 'develop' into FRR-patch-1
2019-04-24 22:56:24 -07:00
bharnden
f04d7a7185
Merge pull request #240 from apwiggins/patch-2
...
Add FRR service file
2019-04-24 22:50:29 -07:00
bharnden
6240927caa
Merge pull request #239 from apwiggins/patch-1
...
Add FRR STATE DIR constant to FRR daemon
2019-04-24 22:46:23 -07:00
apwiggins
46e58ff187
Update frr.py
2019-04-10 16:17:44 -03:00
apwiggins
840a27632d
Update frr.py to use pimd
2019-04-10 09:23:11 -03:00
apwiggins
a3c3d0c18d
Add FRR service file
2019-04-09 18:07:00 -03:00
apwiggins
49cdf80523
Add FRR constant for state directory
2019-04-09 18:05:51 -03:00
apwiggins
a6874daba8
Add FRR service file
2019-04-09 17:55:10 -03:00
apwiggins
2b82c2022c
Add FRR STATE DIR constant to FRR daemon
2019-04-09 17:53:32 -03:00
apwiggins
54f1d9aefd
Add FRR search paths
2019-04-09 17:50:16 -03:00
bharnden
73bc56e4c3
renamed session.session_id to session.id
2019-04-08 10:39:36 -07:00
bharnden
6672fd0f7a
updates to allow configuration of installed emane_prefix for default models, requires small tweaks to custom models
2019-04-08 09:49:37 -07:00
bharnden
2825ce423b
removed pydoc line, no longer needed
2019-04-07 13:08:49 -07:00
bharnden
b518105e5f
updated link test due to change on what get_node_count returns
2019-04-06 23:06:35 -07:00
bharnden
4ade93a5a6
fixed spacing in input file for core lib
2019-04-05 22:35:38 -07:00
bharnden
747c2792a1
fixed issue with grpc server saving mac addresses on links
2019-04-05 21:25:46 -07:00
bharnden
3c8b4ab0a5
#236 fix for missing loss/per values in xml and other cases
2019-04-04 21:32:50 -07:00
bharnden
51634318a3
small codacy cleanup
2019-04-04 20:52:20 -07:00
bharnden
34678ff48f
updated requirements.txt to add grpcio library
2019-04-04 20:25:23 -07:00
bharnden
315e9b9cd3
updated core url to reference github
2019-03-30 21:19:00 -07:00
bharnden
1bf53cfd03
small cleanup to grpc switch example
2019-03-30 21:05:50 -07:00
bharnden
27ea317a57
create initial example client script for grpc and separated from within the client library
2019-03-30 19:01:11 -07:00
bharnden
2b14865473
grpc finished client doc
2019-03-30 18:51:01 -07:00
bharnden
69a4ea420c
grpc futher documentation for client code
2019-03-29 23:47:20 -07:00
bharnden
5c47b0cc43
grpc updated client methods to use proto objects directly, added more docs
2019-03-29 22:12:34 -07:00
bharnden
ec1b82238e
grpc fixed add node doc
2019-03-28 21:48:22 -07:00
bharnden
5161e4812a
grpc updates to use proto values from client, rather than trying to squeeze in existing data types
2019-03-28 21:47:30 -07:00
bharnden
cb8630bb03
updated grpc client documentation
2019-03-26 21:41:34 -07:00
bharnden
0677a5c718
updated makefiles to build/clean protobuf files
2019-03-26 08:58:29 -07:00
bharnden
088230515e
grpc initial documentation for grpc client
2019-03-25 22:14:56 -07:00
bharnden
51d93db586
grpc updated get_node method for server and added some more test cases
2019-03-25 22:00:08 -07:00
bharnden
fdc0362ba5
updated proto enums to be prefixed with a contextual name, since they all derive from the module directly
2019-03-25 17:16:54 -07:00
bharnden
7299abd64d
grpc added service/events rpc tests
2019-03-25 14:03:04 -07:00
bharnden
b15e525cc1
grpc added mobility tests
2019-03-25 12:59:07 -07:00
bharnden
03c221efa9
grpc added all emane rpc tests
2019-03-25 11:52:16 -07:00
bharnden
bfd5f5b5ac
Merge branch 'develop' into grpc
2019-03-25 11:11:48 -07:00
bharnden
51217e509b
updated version to 5.2.1, updates to make version bumps easier, and updated changelog
2019-03-25 10:44:47 -07:00
bharnden
d880960cf7
grpc added get/set emane config test, fixed logic for setting emane/session configs in grpc server
2019-03-24 14:13:04 -07:00
bharnden
6d79014aad
grpc added wlan rpc tests
2019-03-24 13:48:27 -07:00
bharnden
96d38e0b40
grpc updated create link/node to use the verbage add, to align with the actual python EmuSession class
2019-03-24 13:14:39 -07:00
bharnden
6f428bd68a
grpc added link tests, fixed client mac conversion
2019-03-24 13:04:18 -07:00
bharnden
782b9d5ce6
grpc added hook and xml rpc tests
2019-03-22 21:44:16 -07:00
bharnden
01979d53ec
grpc added node rpc tests
2019-03-22 21:20:37 -07:00
bharnden
9b237a2413
grpc made common method for node links
2019-03-22 21:06:10 -07:00
bharnden
cb62750b60
grpc further cleanup of server code
2019-03-22 17:07:54 -07:00
bharnden
1c00834f23
grpc cleared out usage of update_proto in server code
2019-03-22 16:16:30 -07:00
bharnden
4a6a462d48
grpc updated client to leverage constructors throughout and remove update_proto
2019-03-22 15:11:40 -07:00
bharnden
5c2521bc12
grpc cleaned up session rpc calls to leverage proto constructors
2019-03-22 14:32:39 -07:00
bharnden
c6cfe1a8f4
grpc update to get session and get sessions
2019-03-22 14:02:18 -07:00
bharnden
1f3e72e014
grpc create session can now specify id, updated all session proto to use SessionState for state, added suite for session testing for grpc
2019-03-22 13:45:53 -07:00
bharnden
3498a59ed5
grpc added initial tests and fixture to support them
2019-03-21 23:29:26 -07:00
bharnden
0c0ff95fb6
grpc added listen to server class and updated server/client to specify grpc in their names
2019-03-21 22:56:33 -07:00
bharnden
16d9009c3f
grpc added convenience methods for starting streams, updated logic for bailing out on streams and allow handling them better
2019-03-20 22:11:09 -07:00
bharnden
8009a18a1c
grpc added debug logs for all requests
2019-03-19 21:43:11 -07:00
bharnden
6b8857328e
grpc updated and dixed exception events to working order
2019-03-19 21:26:06 -07:00
bharnden
84ff1f4275
grpc added client disconnect detection for streams
2019-03-18 22:32:01 -07:00
bharnden
e282b3b8f8
grpc added link events
2019-03-18 21:46:27 -07:00
bharnden
8ee1db5dc8
grpc added config, exception, and file event streams
2019-03-17 23:29:38 -07:00
bharnden
f60a6720f0
grpc added specific grpc aborts for node/session not being found
2019-03-17 15:53:29 -07:00
bharnden
a07b0c8919
grpc added mobility get configs, get config, set config, and action
2019-03-17 15:28:51 -07:00
bharnden
9185c6b8eb
grpc added set node service, set node service file, set session options
2019-03-16 21:40:15 -07:00
bharnden
a62a03e6b9
grpc added node service file and service action
2019-03-16 20:53:26 -07:00
bharnden
f24376d66c
grpc added node/session event streaming requests
2019-03-16 13:48:25 -07:00
bharnden
d9ae7d5c34
grpc added standard connect/close along with context connect
2019-03-16 12:57:59 -07:00
bharnden
9c973249e8
grpc added get wlan and set wlan config
2019-03-16 12:48:37 -07:00
bharnden
5d72b6af26
grpc added get hooks and add hook
2019-03-16 12:33:24 -07:00
bharnden
8559b425ee
grpc added set emane and emane model configs
2019-03-15 22:03:37 -07:00
bharnden
641427671c
grpc added get emane models, model config, and model configs
2019-03-15 21:38:29 -07:00
bharnden
5753c91906
grpc added get/set service defaults and get node service data
2019-03-14 22:33:10 -07:00
bharnden
0c20e76630
grpc added save/open xml, fixed session.get_node_count(), fixed issue with grpc get session options
2019-03-02 13:44:27 -08:00
bharnden
0ccf5a7456
updated core-daemon to use argparse and formally added ovs and grpc flags
2019-03-02 13:04:55 -08:00
bharnden
44f70d0c2e
grpc added get node links, get services, get emane config
2019-03-01 22:14:16 -08:00
bharnden
460e5c04d0
grpc added get/delete node, create/edit/delete link apis
2019-02-26 14:34:52 -08:00
bharnden
6016152490
added grpc create/edit node calls
2019-02-25 22:45:57 -08:00
bharnden
ad7522b5bc
grpc added delete session and set session state apis
2019-02-24 08:15:33 -08:00
bharnden
fcff9e4551
grpc added create session and set session location
2019-02-24 07:44:41 -08:00
bharnden
e819b706bc
grpc support for get session options and location
2019-02-20 21:19:35 -08:00
bharnden
b573eb641e
grpc updates to provide link data within a session query
2019-02-19 23:32:04 -08:00
bharnden
7aed803aae
added grpc api to core-daemon, added get sessions and get session rpc calls
2019-02-18 22:54:14 -08:00
bharnden
e72f133488
added proto makefile to repo
2019-02-17 23:42:57 -08:00
bharnden
0a445f2706
initial files to support grpc server/client
2019-02-17 23:41:30 -08:00
bharnden
9b1141a135
fixes issue saving/loading rj45 nodes to xml
2019-02-17 10:18:23 -08:00
bharnden
7aee2b2ba7
updated logging usage, to use the library directly and avoid imposing a core config by default, allowing users of the core library to configure logging as desired
2019-02-16 09:50:19 -08:00
bharnden
37f747c212
Update coreapi.py
...
fixed get_tlv using enumerated type instead of value
2019-02-12 20:38:00 -08:00
bharnden
b8441bdd2b
Update mobility.py to set default wlan bandwidth to 54,000,000
2018-11-20 13:54:31 -08:00
bharnden
03d0e90db5
Merge pull request #198 from coreemu/bugfix/reduce-default-core-daemon-logging
...
quiet core-daemon by replacing warn messages with debug
2018-11-14 15:26:50 -08:00
bharnden
a7bc7500fb
Merge branch 'master' into cleanup/codacy-cleanup
2018-10-18 16:21:05 -07:00
bharnden
419b90bad6
removed unused import in corexml.py
2018-10-18 16:18:27 -07:00
bharnden
1aa0e78cdf
Merge branch 'master' of https://github.com/coreemu/core
2018-10-18 16:10:28 -07:00
bharnden
91fc852db1
removed unwanted logging in xml generation
2018-10-18 16:08:04 -07:00
bharnden
6dbce144f9
fixed issue with node positions being set to none, when a position is not provided in an update message
2018-10-18 16:01:42 -07:00
bharnden
f5da989eca
Merge pull request #203 from coreemu/bugfix/fix-dhcp-service-under-ubuntu1804
...
fix DHCP server service to work under Ubuntu 18.04
2018-10-16 11:26:31 -07:00
Jeff Ahrenholz
8f8ca04562
codacy: fix trailing whitespace
2018-10-16 10:15:04 -07:00
bharnden
934d7a0764
couple changes for cleanup in perflogserver.py and daemon/setup.py
2018-10-15 08:33:06 -07:00
bharnden
b37eb2fe74
updated xml tests and removed unused xml code
2018-10-11 21:22:57 -07:00
bharnden
01004d5ab9
cleanup on broker.py and README.md
2018-10-11 21:03:46 -07:00
bharnden
12cc40d3d3
cleaned up core.emane, core.services, core.xml, fixed bug introduced in coreobj.py
2018-10-11 17:26:34 -07:00
bharnden
eb04e0a79f
cleanup for core.misc and core.netns
2018-10-11 16:01:17 -07:00
bharnden
05a5574155
cleanup of core.api, core.emulator, core.pnodes
2018-10-11 14:49:22 -07:00
bharnden
aa91bb67a1
cleanup of files in root core module
2018-10-11 13:28:02 -07:00
bharnden
e43d42f16b
Merge pull request #201 from coreemu/bugfix/handle-node-privatedir-exceptions-gracefully
...
log warning when node.privatedir() raises an exception
2018-10-10 15:26:47 -07:00
bharnden
2e1bd23cce
#201 small changes to adapt to new error style and catch specific exceptions that may arise
2018-10-10 15:21:26 -07:00
bharnden
eafaa100c3
Merge pull request #200 from coreemu/bugfix/fix-core-cleanup-killall
...
fix core-cleanup script to invoke killall correctly
2018-10-10 15:04:26 -07:00
bharnden
7232ac5a5d
Merge pull request #199 from coreemu/feature/nat-service
...
add a source NAT service using iptables masquerade
2018-10-10 14:55:08 -07:00
bharnden
ca107a3207
#199 small tweaks to be consistent with rest of code
2018-10-10 14:49:51 -07:00
Jeff Ahrenholz
2e507d7d41
clean up daemons/src/Makefile.am left over from move to netns dir
2018-10-10 11:48:29 -07:00
Jeff Ahrenholz
853ae94d52
fix DHCP server service to work under Ubuntu 18.04
2018-10-10 10:11:32 -07:00
Jeff Ahrenholz
9399218123
enable OSPFv2 fast convergence, and fix router-id for IPv6-only nodes
2018-10-10 09:58:18 -07:00
Jeff Ahrenholz
c92ce40ddb
log warning when node.privatedir() raises an exception
2018-10-10 09:43:32 -07:00
Jeff Ahrenholz
7d6b540a98
fix core-cleanup script to invoke killall correctly
2018-10-10 09:35:03 -07:00
Jeff Ahrenholz
366f63fb96
add a source NAT service using iptables masquerade
2018-10-09 15:19:14 -07:00
bharnden
b839482198
fixes #197 removes wireless_link_all and updates example
2018-10-09 12:46:27 -07:00
Jeff Ahrenholz
18d4908bf8
quiet core-daemon by replacing warn messages with debug
2018-10-09 10:13:12 -07:00
Blake J. Harnden
549d6bd84c
fixes #196 and avoids clearing default services on reset
2018-10-02 08:36:23 -07:00
Blake J. Harnden
17f1a9871a
fixes #195 tlv link messages will now use the right value for interface two ip6 masks
2018-10-02 08:26:25 -07:00
bharnden
00920afbce
#193 updates to service validation, will retry validation for validation_timer period, instead of just waiting, using configurable validation_period
2018-09-26 14:20:19 -07:00
bharnden
11088c716a
#193 improved logging for custom service failures, should help trace issues that may arise
2018-09-12 12:15:53 -07:00
bharnden
a4c5e32e5a
fix example service config file names
2018-09-12 11:25:47 -07:00
bharnden
f8ec15f620
fixes #188 - remove session on delete
2018-09-17 08:40:52 -07:00
bharnden
4e6ec1a474
Update mobility.py
...
fixed label for mobility script refresh rate
2018-09-11 14:20:36 -07:00
bharnden
e07140338d
Merge pull request #184 from coreemu/bugfix/add-session-class-to-create_session
...
allow passing in a Session class to CoreEmu.create_session() helper
2018-09-10 16:04:57 -07:00
Blake J. Harnden
91ee45bbb9
removed logrotate config file since not used anymore, updated configure.ac formatting, added Ubuntu 18.04 dependencies to docs
2018-09-10 15:25:28 -07:00
Jeff Ahrenholz
e56c001cde
allow passing in a Session class to CoreEmu.create_session() helper
...
Signed-off-by: Jeff Ahrenholz <siliconja@users.noreply.github.com>
2018-09-07 10:09:57 -07:00
Blake J. Harnden
36f80e1a48
updates to session-deployed container element, emanePlatform elements now include transport and associated addresses
2018-08-28 10:24:56 -07:00
Blake J. Harnden
79af4a6f8d
removed creation of old deploy file
2018-08-22 16:18:48 -07:00
Blake J. Harnden
4649563664
added deployment information back into session-deployed.xml
2018-08-21 14:26:59 -07:00
Blake J. Harnden
991abb1895
added test for utils.make_tuple_fromstr and fixed send_objects to ignore checking nodes for all configs, since that is not always the case
2018-08-17 08:25:57 -07:00
Blake J. Harnden
0c840f553d
updated utility split args method to work with both str/unicode types
2018-08-16 16:56:13 -07:00
Blake J. Harnden
ae2c0aa697
fixed issue with loading custom service directories from xml, fixed issue with parsing an empty tuple string in utility method
2018-08-16 12:20:56 -07:00
Blake J. Harnden
cf6f8391b0
added interface name and nemid for emane connected interfaces to generated xml
2018-08-14 12:31:44 -07:00
Blake J. Harnden
08b27ad0d7
fixed issue with emane location events and publishing node data
2018-08-07 10:51:33 -07:00
Blake J. Harnden
75ea42b2e8
fixed issue with converting lat/lon/alts to float in corehandlers.py and a bad logging statement in coreemu.py
2018-08-06 16:38:59 -07:00
Blake J. Harnden
973a4b9d76
updates to example service and documentation supporting it
2018-08-02 10:12:05 -07:00
Blake J. Harnden
4f592d0651
fixed issue with viewkeys behaving different between versions of python 2.7
2018-08-01 18:22:41 -07:00
Blake J. Harnden
4a9c751935
refactored service boot path discovery to be more robust, still based on services provided alone
2018-08-01 10:13:57 -07:00
Blake J. Harnden
23f5d7fb8c
moved core markdown documentation to live within to repo, this will eventually be the docs hosted on github and allow them to be versioned with the code
2018-07-31 12:57:30 -07:00
Andreas Martens
7dedaa0344
add comments to the OVS service
2018-07-30 15:12:08 +01:00
Blake J. Harnden
adfa835886
added xml hook test
2018-07-27 16:31:33 -07:00
Blake J. Harnden
6d11f5d63d
Merge branch 'rel/5.2' of git-ssh.web.boeing.com:Boeing-CORE/CORE into rel/5.2
2018-07-27 16:11:12 -07:00
Blake J. Harnden
8009572fc0
fixed issue with corexml and loading hooks
2018-07-27 16:10:47 -07:00
Kevin Larson
07dfb48c86
Merge branch 'rel/5.2' of https://git.web.boeing.com/Boeing-CORE/CORE into rel/5.2
2018-07-26 12:25:54 -07:00
Kevin Larson
d1364c888d
Updated ip commands to use constants.IP_BIN
2018-07-26 12:25:12 -07:00
Blake J. Harnden
f1863a874d
removed unwanted logging
2018-07-25 15:24:54 -07:00
Blake J. Harnden
9ce28da658
fixed bug with custom service files using the same dict across instances of the class
2018-07-25 09:37:59 -07:00
Blake J. Harnden
087a0f011b
added back in core emane address creation, only when not external
2018-07-24 13:34:33 -07:00
Blake J. Harnden
e3e25463eb
removed line sending service load errors to the gui and it interferes with current coresendmsg
2018-07-19 16:45:05 -07:00
Blake J. Harnden
5bb23c1d93
fixed issue and determined better way to generate boot dependency paths for services
2018-07-12 20:04:04 -07:00
Blake J. Harnden
a6f2b9d7c1
removed emane transport definitions from external configurations
2018-07-12 15:28:26 -07:00
Blake J. Harnden
3d59a68299
refactored how getters for configurations worked, to avoid setting defaults and causing undesireable states
2018-07-11 21:34:21 -07:00
Blake J. Harnden
b03662dbeb
removed emane nodes netif install and setaddrs, install was always skipped and setaddrs is done by zebra/quagga
2018-07-11 09:24:44 -07:00
Blake J. Harnden
bfbee35a53
updates to support external transport configuration and an emane transport service to generate and run emanetransport for a configured external transport model
2018-07-11 09:19:06 -07:00
Blake J. Harnden
bf222cd5b4
fixed issue with OvsCtrlNet startup ordering and variable definition
2018-07-09 08:37:45 -07:00
Blake J. Harnden
bf8b7c6d5f
small updates to conf.py documentation
2018-07-06 14:58:59 -07:00
Blake J. Harnden
aed3126a6a
changed corexml log statement
2018-07-06 14:51:28 -07:00
Blake J. Harnden
5b0ed13e78
fixed linkconfig parameter name to match other linkconfig signatures
2018-07-06 14:40:51 -07:00
Blake J. Harnden
3fb8ae0439
updated versioning to 5.2
2018-07-06 14:26:33 -07:00
Blake J. Harnden
90f95c633f
removed old script file from 5.1 merge
2018-07-06 14:09:03 -07:00
Blake J. Harnden
d988ff86d1
added documentation to emanexml
2018-07-06 11:56:09 -07:00
Blake J. Harnden
875a880250
refactored emane xml configurations into an isolated file, using lxml
2018-07-06 11:41:32 -07:00
Blake J. Harnden
f115b1a847
emane xml fully generated from lxml apis, removed xml functions embedded within emane nodes, emane manager, and emane models. Started consolidating emanexml logic into its own module, when it makes sense
2018-07-03 18:49:36 -07:00
Blake J. Harnden
ae94c78fbb
updated emane model xml to leverage lxml
2018-07-03 12:48:54 -07:00
Blake J. Harnden
4ccb1ed9f3
working lxml based save/load
2018-07-03 09:50:14 -07:00
Blake J. Harnden
d05bc9240a
initial code to leverage lxml to create xml for saving and loading core sessions
2018-06-28 16:30:55 -07:00
Blake J. Harnden
1d355d98ec
added more services tests
2018-06-25 08:41:23 -07:00
Blake J. Harnden
bb533406a6
refactored service methods to be shorter, updated some logging to debug, added some more service tests
2018-06-22 15:47:02 -07:00
Blake J. Harnden
8186f3716c
refactored service function names
2018-06-22 14:41:06 -07:00
Blake J. Harnden
0efcd910db
removed node boot/validate methods, since it was using a circular reference to run a CoreService method
2018-06-22 11:59:16 -07:00
Blake J. Harnden
37517c45f4
changed some logging from info to debug, removed startindex and depends from services
2018-06-22 08:16:59 -07:00
Blake J. Harnden
0aca9d7809
changes to remove the need to pass services separately, when the node has access to them directly, also made a couple CoreServices methods more consistent to have the node as first param and service second
2018-06-21 14:56:30 -07:00
Blake J. Harnden
b868454b5e
updates to use dependency based startup logic
2018-06-21 11:20:08 -07:00
Blake J. Harnden
08956e7b93
making use of threadpools to boot each node and boot the services within a node
2018-06-20 16:18:30 -07:00
Blake J. Harnden
ed4e6f0f00
removed startup service
2018-06-20 13:07:43 -07:00
Blake J. Harnden
3443937ff2
updated service load errors to be warnings
2018-06-20 13:04:13 -07:00
Blake J. Harnden
c6d2ca6b02
made use of threadpool for starting services, refactored services to support 3 validation models (blocking, non-blocking, timer)
2018-06-20 12:59:07 -07:00
Blake J. Harnden
37ce407460
added logic to help provide dependent service ordering
2018-06-19 18:36:53 -07:00
Blake J. Harnden
bf47e5fc0d
added service executable check, added error message to gui for service load errors
2018-06-19 09:19:49 -07:00
Blake J. Harnden
e80736061f
refactored service interaction use names with a _, and cleanup up some of the CoreServices methods
2018-06-15 14:03:27 -07:00
Blake J. Harnden
0bf9c99910
updated service manager to use a dict and throw and error on duplicate service names
2018-06-14 12:50:48 -07:00
Blake J. Harnden
82c3d57dd3
setup a simple default way for dealing with configurable options and added conifg group opbjects as a better way to access the same information formatted within a string
2018-06-14 08:41:48 -07:00
Blake J. Harnden
8e3cd0e013
refactored modelmanager getmodels to get_models
2018-06-13 16:23:51 -07:00
Blake J. Harnden
25cfb21586
added modelmanager for both mobility and emane to leverage and reduce duplicate logic
2018-06-13 16:17:47 -07:00
Blake J. Harnden
a52e454111
renamed dict variable in ConfigurationManager
2018-06-13 12:39:50 -07:00
Blake J. Harnden
7dbc2c40f8
added documentation to configuration classes
2018-06-13 12:32:01 -07:00
Blake J. Harnden
3a39432fc7
refactored configs back to be able to provide instance conifgurations for sessions
2018-06-13 11:59:50 -07:00
Blake J. Harnden
eb415aa4d4
merged session config/options together
2018-06-12 08:37:39 -07:00
Blake J. Harnden
bb8c3fe275
moved send_objects from session to corehandlers, since it was used for tlv messaging specifically
2018-06-11 12:58:42 -07:00
Blake J. Harnden
7199044809
removed all checks from within specific config handlers
2018-06-11 12:34:19 -07:00
Blake J. Harnden
981e48ed30
removed the emane manager from post_startup on emane models, it was not needed, since we can access it from our local session object, if needed
2018-06-11 12:26:51 -07:00
Blake J. Harnden
52230bc026
refactored configuration managers and options into a single class, now the models that can be configured will deal with and handle configurations for nodes themselves
2018-06-11 12:26:12 -07:00
Blake J. Harnden
1b843e2868
updated logic so emane will always use the last model configured for a node, fixes issue when using gui and configuring multiple models
2018-06-08 14:21:41 -07:00
Blake J. Harnden
044e7de5e3
update to support consistently retrieving the last set configuration
2018-06-08 13:53:16 -07:00
Blake J. Harnden
52bfd1edf4
refactored get_config_types to get_all_configs and NewConfigurableManager back to ConfigurableManager
2018-06-08 10:30:41 -07:00
Blake J. Harnden
f6656f0245
added some initial tests for conf objects
2018-06-08 10:25:56 -07:00
Blake J. Harnden
b696cf16e9
updates to make how core_handlers handles model config messages a bit simpler
2018-06-07 16:55:44 -07:00
Blake J. Harnden
4b9cf996d1
updates to account for config messages in core handlers that dont contain all configuration options
2018-06-07 15:32:16 -07:00
Blake J. Harnden
7abf4bca16
updates to get all tests working with config changes
2018-06-07 12:57:32 -07:00
Blake J. Harnden
e4aaebfefb
fixed xml 0.0 failing
2018-06-07 09:09:56 -07:00
Blake J. Harnden
2ede43e3ae
initial commit with things working for the most part
2018-06-06 14:51:45 -07:00
bharnden
9f9dfbf6c2
Update coreemu.py
...
set umask 0 to replicate previous behavior
2018-05-30 21:20:52 -07:00
bharnden
ec04f457e0
Update corehandlers.py
...
fixes #162
2018-05-24 16:28:26 -07:00
bharnden
c3d0b01b7f
Merge branch 'rel/5.1'
2018-05-22 20:44:26 -07:00
stuartmarsden
aa6b83f29b
fix netem 0% loss and duplicate issue
2018-05-20 23:14:29 +04:00
stuartmarsden
67a78828c3
update_link had wrong arg order
2018-05-20 22:21:19 +04:00
Blake J. Harnden
181a47b8ca
updates to some log statements and fix to avoid an exception for finding enpoints in xml
2018-05-01 12:28:20 -07:00
Blake J. Harnden
f5bff494c7
refactored new apis to sit under the emulator module, also reverted moving files under a legacy module to help avoid breaking code using core internals for 5.0+
2018-05-01 10:40:25 -07:00
Blake J. Harnden
9cb1513933
fixed refactoring bug in broker.py
2018-04-30 16:28:00 -07:00
Blake J. Harnden
44781d0aec
set default logging to INFO, cleaned up logging to help isolate debug type messages to DEBUG level, fixed issue with shutdown
2018-04-27 12:09:31 -07:00
Blake J. Harnden
ba3669712a
updated gui test to working order, moved distributed test to a sub directory to be ignored by default, added pytest.ini to ignore distributed directory by default
2018-04-27 10:12:01 -07:00
Blake J. Harnden
fe4c21bad4
updates to how and where the node map is populated, now done in CoreEmu and CoreEmu provides a method for updating the map if desired
2018-04-26 16:05:47 -07:00
Blake J. Harnden
164f02e5ac
better handling for deleting node directories
2018-04-26 15:52:34 -07:00
Blake J. Harnden
4a2810e9b2
removed issue with double loading services from core-daemon, fixed exceptions noted as not an error previously and updated code to more gracefully handle those cases, fixed issue with add_node when setting node.ype for all nodes
2018-04-26 14:26:39 -07:00
Blake J. Harnden
dc751dde2b
removed session manager, since CoreEmu does this now, set future examples to serve as API examples, removed netns examples that are replaced by these API variations
2018-04-26 13:06:18 -07:00
Blake J. Harnden
8644e9d61e
moved future core server and handler code to act as the default core-daemon, updated future examples and tests to leverage new api
2018-04-25 16:33:58 -07:00
Blake J. Harnden
f431895357
removed unused code, updated delete session to shutdown session as well and return if session was deleted or not
2018-04-25 11:55:47 -07:00
Blake J. Harnden
c0b450789a
updates to make future apis a bit better, updated handlers and all tests to account for changes
2018-04-25 10:55:48 -07:00
Blake J. Harnden
3ea885e2eb
refactored some future naming to be more consistent, added new data objects to pass into coreemu api to help make scripting easier, set sessions to master by default now
2018-04-24 16:24:54 -07:00
Blake J. Harnden
1404ca19c5
added some test cases based on future api interactions, node add/delete/update link add/delete/update
2018-04-23 15:46:08 -07:00
Blake J. Harnden
8f0364c44b
Merge branch 'rel/5.1' into core-future
2018-04-20 21:48:32 -07:00
Blake J. Harnden
c65baa9298
update to add a way to avoid loading parent service classes, that inherit from CoreService that should not be loaded on their own
2018-04-20 21:40:55 -07:00
Blake J. Harnden
ac2b64aaaf
updates to remove restriction for emane in general and emane 1.2.1, should support at leat 1.0.1 possibly further back and can run without emane again, updated gui to ask users to install emane when not preset on the emane models panel
2018-04-20 21:22:08 -07:00
Blake J. Harnden
424c08c5e0
updates to drive most core logic from CoreEmu and Sessions themselves instead of outside code, updated an example to leverage new API, fixed issues testing when executing a script
2018-04-20 17:00:47 -07:00
Blake J. Harnden
93394b042a
slight update to clean up some future link handling code
2018-04-19 17:19:31 -07:00
Blake J. Harnden
d8796b377f
initial working code for consolidated logic into a future session object, for dealing with nodes/links
2018-04-19 14:25:45 -07:00
Blake J. Harnden
9fe57c6089
initial toy code for future core api changes/improvements
2018-04-17 14:30:34 -07:00
Blake J. Harnden
7e03202ba4
remove old utility examples for now
2018-04-16 14:00:04 -07:00
Blake J. Harnden
b6d891f124
updated emane manager to parse config options from manifest, updates to denote core specific configurations within emane models, update to account for manifest parsing of INETADDR
2018-04-02 14:00:28 -07:00
Blake J. Harnden
1ac95d7dca
added markdown annotated example emane model file
2018-03-30 15:39:19 -07:00
Blake J. Harnden
4d01a49ec2
updated emane model phy/mac parsing to account for values that support multiple values into a param list
2018-03-30 14:53:02 -07:00
Blake J. Harnden
405614bbd8
added metaclass to reduce emane model code, fixed broken emaneuniversal references
2018-03-30 12:52:10 -07:00
Blake J. Harnden
fd32e1cf78
added support for emane manifest parsing into core compatible information, refactoring of emane code to align with its usage
2018-03-30 12:08:33 -07:00
Blake J. Harnden
8963ef51e3
fixed bypass unique phy doc under refactored code
2018-03-29 15:13:16 -07:00
Blake J. Harnden
beb5be2ee9
reverted to using class variables for emane models due to inheritence from config class
2018-03-29 14:38:32 -07:00
Blake J. Harnden
19ccd6a63b
testing hack for class propery
2018-03-29 14:14:59 -07:00
Blake J. Harnden
4f978f5b96
fixed some emane naming issues
2018-03-29 14:04:15 -07:00
Blake J. Harnden
4df0d78cae
resolved circular import withthe universal model
2018-03-29 13:48:40 -07:00
Blake J. Harnden
9ce8233bc3
effort to consolidate logic for emane models, to avoid redundancy for defining a new model
2018-03-29 13:32:06 -07:00
Blake J. Harnden
a48036b353
updated emane tests, all currently working
2018-03-27 23:38:34 -07:00
Blake J. Harnden
2b2548a927
fixed typo during cleanup pass
2018-03-27 23:14:04 -07:00
Blake J. Harnden
b7327a5798
pass over emane code to cleanup methods and some documentation
2018-03-28 13:58:49 -07:00
Blake J. Harnden
ef48052d41
fixed bad logging and updated commeffect to default to connectivity being on, same as emane default
2018-03-27 08:24:28 -07:00
Blake J. Harnden
fcedf68b55
Merge branch 'rel/5.1' into emane-cleanup
2018-03-25 23:47:01 -07:00
Blake J. Harnden
64f501ac79
fixed issue with configuring a couple nrl services, fixed other issues with coresendmsg
2018-03-26 14:36:43 -07:00
Blake J. Harnden
79e1726433
removed swap file and added to gitignore
2018-03-25 22:18:37 -07:00
Blake J. Harnden
2ede524ec3
updated tdma schedule file option to leverage gui file widget
2018-03-25 22:16:52 -07:00
Blake J. Harnden
1f2c78d54a
got tdma working, leveraging an example tdma schedule that will be included with packaging
2018-03-25 22:08:22 -07:00
Blake J. Harnden
162cb20e14
Merge branch 'emane-cleanup' of git-ssh.web.boeing.com:Boeing-CORE/CORE into emane-cleanup
2018-03-26 10:33:22 -07:00
Blake J. Harnden
45f041604a
adding support to start the tdma schedule after emane startup
2018-03-26 10:27:39 -07:00
Blake J. Harnden
e4652f6879
tweaks to support latest 80211 config values
2018-03-23 13:00:46 -07:00
Blake J. Harnden
615b723270
merged latest from rel/5.1
2018-03-23 10:33:13 -07:00
Blake J. Harnden
4c35aaaa48
fixed default example config for custom emane models
2018-03-23 10:26:33 -07:00
Blake J. Harnden
44363b0500
removed daemonize code that is not needed for services, cleaned up need for logrotate, removed some logging that was not useful
2018-03-23 09:57:37 -07:00
Blake J. Harnden
68f6b6af9b
fixed new 80211 config
2018-03-22 22:18:27 -07:00
Blake J. Harnden
987e6f4f50
update to find programs from path instead of being hardcoded when build
2018-03-21 23:07:34 -07:00
Blake J. Harnden
4987019cf8
fix to account for emane 1.2.1, until later cleanup
2018-03-21 22:58:07 -07:00
Blake J. Harnden
ef28d998dc
Merge branch 'emane-cleanup' of git-ssh.web.boeing.com:Boeing-CORE/CORE into emane-cleanup
2018-03-21 19:08:53 -07:00
Blake J. Harnden
7ae3385ff0
alphabetizing emane options
2018-03-22 09:58:23 -07:00
Blake J. Harnden
1a867b9d1b
added debug logging for utility commands that are ran
2018-03-21 19:08:47 -07:00
Blake J. Harnden
86afded824
updated emane options to contain all nakagami settings for display within ui, sorted options
2018-03-21 14:24:33 -07:00
Blake J. Harnden
b6cfc2085c
attempt to update physical configuration
2018-03-21 12:54:13 -07:00
Tom Goff
02538522a4
daemon: Add support for EMANE 1.2.1.
2018-03-21 15:25:06 -04:00
Blake J. Harnden
802393725e
added new emane platform options from older versions and latest 1.2.1
2018-03-21 11:58:01 -07:00
Blake J. Harnden
36082ea32e
Merge branch 'emane-cleanup' of git-ssh.web.boeing.com:Boeing-CORE/CORE into emane-cleanup
2018-03-20 19:07:08 -07:00
Blake J. Harnden
ba8b73af41
added some more logging to emane setup/startup
2018-03-21 09:57:08 -07:00
Blake J. Harnden
f5498d0889
Merge branch 'rel/5.1' into emane-cleanup
2018-03-20 14:49:32 -07:00
Blake J. Harnden
5403b10cef
update to set CORE_STATE_DIR to /var
2018-03-20 14:49:17 -07:00
Blake J. Harnden
952cd2ffbd
Merge branch 'rel/5.1' into emane-cleanup
2018-03-20 14:39:32 -07:00
Blake J. Harnden
5629ea0245
fixed issue with bad pathing for quagga run state dir
2018-03-20 14:38:48 -07:00
Blake J. Harnden
79b2fa8468
forgot to remove a line of old emane code in rfpipe
2018-03-20 14:35:00 -07:00
Blake J. Harnden
2142586112
initial pass to remove support for legacy emane code and focus on newer releases
2018-03-19 16:33:36 -07:00
Blake J. Harnden
bc1ef88f82
small fix to coresendmsg and client disconnects no longer log as an exception
2018-03-16 13:10:34 -07:00
Blake J. Harnden
d46aaa1005
Merge branch 'rel/5.1' of git-ssh.web.boeing.com:Boeing-CORE/CORE into rel/5.1
2018-03-16 13:01:23 -07:00
Blake J. Harnden
0e38304b18
updated tcp handler to not timeout and block waiting for messages
2018-03-16 13:01:05 -07:00
Blake J. Harnden
34ce98213d
removed udp server due to the hackiness of its interactions with trying to re-use tcp code
2018-03-16 13:00:03 -07:00
Blake J. Harnden
ee5bbdd949
convenience method created for dealing with udp server cases
2018-03-16 12:39:23 -07:00
Blake J. Harnden
7260f823cb
updates for dispatching replies from udp handler
2018-03-16 12:18:15 -07:00
Blake J. Harnden
76524abbc2
adjustment for getting session from udp client
2018-03-16 12:13:30 -07:00
Blake J. Harnden
02bcdf617d
attempt to correct udp handler
2018-03-16 11:46:05 -07:00
Blake J. Harnden
4e5ee1b3ee
removed aux server/handler code
2018-03-16 11:26:44 -07:00
Blake J. Harnden
e0bbeaf79c
update to logging in relation to core
2018-03-16 09:39:44 -07:00
Blake J. Harnden
cd7fd43978
updates to support emane 1.2.1
2018-03-16 09:33:43 -07:00
Blake J. Harnden
188f9420ca
added a convenience target for generating all documentation based on existing google code example, fixed a few issues with doc strings
2018-03-15 14:31:07 -07:00
Blake J. Harnden
09cf406187
moved daemon/sbin to daemon/scripts
2018-03-15 11:30:11 -07:00
Blake J. Harnden
01fe8d708c
updates to simplify tracking the copyright and an update to 2018, still room for improvement
2018-03-15 10:36:54 -07:00
Blake J. Harnden
b74d3488f7
fixed coresendmsg after testing
2018-03-14 13:34:25 -07:00
Blake J. Harnden
138b2fcc4a
update to get coresendmsg working again
2018-03-14 13:14:14 -07:00
Blake J. Harnden
8e3b6b0b95
updates to try and resync make dist to include current files
2018-03-14 10:43:25 -07:00
Blake J. Harnden
3b568e965d
removed manifest.in from dist line in daemon makefile
2018-03-14 09:04:01 -07:00
Blake J. Harnden
6210e70c80
initial cleanup passing over all makefiles and configure.ac
2018-03-13 16:20:50 -07:00
Blake J. Harnden
a5370ee28c
initial commit removing all related xen code, docs, files
2018-03-07 15:47:14 -08:00
Blake J. Harnden
bc1e3e70c9
initial pass at removing bsd and code related to using bsd nodes
2018-03-07 12:54:19 -08:00
Blake J. Harnden
ec79c7dba3
removed some exceptions that were logged but ignore within services
2018-03-05 09:20:49 -08:00
Blake J. Harnden
974559843a
defined custom core command error that defaults to printing command output as well
2018-03-02 16:22:20 -08:00
Blake J. Harnden
29a3496eda
expose command exceptions within emane and mobility
2018-03-02 15:54:27 -08:00
Blake J. Harnden
fbc749849c
updates to expose exceptions from physical nodes as well
2018-03-02 14:12:57 -08:00
Blake J. Harnden
a8ee7f35d6
updates to check_cmd to just return output, as status is pointless
2018-03-02 13:57:50 -08:00
Blake J. Harnden
43554cbb62
initial effort to remove swallowing exceptions within internal code
2018-03-02 13:39:44 -08:00
Blake J. Harnden
cd77875e64
switched pnodes to check commands ran for configuration
2018-03-02 09:36:29 -08:00
Blake J. Harnden
513bb7e263
fixed issue with refactored mute_detach
2018-03-02 09:20:50 -08:00
Blake J. Harnden
00b3c97448
further removal and refactoring of methods used within misc/utils.py
2018-03-02 09:15:52 -08:00
Blake J. Harnden
6211b09585
further cleanup in regards the commands that are being used within core
2018-03-01 16:23:58 -08:00
Blake J. Harnden
870d87804b
updated commands that return output to strip it before returning
2018-03-01 13:46:09 -08:00
Blake J. Harnden
d3bd61ddcf
updates to consolidate commands that need to be defined by a new node type
2018-03-01 13:21:25 -08:00
Blake J. Harnden
0b8ee7760d
reverted refactoring method name until xen/bsd nodes are cleared out
2018-03-01 09:26:28 -08:00
Blake J. Harnden
908fb777de
updated to vnode on how commands are ran, updated all functions to capture output and raise exceptions when commands fail
2018-03-01 09:17:58 -08:00
Blake J. Harnden
719670c895
further cleanup to vnode.py and corrections to function docs
2018-02-27 16:28:28 -08:00
Blake J. Harnden
01060c50ff
Merge branch '5.1_shell_cleanup' of git-ssh.web.boeing.com:Boeing-CORE/CORE into 5.1_shell_cleanup
2018-02-27 14:56:18 -08:00
Blake J. Harnden
59f22b12cf
minor refactoring to vnode.py
2018-02-27 14:56:13 -08:00
Blake J. Harnden
78537d8e95
fixed some shell command usage in example files
2018-02-27 12:39:12 -08:00
TinCanTech
edc1a92022
Update core.conf
...
Fix typ0s
2018-02-24 18:44:44 +00:00
Jeff Ahrenholz
d0c946ff86
Merge pull request #138 from gsomlo/gls-ns-umount-v2
...
Gls ns umount v2
2018-02-22 07:57:25 -08:00
Blake J. Harnden
127d0b0666
added a shell command with result, leveraged it usage to get output for failures during addfile and mounting within nodes
2018-02-07 19:13:51 -08:00
Blake J. Harnden
e35b4a0a4b
fixed bug with loading emane models in tests, after changing how emane models are loaded
2018-02-07 16:55:53 -08:00
Blake J. Harnden
ceb2e54679
small updates after verifying vcmd return values
2018-02-27 10:55:57 -08:00
Blake J. Harnden
6b8ee13f5d
initial changes to try and cleanup shell commands used within core
2018-02-27 10:48:01 -08:00
Kevin
49a2f77f45
Added code to not query sdn information when node is offline
2018-02-26 10:52:08 -08:00
Blake J. Harnden
c4a61b269b
updates to support dynamic loading of emane models from a custom emane directory
2018-02-05 11:22:01 -08:00
Blake J. Harnden
45e82f05b2
attempt to better support dynamic emane models
2018-02-05 09:01:49 -08:00
Blake J. Harnden
6f4ef0e193
removed unused import and update sonar config to scan different components separately
2018-01-15 10:50:14 -08:00
Blake J. Harnden
f4f5c9f5d8
fix #137
2018-01-15 02:20:11 -08:00
Blake J. Harnden
17d5503fb2
removed daemon addons directory and refereces
2018-01-12 09:50:56 -08:00
Blake J. Harnden
5344d62a7a
Merge branch '5.1' of git-ssh.web.boeing.com:Boeing-CORE/CORE into 5.1
2018-01-12 09:12:55 -08:00
Blake J. Harnden
4fdae0f4b3
removed eric ide project file
2018-01-12 09:12:46 -08:00
Blake J. Harnden
0ee07f89f0
removed unused import in core-daemon
2018-01-11 16:54:12 -08:00
Blake J. Harnden
26b1b01505
updated to readme for building packages, update to makefile to install and build gui with one command
2018-01-11 11:21:56 -08:00
Blake J. Harnden
14312db02d
updated versions to 5.1
2018-01-10 15:22:54 -08:00
Blake J. Harnden
7dff4f3987
added examples and man pages to core packages
2018-01-10 11:03:20 -08:00
Blake J. Harnden
3ce416b610
updated test cases to fix old broken code
2018-01-09 15:52:29 -08:00
Blake J. Harnden
77be7f5c30
moved ns3 from under daemon to the root of the project and updated references
2018-01-04 16:34:22 -08:00
Blake J. Harnden
3da4c32825
updated rpm/deb files to be built for both sysv and systemd
2018-01-04 14:33:25 -08:00
Blake J. Harnden
d799390c4a
moved netns code from daemon/src to netns at the top level, updated files to account for location change
2018-01-04 12:03:14 -08:00
Blake J. Harnden
e4a0069bc3
updated configuration to define the core bin dir within constants, updated code to use the core bin dir for vnoded and vcmd, based on using the fpm build system
2018-01-04 10:09:35 -08:00
Blake J. Harnden
42bcb1c79d
add default node map configuration, to avoid the need to set this up every time
2018-01-04 08:19:34 -08:00
Blake J. Harnden
afb6af5f87
removed old olog format line
2018-01-03 14:40:45 -08:00
Blake J. Harnden
e4c3d9d13a
updated daemon setup.py to leverage find_packages
2018-01-03 13:45:19 -08:00
Blake J. Harnden
742ad0e3a2
removed the usage of logzero, added a formal logging configuration file using json
2018-01-03 10:53:34 -08:00
Blake J. Harnden
59e6b6630a
added initial fpm commands for building packages and minor updates to support
2017-12-21 16:19:12 -08:00
Blake J. Harnden
58c6d03bc4
updates to target building separate packages with fpm
2017-12-19 09:43:19 -08:00
Blake J. Harnden
d3210815ab
updated email in python setup.py files, shifted test dependency together
2017-12-18 15:50:28 -08:00
Gabriel Somlo
f8e941a2b0
daemon: add ${pyexecdir} to $PYTHONPATH in daemon/src/Makefile
...
On x86_64, the "core_python_netns" module is installed into ${pyexecdir},
a.k.a. %{python_sitearch}, a.k.a. "/usr/lib64/python2.7/site-packages".
Adding ${pyexecdir} to $PYTHONPATH will prevent the "install" target in
"daemon/src/Makefile" from failing.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-11-20 20:56:48 -05:00
Gabriel Somlo
5901f2e1de
daemon: use "require" to make eggs available for import
...
Since version 5.0, python modules (e.g. core, corens3, and netns)
are installed as .egg bundles, and are not available for importing
by default, unless explicitly we use "pkg-resources.require()".
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-11-20 20:56:48 -05:00
Gabriel Somlo
6d3d17f470
SimpleLxcNode: Remove unused umount method
...
The umount method was used to remove private mount points before
tearing down a node. Since non-persistend mount namespaces are
automatically cleaned up by he kernel, this method is now unused.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-10-11 14:54:27 -04:00
Gabriel Somlo
a5ae485fa6
SimpleLxcNode: Don't umount directories before killing vnoded
...
A node's private mounts are currently removed before killing
vnoded, which makes them unavailable during container service
shutdown. Any such service accessing the filesystem for atexit()
cleanup (e.g., rsyslogd), will do so on the host filesystem
instead, very likely causing unintended damage.
For example, the default behavior of rsyslogd is to remove its
listening socket (/dev/log, or /run/systemd/journal/dev-log) at
shutdown from its atexit() handler. If the node's private '/dev'
or '/run/systemd/journal' mount has already been removed, the
host-side /dev/log or /run/systemd/journal/dev-log sockets will
be removed instead!
Since non-persistent (mount) namespaces are automatically
destroyed by the kernel when the last process referencing them
is killed, we should simply rely on that behavior instead of
explicitly (and prematurely) unmounting a node's private
directories during shutdown.
Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-10-09 20:53:38 -04:00
Blake J. Harnden
2c154bb255
fixed typo in bridge name for ovs
2017-10-03 11:38:58 -07:00
Blake J. Harnden
f61c07c108
removed pip check, updated make files for using DESTDIR, removed usage of pip during make install
2017-08-21 12:55:51 -07:00
Blake J. Harnden
abc9e06fe1
small doc cleanup, updated python specific docs to leverage the sphix rtd theme as well
2017-08-18 11:34:25 -07:00
Blake J. Harnden
f55d241b36
removed copyright header from all files for core-python and corens3
2017-08-18 10:38:27 -07:00
Blake J. Harnden
67501c9000
updates to set default nodes for ns3 examples
2017-08-18 08:48:33 -07:00
Blake J. Harnden
8155cdc617
documentation theme update, version bumping to 5.0, changes to cleanup pass for ns3 code
2017-08-17 15:25:12 -07:00
Blake J. Harnden
f282f4ea15
initial pass on converting corens3 to use latest code and small cleanup
2017-08-17 13:29:19 -07:00
Blake J. Harnden
fc7fb0f76c
fixed sendall in sdt, after testing core/sdt3d integration
2017-08-16 12:03:32 -07:00
Blake J. Harnden
f9847cef34
changed core_python to define version locally, instead of in another file causing import issues
2017-08-10 08:43:02 -07:00
Blake J. Harnden
463618ddf8
small refactoring on how node maps are used, added logic to switch to using a map based on bsd nodes using previous logic
2017-08-09 10:03:43 -07:00
Blake J. Harnden
eb5dd3780c
updated installation to use pip for core_python, added a pip check to configure.ac
2017-08-08 11:29:01 -07:00
Blake J. Harnden
67d451c3e9
fixed old log imports and dont bail out on tdma model exception
2017-08-08 09:17:09 -07:00
Blake J. Harnden
f3863ead73
removed service load methids, since they are no longer used, added way for custom service load code to facilitate the unique docker service case
2017-08-07 16:40:39 -07:00
Blake J. Harnden
73eea80f51
attempt to fix missing updates for sdt, moved broker specific code to broker
2017-08-07 15:37:41 -07:00
Blake J. Harnden
8612c73d49
worked through a couple todos, removed usage of eval within parsing xml files
2017-08-07 13:02:25 -07:00
Blake J. Harnden
e4b280196b
switched to making use of logzero for logging, provides nicer color output, and an easier path to switch to rotating log files
2017-08-07 11:58:51 -07:00
Blake J. Harnden
76bec9950d
more changes to support a common usage of double quotes
2017-08-04 14:51:25 -07:00
Blake J. Harnden
2281051edf
making usage of double quotes standard for emane files
2017-08-04 14:34:44 -07:00
Blake J. Harnden
850cc599c8
refactored how services are loaded to be more dynamic
2017-08-03 16:33:54 -07:00
Blake J. Harnden
35c48e67a3
modified the way custom services can be imported and added a test case to verify the import functionality
2017-08-03 14:27:39 -07:00
Blake J. Harnden
78ff7f2189
quick pass for small cleanup within bsd nodes
2017-08-03 12:44:08 -07:00
Blake J. Harnden
1f9a8879c1
quick pass at small xen code cleanup and usage of double quotes
2017-08-03 12:04:22 -07:00
Blake J. Harnden
bc1a24e880
fixed some refactoring issues with xen and bsd code
2017-08-03 09:48:26 -07:00
Blake J. Harnden
d915436c7d
added a simple test for a tunnel node, although better testing awwma to require configuration outside of core
2017-08-03 09:37:22 -07:00
Blake J. Harnden
b62076c240
added test script and test for mobility script testing
2017-08-02 16:39:38 -07:00
Blake J. Harnden
05ce19b0c0
fixed refactoring issues in mobility.py, fixed issue with parsing config files in a tuple string format
2017-08-02 14:07:56 -07:00
Blake J. Harnden
4d21314798
fixed renaming issue with sessionid to session_id
2017-08-02 12:25:57 -07:00
Blake J. Harnden
f67547faa6
small test cleanup, functioning distributed core test case, depends on an already running server
2017-08-01 09:28:11 -07:00
Blake J. Harnden
350341cda7
added various log messages to help with correcting issues, added some for adding tunnels that fixes p2p with distributed core, but teardown for p2p is still broken
2017-07-31 09:08:57 -07:00
Blake J. Harnden
e2a932698c
appear to have fixed the gui shutdown issue with messages being sent out of order, causing a node to remain with a red box
2017-07-27 16:03:27 -07:00
Blake J. Harnden
14a5d11c4e
parameterized emane tests, added tdma test, although it is currently failing
2017-07-27 14:59:40 -07:00
Blake J. Harnden
832f497d47
updated tests to leverage parameterized tests, reduces bloat and make testing the same situation differently much easier
2017-07-27 14:17:33 -07:00
Blake J. Harnden
6a875bcd8d
added vnodeclient testing, added a run tests script to make testing easier
2017-07-27 11:57:01 -07:00
Blake J. Harnden
ebe3b9e3e3
added mock for python testing, removed a couple unused methods, added some more quick tests for a variety of interface related methods
2017-07-26 16:52:17 -07:00
Blake J. Harnden
62e8ff8731
fixed one small sdt renaming issue, updated a gui test case
2017-07-26 08:48:59 -07:00