Blake Harnden
|
a80fda11f5
|
daemon: abstracted out iface specific configuration generation and parsing to common utilities, to avoid duplicate logic and potential differences that may arise
|
2020-09-02 09:44:45 -07:00 |
|
Blake Harnden
|
e775ad4c5d
|
fixed invoke task to run emane tests, added emane xml tests for node/interface specific configurations
|
2020-09-01 17:47:24 -07:00 |
|
Blake Harnden
|
05247524d7
|
updates to service dependency resolution to allow for multithreaded startup, also improved tests to validate service boot ordering for expected outcomes
|
2020-08-21 11:34:12 -07:00 |
|
Blake Harnden
|
936d782e41
|
daemon: modified node service boot to properly order services and account for services with the same dependency without cycles, for now removed trying to simultaneously booting services
|
2020-08-18 13:18:41 -07:00 |
|
Blake Harnden
|
c761c55ebc
|
tests: patch utils.which
|
2020-07-06 21:47:46 -07:00 |
|
Blake Harnden
|
5f676b27ba
|
tests: removed invalid patch due to emane refactoring
|
2020-07-02 22:15:12 -07:00 |
|
Blake Harnden
|
adfce52632
|
daemon: removed utils.validate_mac and shifted tests to test_nodes
|
2020-06-19 15:41:41 -07:00 |
|
Blake Harnden
|
0d4a360e89
|
daemon: removed utils.validate_ip and shifted tests to test_nodes
|
2020-06-19 15:32:17 -07:00 |
|
Blake Harnden
|
1829a8e2f8
|
daemon: refactored CoreInterface.mac from a string to a netaddr.EUI object, providing more functionality
|
2020-06-19 15:21:45 -07:00 |
|
Blake Harnden
|
20feea8f12
|
daemon: refactored usages of addr to ip and updated functions to align
|
2020-06-19 10:54:58 -07:00 |
|
Blake Harnden
|
d88f3a2535
|
daemon: refactored CoreInterface.addrlist storing strings into CoreInterface.ip4s and ip6s, stored as netaddr.IPNetwork objects
|
2020-06-19 08:50:36 -07:00 |
|
Blake Harnden
|
ca2b1c9e4c
|
daemon: refactored all_link_data to links
|
2020-06-18 21:33:28 -07:00 |
|
Blake Harnden
|
ecc3eb1c89
|
daemon: refactored NodeData to reference a node instead of replicating fields as an intermediate passthrough, removed data() functions from nodes due to this change
|
2020-06-18 09:06:31 -07:00 |
|
Blake Harnden
|
f4671ab2b8
|
daemon: refactored usages of hwaddr to mac and be consistent everywhere
|
2020-06-16 23:25:26 -07:00 |
|
Blake Harnden
|
a29a7a5582
|
refactored LinkOptions to be used within LinkData, instead of duplicating data, removed session from LinkOptions and LinkData
|
2020-06-16 14:18:19 -07:00 |
|
Blake Harnden
|
eeca33e722
|
combined core.emulator.data and core.emulator.emudata, updated LinkData to leverage InterfaceData, instead of repeated interface fields, removed session from LinkData and LinkOptions
|
2020-06-16 12:50:24 -07:00 |
|
Blake Harnden
|
0725199d6d
|
initial sweeping changes to call all usages of various interface related variables and functions (netif, interface, if, ifc, etc) to use a consistent name iface
|
2020-06-16 09:30:16 -07:00 |
|
Blake Harnden
|
83f66d33f7
|
merged latest from develop
|
2020-06-13 18:07:21 -07:00 |
|
Blake Harnden
|
23d957679e
|
daemon: Session cleanup, removed unused functions, used context managers for writing files, made variables used externally no longer private
|
2020-06-12 20:22:51 -07:00 |
|
Blake Harnden
|
876699e8ef
|
variable/grpc cleanup to rename everything using spelt out numbers instead of actual numbers
|
2020-06-12 16:52:41 -07:00 |
|
Blake Harnden
|
76305f7257
|
converted usages of per to loss
|
2020-06-12 12:49:53 -07:00 |
|
Blake Harnden
|
00cda5c550
|
fixed test_link name
|
2020-06-11 19:08:50 -07:00 |
|
Blake Harnden
|
c64094ac1c
|
daemon: updated session.delete_link to have the interface ids default to none, since only one may need to be provided, updated link tests to account for more cases
|
2020-06-11 19:01:38 -07:00 |
|
Blake Harnden
|
ccf2646c00
|
daemon: refactored add_link,update_link,delete_link to have more specific logic, refactored CoreNodeBase to have newnetif and for it to return the interface created
|
2020-06-11 13:59:29 -07:00 |
|
Blake Harnden
|
784c4d2419
|
daemon: added core.location class variable type hinting
|
2020-06-10 10:24:44 -07:00 |
|
Blake Harnden
|
d71d84fae7
|
daemon: updated IpPrefixes and InterfaceHelper to remove duplicate code
|
2020-06-09 18:40:50 -07:00 |
|
Blake Harnden
|
21da670698
|
daemon: renamed link_options to options in both session.add_link and session.update_link
|
2020-06-09 13:46:26 -07:00 |
|
Blake Harnden
|
3be15a1316
|
daemon: update CoreNode.newnetif to require parameters, CoreNode.newnetif now depends on being provided InterfaceData
|
2020-06-09 12:42:15 -07:00 |
|
Blake Harnden
|
7d2034df71
|
daemon: updated NodeOptions to leverage dataclass
|
2020-06-09 10:45:18 -07:00 |
|
Blake Harnden
|
b5e53e573a
|
daemon: LinkOptions now leverage dataclass and has type hinting, improve test_gui type hinting
|
2020-06-09 09:12:31 -07:00 |
|
Blake Harnden
|
18044f9474
|
daemon: cleaned up InterfaceData class, it now leverages dataclass, removed extra bloat and no longer requires parameters as they are optional
|
2020-06-09 08:48:18 -07:00 |
|
Blake Harnden
|
bf1bc511e2
|
removed configuration option for number of for corehandler threads as it cannot properly deal with anything more than 1, updated man pages to current 6.4 versions for now
|
2020-06-05 14:34:19 -07:00 |
|
Blake Harnden
|
1884103cb4
|
grpc: added call to stream node movements using geo/xy and tests to validate usage, fixed potential exception when not setting session geo ref and using conversions
|
2020-06-03 08:47:36 -07:00 |
|
Blake Harnden
|
10fd844397
|
further type hinting for tests
|
2020-05-29 21:41:58 -07:00 |
|
Blake Harnden
|
4ab415e37d
|
grpc: updated node events to contain geo data when present
|
2020-05-28 16:12:11 -07:00 |
|
Blake Harnden
|
ba8b16ec34
|
added some type hinting with tests to help in refactoring in the future
|
2020-05-24 23:37:38 -07:00 |
|
Blake Harnden
|
bcd9e4ceb1
|
fixed session.add_hook to not require a source, since it was not typically used an None was being passed, cleaned up some bad type hinting in related to session.py
|
2020-05-21 00:20:05 -07:00 |
|
Blake Harnden
|
c07766e1eb
|
updated session.add_node to use better type hinting and force usage of classes directly, instead of indirectly through NodeTypes
|
2020-05-20 22:14:03 -07:00 |
|
Blake Harnden
|
d5254e6a91
|
changes to support better type checking for retrieving an arbitrary node from a session, get_node now requires an expected class that the node would be an instance of, if the returned node is not an instance a CoreError is thrown, this also helps editors pick up expected types to account for variable/function usage better as well
|
2020-05-20 14:44:34 -07:00 |
|
Blake Harnden
|
124d655dc6
|
fixed issue when sorting hook when saving to xml, due to enum refactoring, updated test case to hit this potential issue in the future
|
2020-05-11 12:41:57 -07:00 |
|
Blake Harnden
|
091131fe5c
|
tweak to session.exception to default node_id to None when not provided
|
2020-03-31 16:39:27 -07:00 |
|
Blake Harnden
|
6a41012857
|
updates to break up core.proto into separate logical files
|
2020-03-22 22:57:50 -07:00 |
|
Blake Harnden
|
33bcc24d88
|
cleaned up broadcast_node to use nodes directly
|
2020-03-22 16:38:15 -07:00 |
|
Blake Harnden
|
39499a4ab4
|
moved ConfigShim to being under tlv, updated RegisterTlvs to use enums directly in non tlv code
|
2020-03-22 14:59:42 -07:00 |
|
Blake Harnden
|
7a5a0f34ea
|
broke out tlv specific enums into their own module
|
2020-03-22 14:09:38 -07:00 |
|
Blake Harnden
|
a7790185d4
|
updates to use message flags enum directly
|
2020-03-12 23:12:17 -07:00 |
|
Blake Harnden
|
1e8d1ecd9f
|
changes for sessions to use EventTypes for state/hooks directly
|
2020-03-06 22:35:23 -08:00 |
|
Blake Harnden
|
8572e153f4
|
fixed comparison logic for waypoints and added tests to help catch issue in the future
|
2020-02-19 21:21:21 -08:00 |
|
Blake Harnden
|
ebafa228ff
|
added files/directories to grpc set_node_service
|
2020-02-14 13:40:10 -08:00 |
|
Blake Harnden
|
71aeb98bb9
|
updates to grpc add_link to return created interface data
|
2020-02-14 13:18:05 -08:00 |
|
Blake Harnden
|
09aa882017
|
fixed config service to leverage validation_timer properly, added unit tests for config service base class
|
2020-01-27 10:57:16 -08:00 |
|
Blake Harnden
|
aa96484fb6
|
updated utils.validate_mac format to use unix expanded to avoid singular values
|
2020-01-15 17:02:27 -08:00 |
|
Blake Harnden
|
7028d3e78f
|
added unit tests to help check new utils functions and usages within nodes for adding addresses and macs
|
2020-01-09 14:23:08 -08:00 |
|
Blake Harnden
|
fd10663323
|
changes to replaces known usages of ipaddress, leaving only ipaddress.MacAddress
|
2020-01-08 13:25:00 -08:00 |
|
Blake Harnden
|
513eaf2b76
|
improved coretk gui alerts to display alert text when selected, fixed merged code for adding a check to cleanup interfaces, updated session.exceptions to use enums directly
|
2019-12-20 10:51:52 -08:00 |
|
Blake Harnden
|
44df926fb9
|
updated events streamed from sessions to include session id for easy identification
|
2019-12-16 12:21:03 -08:00 |
|
Blake Harnden
|
424f69bb15
|
updated grpc throughputs to only check a specific session and verify the data being collected and sent is for that session, fixed data from throughputs being in hex getting converted to int, updated coretk to only run throughputs when enabled, updated grpc streams to return the stream to allow it being canceled
|
2019-12-16 11:14:05 -08:00 |
|
Blake Harnden
|
85521e8c8f
|
added grpc to get current service configurations, fixed bug for core daemon not using custom service configs
|
2019-12-13 18:17:42 -08:00 |
|
Blake Harnden
|
47e087b365
|
fixed unit tests for grpc get emane model configs
|
2019-12-13 15:28:22 -08:00 |
|
Blake Harnden
|
d5b2edb6ab
|
fixed unit tests for broadcasted exceptions to use proper values
|
2019-12-12 21:10:30 -08:00 |
|
Blake Harnden
|
45a23a6c14
|
updated usage of time.time to time.monotonic or time.perf_counter due to time.time possibly rolling backwards
|
2019-12-06 09:42:41 -08:00 |
|
Blake Harnden
|
059b0cc316
|
changes to fix session adding default emane configuration
|
2019-11-21 12:44:50 -08:00 |
|
Blake Harnden
|
18c9904d58
|
modified grpc set node service and node service file to use messages for their config, updated start session to leverage these messages to set them when starting a session
|
2019-11-11 10:19:30 -08: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
|
de936ea315
|
added hook creation and set location to grpc.StartSession
|
2019-10-29 12:35:07 -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
|
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
|
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
|
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 |
|
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 |
|
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 |
|
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
|
79cde8cd59
|
further f string updates
|
2019-10-17 19:25:52 -07:00 |
|
Blake Harnden
|
da946f1f56
|
removing builtins imports
|
2019-10-17 15:02:24 -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
|
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
|
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
|
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 |
|
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
|
503fa754a9
|
updates to fail early for required executables that are not in PATH
|
2019-09-27 23:29:15 -07:00 |
|