Blake Harnden
|
f4671ab2b8
|
daemon: refactored usages of hwaddr to mac and be consistent everywhere
|
2020-06-16 23:25:26 -07:00 |
|
Blake Harnden
|
351b99aae0
|
daemon: renamed LinkData.link_type to LinkData.type and removed LinkOptions.type to remove redundant information, link_type param added to session.add_link, delete_link, and update_link functions
|
2020-06-16 21:53:12 -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
|
0462c1b084
|
daemon: added usage of ABC to NodeBase, CoreNodeBase, and CoreNetworkBase to help enforce accounting for abstract functions
|
2020-06-14 13:35:06 -07:00 |
|
Blake Harnden
|
f5916fab5b
|
daemon: added not implemented methods to CoreNodeBase
|
2020-06-14 12:44:51 -07:00 |
|
Blake Harnden
|
cf41948894
|
daemon: fixed error with EmaneNet startup throwing an error, updated Rj45Node and PhysicalNode to implement all abstract methods
|
2020-06-14 12:36:07 -07:00 |
|
Blake Harnden
|
c4c667bb74
|
daemon: removed node.startup from inside constructor, session is now responsible, providing more control and avoiding issues when using super calls where you dont want to start just yet
|
2020-06-14 09:37:58 -07:00 |
|
Blake Harnden
|
8d48393525
|
daemon: updated usage of if1/2 to be consistent with interface1/2 for now
|
2020-06-13 21:53:09 -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
|
178d12b327
|
daemon: updated variables for InterfaceData to be denote data to make it more clear
|
2020-06-12 17:32:55 -07:00 |
|
Blake Harnden
|
76305f7257
|
converted usages of per to loss
|
2020-06-12 12:49:53 -07:00 |
|
Blake Harnden
|
6201875b78
|
daemon: added class variable type hinting to core.emane
|
2020-06-12 09:52:01 -07:00 |
|
Blake Harnden
|
e72e332bab
|
daemon: removed need to use getaddr for CoreInterface.othernet as it now has a default of None
|
2020-06-11 19:12:51 -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
|
39fd11efb3
|
daemon: added missing type hint to core.nodes.interface.CoreInterface
|
2020-06-10 10:40:24 -07:00 |
|
Blake Harnden
|
6ee9590bdc
|
daemon: finished class variable type hinting for core.nodes
|
2020-06-10 08:52:51 -07:00 |
|
Blake Harnden
|
f73c617ecf
|
daemon: removed utils.make_tuple and last remaining usage
|
2020-06-09 18:53:42 -07:00 |
|
Blake Harnden
|
2965273f58
|
daemon: CoreNetworkBase.linkconfig now takes a LinkOptions object, removed usage of emudata.link_config
|
2020-06-09 13:41:31 -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
|
7ffbf457be
|
update to netclient existing bridge check to avoid using the -j flag, which requires version 4.7+ vs 4.5+ that we currently expect
|
2020-06-08 09:55:05 -07:00 |
|
Blake Harnden
|
82c33345be
|
merged latest from develop
|
2020-05-29 23:47:31 -07:00 |
|
Blake Harnden
|
73a5567084
|
added network policy enum to avoid string usage
|
2020-05-29 23:22:21 -07:00 |
|
Blake Harnden
|
b034ba6cc3
|
turned transport type usages of raw and virtual across the board to an enumerated type
|
2020-05-29 22:48:00 -07:00 |
|
Blake Harnden
|
8ad3f7961a
|
renamed netclient create_interface to set_interface_master to better describe its purpose
|
2020-05-29 22:07:50 -07:00 |
|
Blake Harnden
|
7e4ef0b280
|
changes to make rj45 maintain the interface information, instead of trying to be 2 classes at once
|
2020-05-25 23:18:20 -07:00 |
|
Blake Harnden
|
8fed201fd8
|
added type hints to class variables in nodes/physical.py
|
2020-05-25 11:33:59 -07:00 |
|
Blake Harnden
|
f95a8113c9
|
added type hinting to nodes/network.py class variables
|
2020-05-25 11:17:28 -07:00 |
|
Blake Harnden
|
2e78025249
|
started type hinting on class variables for nodes/base
|
2020-05-25 00:16:58 -07:00 |
|
Blake Harnden
|
964f78f06a
|
added othernet to CoreInterface to avoid hasattr checks
|
2020-05-23 01:14:47 -07:00 |
|
Blake Harnden
|
c580e15f8e
|
moved common variables up and localname to CoreInterface, they were being created in all subclasses and avoids type hinting errors
|
2020-05-23 01:05:46 -07:00 |
|
Blake Harnden
|
37ff989aa4
|
fixed bad check in linkconfig
|
2020-05-23 00:19:32 -07:00 |
|
Blake Harnden
|
26b0868f65
|
removed devname from linkconfig as the only usage was of it was using a parametr that was already being passed in
|
2020-05-23 00:00:40 -07:00 |
|
Blake Harnden
|
dd13bc8379
|
moved linkconfig to CoreNetworkBase and made linkconfig defined the same across the board
|
2020-05-22 23:44:10 -07:00 |
|
Blake Harnden
|
fe09b37819
|
removed bootsh from CoreNode types as it was not being used
|
2020-05-21 22:41:03 -07:00 |
|
Blake Harnden
|
56fbc0e3c5
|
docker changes to avoid issues running commands without mount and running containers as prvileged to allow changing files in /sys
|
2020-05-21 22:26:54 -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
|
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
|
95d3a6ca8c
|
updates to force CoreCommandError to contain string values for stderr and stdout, couple bugfixes in handling bad commands when using execute commands from tlv based api or coresendmsg, also updates to coresendmsg to display everything in lowercase to mimic previous look and feel, however coresendmg will now work regardless of casing to avoid breaking things again
|
2020-05-13 12:01:28 -07:00 |
|
Blake Harnden
|
7e7bf8c7b7
|
fix p2p upstream link data not using enum, consolidated grpc logic for getting link protobufs
|
2020-04-15 16:36:03 -07:00 |
|
Shaun Voigt
|
6c9c2cbeb0
|
resolve isort
|
2020-04-07 07:50:26 +09:30 |
|
Shaun Voigt
|
8dfdd6171d
|
check for ipv6 address using netaddr.valid_ipv6
|
2020-04-07 07:44:23 +09:30 |
|
Shaun Voigt
|
ba18853509
|
resolve black formatting
|
2020-04-06 18:03:27 +09:30 |
|
Shaun Voigt
|
953bd80e2e
|
isort - sort imports
|
2020-04-06 17:54:42 +09:30 |
|
Shaun Voigt
|
b6fbedf471
|
Fix for IPv6 Addresses disappear with FRR #421
|
2020-04-06 17:36:32 +09:30 |
|
Blake Harnden
|
8186c62b19
|
switched core emulator data files from using namedtuples to backported dataclasses
|
2020-03-31 09:41:29 -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 |
|