Blake Harnden
|
2e3e085522
|
daemon: adjustments to revamp how core nodes are created in session.add_node, nodes now provide a create_options function for node specific options that are type hinted
|
2022-05-25 10:51:42 -07:00 |
|
Blake Harnden
|
cd7f1a641e
|
daemon: initial pass to revamp how node linking and link management is done, provides a consistent way to link all wired nodes and allows them to be configured for tc for the same behavior across the board
|
2022-03-17 15:28:38 -07:00 |
|
Blake Harnden
|
b96dc621cd
|
grpc: refactoring for editing/moving nodes, they are now two separate processes, with specific logic to carry each out
|
2021-08-27 16:58:44 -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
|
f4671ab2b8
|
daemon: refactored usages of hwaddr to mac and be consistent everywhere
|
2020-06-16 23:25:26 -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
|
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
|
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
|
ba8b16ec34
|
added some type hinting with tests to help in refactoring in the future
|
2020-05-24 23:37:38 -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
|
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 |
|
bharnden
|
ade1d980a8
|
updates to speed up tests
|
2019-10-23 23:15:19 -07:00 |
|
bharnden
|
14d759667c
|
refactored session.update_node to session.edit_node to match grpc call
|
2019-10-22 20:55:06 -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
|
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
|
02ef91242e
|
initial changes to convert all commands to be string based for consistency
|
2019-10-11 16:36:57 -07:00 |
|
Blake Harnden
|
d326f246a7
|
removed node based check_cmd, updated to use appropriate function
|
2019-10-11 12:57:37 -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
|
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
|
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
|
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
|
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 |
|
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
|
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
|
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 |
|