Commit graph

1417 commits

Author SHA1 Message Date
Blake Harnden
42979f1bb3 pygui edge code cleanup for node label drawing 2020-04-15 13:39:11 -07:00
Blake Harnden
0203d4178d pygui removed unused throughput tag 2020-04-15 12:57:01 -07:00
Blake Harnden
6f87986364 pygui cleanup of edge code to use position tuples instead of individual params 2020-04-15 12:51:35 -07:00
Blake Harnden
23562cd294 updates for working label drawing on wireless links in pygui, will display sinr values on emane links 2020-04-15 12:41:09 -07:00
Blake Harnden
86b0c07764 fixed issue when reading xml file and not associating node with emane model, causing error for grpc 2020-04-15 11:44:14 -07:00
Blake Harnden
2b97b311ab pygui ignore adding/removing duplicate wireless link events, ignore wireless link events for node to itself 2020-04-14 17:08:42 -07:00
Blake Harnden
3c4a908fd5 updates to support multiple links between nodes in pygui, initially handling multiple wireless links 2020-04-14 15:51:28 -07:00
Blake Harnden
cd8157eff7 renamed python gui to be more similar to other core scripts and specific to it being python, some cleanup to pygui edge drawing and updates to allow for edges to have an arc to support multiple links between the same nodes 2020-04-14 10:47:42 -07:00
Blake Harnden
8c8024df10 updates to formatting for route monitor 2020-04-13 17:02:05 -07:00
Blake Harnden
971a959a19 updates to route monitor 2020-04-13 16:59:55 -07:00
Blake Harnden
a5c412b594 updates to sdt integration to use different colors for each network of wireless links 2020-04-09 11:42:27 -07:00
Blake Harnden
3a45e9ec7a fix for ipsec service reading file as bytes 2020-04-07 21:03:45 -07:00
bharnden
c3224251b7
Merge pull request #424 from smvoigt/coreemu#423
Add IS-IS to FRR service #423
2020-04-06 17:06:17 -07:00
bharnden
41451c29cf
Merge pull request #422 from smvoigt/coreemu#421
Fix for IPv6 Addresses disappear with FRR #421
2020-04-06 17:01:20 -07:00
Blake Harnden
87f90cd8e3 added tcpdump check to print a message about its requirement 2020-04-06 16:47:21 -07:00
Blake Harnden
0aa7c6f1f2 cleaned up how grpc creates node protobuf data for grpc interfaces, cleaned up route monitor script slighly 2020-04-06 16:09:01 -07:00
Blake Harnden
0742c08b59 added session/node dir to grpc responses and node channels, updating route monitor to use grpc for getting session/node information 2020-04-06 15:46:47 -07:00
Shaun Voigt
6c9c2cbeb0 resolve isort 2020-04-07 07:50:26 +09:30
Blake Harnden
2750a69e79 initial route monitor based on searching for core directories 2020-04-06 15:16:16 -07:00
Shaun Voigt
8dfdd6171d check for ipv6 address using netaddr.valid_ipv6 2020-04-07 07:44:23 +09:30
Shaun Voigt
29fea7e572 Add IS-IS support to FRR Service #423 2020-04-06 18:26:29 +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
d0c4d4b935 fixed issue where the udp handler would no broadcast node/link changes from coresendmsg 2020-04-02 21:14:08 -07:00
Blake Harnden
7be7beec42 updated core-daemon thread usage to use thread daemon param 2020-04-02 17:33:38 -07:00
Blake Harnden
7d392c43ac improve default route service to detect connected routers and use the addresses of the first one found 2020-04-02 15:12:07 -07:00
Blake Harnden
72189a5c28 fix configdata issue, since most corehandler code did not account for using flags directly 2020-04-01 10:56:09 -07:00
Blake Harnden
b29f640547 modified emane link monitor to send labels containing sinr values to sdt 2020-03-31 21:09:20 -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
3165bddc92 updates to allow emane to throw an exception when emane python bindings are not present and emane is attempted to be ran 2020-03-31 16:21:04 -07:00
Blake Harnden
71196004c8 improved sdt deletion of links by using the id properly 2020-03-31 15:20:34 -07:00
Blake Harnden
1252f72220 updated requirements.txt to use environment markers for dataclasses dependency 2020-03-31 14:38:48 -07:00
bharnden
eccd1f1695
Merge pull request #418 from coreemu/enhancement/dataclasses
switched core emulator data files from using namedtuples to backporte…
2020-03-31 14:32:24 -07:00
Blake Harnden
2ce1ef04ae updated Pipfile.lock to denote marker for only installing dataclasses in python 3.6 2020-03-31 14:28:17 -07:00
Blake Harnden
2532f6605d modify setup.py to denote dataclasses only being needed in 3.6 2020-03-31 14:19:02 -07:00
Blake Harnden
13ef701b6e ignore reading emane global config from xml when not present 2020-03-31 10:08:08 -07:00
Blake Harnden
8186c62b19 switched core emulator data files from using namedtuples to backported dataclasses 2020-03-31 09:41:29 -07:00
Blake Harnden
16764c702b updated emane link monitor to not run when there is nothing to monitor, added better logging about what is being monitored 2020-03-30 12:26:08 -07:00
Blake Harnden
7e0efa7020 updated sdt plugin to support layering core nodes and links as well as wireless links into network layers, also using linkid to support multiple links between nodes 2020-03-30 12:00:22 -07:00
Blake Harnden
7b29f6bb82 change to account for importing slightly older bindings for emane link monitor 2020-03-30 10:46:05 -07:00
Blake Harnden
16cc73c070 import change to help isort pass 2020-03-30 10:36:39 -07:00
Blake Harnden
1efa1284bb merged latest from develop 2020-03-28 13:18:25 -07:00
Blake Harnden
6c5c2c5674 fixed core xml to properly write and read emane global configurations 2020-03-28 13:06:46 -07:00
Blake Harnden
0b30289879 emane link monitor clear complete links during shutdown 2020-03-27 22:47:16 -07:00
Blake Harnden
3d59cd0ad8 initial logic for working emane links based on emane stats 2020-03-27 17:22:44 -07:00
Blake Harnden
fc40c8d7bb enabled node context delete/copy and edit menu delete in python gui 2020-03-26 22:24:23 -07:00
Blake Harnden
66e5be7576 updates to basic range model configuration settings to allow 0 values as well as empty values for None, that work in old and new guis 2020-03-26 11:21:47 -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
38f9f44cdf fixed type hinting and bad return value 2020-03-22 21:15:11 -07:00
Blake Harnden
14e708681c small tweak to corehandlers logic 2020-03-22 21:08:12 -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
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
1e8d1ecd9f changes for sessions to use EventTypes for state/hooks directly 2020-03-06 22:35:23 -08:00
Blake Harnden
0e299d5af4 update to make use of shutil.which for executable searching 2020-03-06 16:41:26 -08:00
Blake Harnden
6b5cd95ac2 small updates to new gui exception dialog, fixed error checking and setting interface mac addresses 2020-03-05 21:38:52 -08:00
Blake Harnden
f826a4c5e8 new gui fixed error display when daemon is not running 2020-03-04 20:42:40 -08:00
Blake Harnden
c4234d33f0 updates to allow new gui to recreate session to continue where it left off 2020-03-04 20:09:56 -08:00
bharnden
f2da8dc2c9
Merge pull request #403 from coreemu/coretk-enhance/fix-bugs
Coretk enhance/fix bugs
2020-03-04 14:55:10 -08:00
Blake Harnden
be37f0f279 updates in new gui to allow empty ip4/ip6 addresses, fixed display issues related to empty addresses 2020-03-04 14:39:28 -08:00
Huy Pham
95d36a1792 fix merge conflict 2020-03-04 14:27:29 -08:00
Huy Pham
f50c1e4db4 keep track of opened, saved file to appropriately prompt save xml when needed, add Save As menu option 2020-03-04 14:15:02 -08:00
bharnden
d076229973
Merge pull request #399 from coreemu/coretk-enhance/execute-xml-script
Coretk enhance/execute xml script
2020-03-04 13:59:32 -08:00
bharnden
902cfab677
Merge pull request #401 from coreemu/fix-core-cleanup-d-kill-daemon
fix-core-cleanup-d-kill-daemon
2020-03-04 13:58:19 -08:00
Blake Harnden
34895c1f9c changes for initial gui setup and discovery of the terminal program to use, avoid using TERM env variable 2020-03-04 13:30:01 -08:00
Huy Pham
7dee59e86e New Session command deletes the current session if it is not in runtime else prompt save running session, and then creates the new session 2020-03-04 13:25:22 -08:00
Jeff Ahrenholz
91dae87810 properly kill python3-based core-daemon when using 'core-cleanup -d' 2020-03-04 13:23:09 -08:00
bharnden
fd2a5ec290
Merge pull request #398 from coreemu/bugfix/fix-terms-list-typo
fix typo in DEFAULT_TERMS make gnome-terminal work
2020-03-04 12:12:37 -08:00
Huy Pham
b72ce6a66c allow editable Edit - Preferences - Terminal 2020-03-04 11:49:09 -08:00
Blake Harnden
0d4a86f10e updated new gui to properly update modified addresses for nodes, added validation for ip4/ip6, fixed redrawing edge labels when node addresses change 2020-03-04 11:38:24 -08:00
Jeff Ahrenholz
52689bd210 fix typo in DEFAULT_TERMS make gnome-terminal work 2020-03-04 11:23:21 -08:00
Huy Pham
6ce29bea75 fix merge conflict 2020-03-04 11:14:20 -08:00
Blake Harnden
4093b2244a fixed new gui removing marker annotations when creating new sessions 2020-03-03 22:38:03 -08:00
Blake Harnden
539ca5d22c added docker/lxc to xml read/write, fixed icon retrieval for docker/lxc in new gui 2020-03-03 22:27:02 -08:00
bharnden
7c8e115bc7
Merge pull request #383 from coreemu/coretk-enhance/disable-runtime-editing-custom-service-config
Coretk enhance/disable runtime editing custom service config
2020-03-03 12:54:47 -08:00
bharnden
020a13bde6
Merge pull request #386 from coreemu/coretk-enhance/scaling
Coretk enhance/scaling
2020-03-03 12:49:16 -08:00
Huy Pham
ea341cbe45 set the initial directory of executing python scripts to HOME_PATH/scripts 2020-03-02 14:08:11 -08:00
Huy Pham
9cd6166b9b use varaibles that represent smallest and largest allowed scale value to replace float numbers 2020-03-02 11:20:00 -08:00
Huy Pham
58cb5a1a1d add a scrollbar next to scale entry to allow scale adjustment in increments of a specific value (since the Scale Slider widget does not support this) 2020-03-02 11:02:54 -08:00
Huy Pham
933f409498 adjust node text and edge text to scale not as fast as other components 2020-03-02 10:18:37 -08:00
Blake Harnden
ff3b20a962 modifications to support optional geo position edits for nodes and to account for geo updates to sdt 2020-03-02 10:01:36 -08:00
Huy Pham
b0a3c85f0e allow editable scale field for manually setting the app scale value 2020-03-02 09:56:57 -08:00
Huy Pham
a7fa0bf6d3 use a bigger size font for alert button text to see the scaling effect more easily 2020-03-02 09:17:35 -08:00
Huy Pham
dfc24e107f use grpc method to execute python script, redraw canvas and reset session data 2020-03-02 09:01:03 -08:00
Huy Pham
c1f0e385b4 Merge branch 'develop' into coretk-enhance/execute-xml-script 2020-02-28 12:52:29 -08:00
Blake Harnden
9535d40b70 added grpc call to execute python script, to replicate prior gui functionality 2020-02-28 12:28:41 -08:00
Blake Harnden
67da3e5c22 changes to move sdt calls internal to core interactions, which allows it to work with both guis 2020-02-27 21:39:18 -08:00
Huy Pham
848cda03f7 design execute python file dialog 2020-02-27 15:24:36 -08:00
Huy Pham
f8a3f0a2d4 Merge branch 'develop' into coretk-enhance/disable-runtime-editing-custom-service-config 2020-02-27 11:00:09 -08:00
Huy Pham
1cba11d9e0 clean up more code, click defaults in service configuration correctly reset files tab as well as directories tab 2020-02-27 10:57:22 -08:00
Huy Pham
c36f060d44 fixed wrong variable used for configuring service in grpcutils, add/delete directories for node's service configuration, clean up some old code 2020-02-26 15:43:31 -08:00
Blake Harnden
20e3fbc7d9 modify execute python script handling for old gui to wait for script to complete before looking for new session to avoid possible race conditions 2020-02-26 15:39:37 -08:00
Blake Harnden
e1c9155ba7 simplify thread daemon usage 2020-02-26 15:29:19 -08:00