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 |
|
Blake Harnden
|
c264634b5f
|
merged latest from develop
|
2020-03-22 13:52:26 -07:00 |
|
Blake Harnden
|
3f17706c28
|
small cleanup for interface position hooks, updates to support using a provided altitude when sending emane events based on position hooks
|
2020-03-19 16:40:43 -07:00 |
|
Blake Harnden
|
102fa410fe
|
make wlan nodes start with a ebtables change event to trigger default rules when all nodes are disconnected
|
2020-03-12 23:21:48 -07:00 |
|
Blake Harnden
|
a7790185d4
|
updates to use message flags enum directly
|
2020-03-12 23:12:17 -07:00 |
|
Blake Harnden
|
5cdfd8d8b9
|
updated NodeTypes to be used directly
|
2020-03-10 23:11:37 -07:00 |
|
Blake Harnden
|
f277e96c9a
|
revert logging back to info, removed Rj45Models enum as it was not being used, updated linktypes enum to be used directly
|
2020-03-10 22:48:05 -07:00 |
|
Blake Harnden
|
e1c9155ba7
|
simplify thread daemon usage
|
2020-02-26 15:29:19 -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
|
c66ee04db5
|
avoid attempting to stop services for nodes that are not considered up
|
2020-02-04 10:13:37 -08:00 |
|
Blake Harnden
|
356bfd16b4
|
forward all 802.1D MAC bridge filtered MAC group addresses, except restricted types
|
2020-01-31 17:05:13 -08:00 |
|
Blake Harnden
|
45fb32c834
|
renamed config service dependency finder method to startup_paths, added pydocs to config service related methods
|
2020-01-27 11:44:00 -08:00 |
|
Blake Harnden
|
fcc445bb72
|
fixed issues in zebra config service, updated config services to start and validate different modes appropriately, added service dependency startup for config services
|
2020-01-23 13:22:47 -08:00 |
|
Blake Harnden
|
43fe81a86e
|
Merge branch 'develop' into feature/config-service
|
2020-01-17 21:13:07 -08:00 |
|
Blake Harnden
|
2ed56fbaa6
|
fixed doc formatting that was missed
|
2020-01-17 21:12:14 -08:00 |
|
Blake Harnden
|
dcc683dd38
|
added config service manager to CoreEmu and made it possible to create a session and nodes with config services from a script
|
2020-01-17 21:09:51 -08:00 |
|
Blake Harnden
|
191a9e9909
|
added some code to keep track of config services separately within core nodes, added function for starting config services during session instantiation
|
2020-01-17 16:57:49 -08:00 |
|
Blake Harnden
|
b8ded52a66
|
fixed formatting in docs due
|
2020-01-16 16:12:01 -08:00 |
|
Blake Harnden
|
f4ddf310a8
|
removed rtype and param typing from doc strings to help avoid maintaining duplicate information provided by type hints
|
2020-01-16 11:00:57 -08:00 |
|
Blake Harnden
|
781dc806a8
|
updates to cases when checking existing bridges using ip -j returns an empty object
|
2020-01-15 16:20:35 -08:00 |
|
Blake Harnden
|
d1c95a468a
|
updates to log exceptions during threadpool, avoid errors when hwaddr is None during EMANE scenarios
|
2020-01-15 13:58:48 -08:00 |
|
Blake Harnden
|
dcabd8d6f8
|
updates to add type hinting to uses of Callable
|
2020-01-15 11:56:23 -08:00 |
|
Blake Harnden
|
0388140068
|
fixed WirelessModelType usage to avoid runtime errors
|
2020-01-13 14:10:00 -08:00 |
|
Blake Harnden
|
c0fcc91d10
|
added type hinting for core.nodes
|
2020-01-13 14:08:49 -08:00 |
|
Blake Harnden
|
5583b7edfc
|
added type hints for emulator and session files
|
2020-01-10 22:37:19 -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
|
6042c6fed9
|
added validation checks/conversion for valid values of mac addresses and ip addresses to addaddr and sethwaddr functions
|
2020-01-08 20:44:15 -08:00 |
|
Blake Harnden
|
de493c810a
|
changes to replace MacAddress usage and remove ipaddress module altogether
|
2020-01-08 17:33:49 -08:00 |
|
Blake Harnden
|
4db7f845a5
|
removed commented out ipaddress code
|
2020-01-08 14:31:57 -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
|
f431254e15
|
initial changes towards removing ipaddress and using netaddr
|
2020-01-07 14:08:29 -08:00 |
|
Blake Harnden
|
fe8bc6f10e
|
removed usage of brctl and dependency on bridge-utils library as it is deprecated, replaced with using iproute instead
|
2019-12-23 14:48:56 -08:00 |
|
Blake Harnden
|
396a948bb9
|
small tweak to make new has_ebtables_chain variable created in __init__
|
2019-12-20 11:50:43 -08:00 |
|
bharnden
|
ea6ecc751d
|
Merge pull request #311 from coreemu/feature/init-ebtables-for-wlan-only
feature/init-ebtables-for-wlan-only,
|
2019-12-20 11:41:40 -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
|
c0c23190d1
|
Merge branch 'develop' of https://github.com/coreemu/core into develop
|
2019-12-20 09:58:25 -08:00 |
|
bharnden
|
6fa67f8844
|
Merge pull request #313 from coreemu/feature/check-ifc-before-flush
Feature/check ifc before flush
|
2019-12-20 09:58:13 -08:00 |
|
Blake Harnden
|
95c57bbad6
|
changes to allow node container commands to leverage shell parameter when needed
|
2019-12-20 09:57:34 -08:00 |
|
Blake Harnden
|
8eb4df7b1d
|
updated linkconfig to support asymmetric links, updated grpc start session to provide asymmetric links, since they currently depend on being processed as a link edit
|
2019-12-18 22:09:00 -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
|
d1db5e4b4e
|
added some data for node events to have a source field to help distinguish what originates from the gui or not
|
2019-11-27 12:55:39 -08:00 |
|
Blake Harnden
|
97cb1444f3
|
updates to emane model config storage, fixes to reconnecting to a wlan session
|
2019-11-21 16:41:38 -08:00 |
|
Jeff Ahrenholz
|
2d9cf81d0b
|
remove shell=True from run command
|
2019-11-07 11:38:31 -08:00 |
|
Jeff Ahrenholz
|
ddcce82af4
|
address PR comments and fix pre-commit
|
2019-11-07 09:01:01 -08:00 |
|
Jeff Ahrenholz
|
5db05aad13
|
fix black pre-commit errors (formatting)
|
2019-11-07 08:57:46 -08:00 |
|
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 |
|
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
|
cb81095b64
|
refactored NodeData and NodeOptions to use server instead of emulation_server
|
2019-10-22 20:50:01 -07:00 |
|
Blake Harnden
|
b703ad11c6
|
updating command logging back to debug
|
2019-10-22 12:19:37 -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
|
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
|
83c408359a
|
set flow id logging to debug
|
2019-10-18 14:56:21 -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
|
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
|
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
|
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
|
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
|
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
|
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 |
|
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
|
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
|
6d0d183788
|
fixed returning output from NodeBase.net_cmd
|
2019-10-03 11:59:45 -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 |
|
bharnden
|
503fa754a9
|
updates to fail early for required executables that are not in PATH
|
2019-09-27 23:29:15 -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
|
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
|
939203aa46
|
Merge pull request #280 from coreemu/pydocupdates
Pydocupdates
|
2019-09-17 11:56:04 -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
|
1843b5f709
|
further updates to python docs and docs files
|
2019-09-13 11:07:04 -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
|
0d5692e7e8
|
updates to try and clean up info logging, moved some statements to debug
|
2019-09-11 15:05:05 -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 |
|
Niels van Adrichem
|
09896b008e
|
Disable MAC learning on Wlan networks
|
2019-09-11 15:27:55 +02: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
|
527a44748d
|
avoid bad check that prevents reverting link configuration to 0
|
2019-07-05 19:06:27 -07:00 |
|