Marek Wolan
a34cf08209
Merge remote-tracking branch 'origin/dev' into feature/2317-refactor-reset
2024-02-25 16:41:40 +00:00
Marek Wolan
f933341df5
eod commit
2024-02-23 10:06:48 +00:00
Marek Wolan
8f85555709
Merged PR 278: Enable the red agent to vary its start node
...
## Summary
- Made the data manipulation red agent be able to choose between the two clients to start operating on
- changed the attacker name in the config to 'data_manipulation_attacker' to because it is no longer tied to any client
- Updated the documentation notebook accordingly.
- Fixed a bug where the database client made a new connection every time it sent a SQL query (it tries to reuse its most recent one instead)
- Fixed a bug where link loads were not being cleared between episodes (?)
**warning** - the green agents are not working properly after reset right now, but I'm gonna fix this in the next ticket where I refactor episode reset.
## Test process
- unit tests pass
- UC2 notebook passes with both clients. (currently this doesn't work after an episode reset, but the very next thing I'm gonna work on is refactoring the reset, so I don't want to waste time fixing this.)
## Checklist
- [x] PR is linked to a **work item**
- [x] **acceptance criteria** of linked ticket are met
- [x] performed **self-review** of the code
- [x] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [x] updated the **change log**
- [x] ran **pre-commit** checks for code style
- [n] attended to any **TO-DOs** left in the code
Related work items: #2232
2024-02-20 20:22:20 +00:00
Marek Wolan
72f4cc0a50
Remove reset methods from most classes
2024-02-20 16:56:25 +00:00
Marek Wolan
f82506023b
Delete set_original_state method definitions
2024-02-20 16:29:27 +00:00
Marek Wolan
701781b23e
Clear link load in new timestep
2024-02-20 11:05:09 +00:00
Chris McCarthy
9df7ceed3d
#2205 - feat: Implement AirSpace and WirelessRouter for Enhanced Network Simulations
...
This commit introduces the AirSpace and WirelessRouter classes, expanding the PrimAITE's capabilities to simulate wireless networking environments. The AirSpace class manages wireless communications, ensuring seamless transmission across different frequencies. Meanwhile, the WirelessRouter class integrates both wired and wireless networking functionalities.
2024-02-10 23:44:08 +00:00
Chris McCarthy
6b3829dc48
#2248 - Removed redundant Union from single type params
2024-02-09 11:37:47 +00:00
Chris McCarthy
0acd9a2938
#2248 - Removed redundant code and added more documentation from PR suggestions
2024-02-09 10:27:22 +00:00
Chris McCarthy
114fb8c077
#2248 - synced wth dev
2024-02-08 15:27:02 +00:00
Chris McCarthy
411f0a320f
#2248 - Final run over all the docstrings after running pre-commit. All tests now working. Updated CHANGELOG.md.
2024-02-08 10:53:30 +00:00
Chris McCarthy
0c96fef3ec
#2248 - All tests (bar the one config file test) now working. Still need to tidy up docstrings and some docs. Almost there
2024-02-07 23:05:34 +00:00
Chris McCarthy
5e25fefa14
#2248 - Further fixes. All router integration tests now passing.
2024-02-07 19:44:40 +00:00
Chris McCarthy
7bbfd564fb
#2248 - Big refactor of base with all Network Interface subclasses created to allow for proper management of ports on devices as it was starting to get messy with the Router. Some routing tests still need fixing as ARP doesn't seem to be working properly
2024-02-05 08:44:10 +00:00
Chris McCarthy
a0253ce6c4
#2248 - TSome further fixess to ARP. Also refactored PCAP to log inbound and outbound frames separately
2024-02-02 17:14:34 +00:00
Chris McCarthy
cb002d644f
#2248 - Tidying up the tests so that they use updated networks
2024-02-02 16:55:43 +00:00
Chris McCarthy
dc5aeede33
#2248 - ICMP now working as a service using the session manager for transmission. Now started to comb through the tests to fix anything up.
2024-02-02 16:20:15 +00:00
Chris McCarthy
87d9d6da04
#2248 - Initial work has been done on moving ICMP into services. still tidying up to be done. Need to fix tests too.
2024-02-02 15:35:02 +00:00
Marek Wolan
4c6ae135cd
Fix typos
2024-02-02 14:48:49 +00:00
Chris McCarthy
1964ab4635
#2248 - Lots more progress. Can now use ARP as a service properly. Also integrated the new ARP into the old ICMP which works. Next step is to more ICMP into services.
2024-02-01 23:05:14 +00:00
Chris McCarthy
9577f212f8
#2248 - Initial crack at getting ARP into a Service. Lots of refactoring has been done. It's a mess at the minute, but I can successfully send an ARP request so committing as a successful point in time
2024-02-01 22:19:55 +00:00
Marek Wolan
0dbaa66aa3
Merge remote-tracking branch 'origin/dev' into feature/2137-refactor-request-api
2024-01-31 10:05:09 +00:00
Marek Wolan
555802baaa
Merge remote-tracking branch 'origin/dev' into dev-v3.0.0b6
2024-01-29 10:26:28 +00:00
Marek Wolan
2d1041e7b3
Fix final bugs
2024-01-10 18:38:37 +00:00
Chris McCarthy
8b43f6abe3
#2139 - updated docstring in send_arp_request function in base.py
2024-01-08 10:30:38 +00:00
Chris McCarthy
d2d628b676
#2139 - Fixed unicast and broadcast functionality properly
2024-01-05 22:11:37 +00:00
Chris McCarthy
ade5f133d0
#2139 - Implemented routing
2023-12-22 10:31:11 +00:00
Marek Wolan
a798d262b8
use names instead of uuids for requests
2023-12-18 14:03:47 +00:00
Marek Wolan
495d847a71
Use service and app name for node software requests
2023-12-15 13:04:18 +00:00
Marek Wolan
1ec7df1170
Change describe_state to use names instead of uuids
2023-12-14 11:19:32 +00:00
Marek Wolan
eeedea2eff
Make more friendly user outputs when training SB3
2023-12-01 15:36:07 +00:00
Marek Wolan
05d62a956d
Fix software reset issues
2023-11-29 13:18:38 +00:00
Chris McCarthy
bf73cc2eb7
#1859 - Re-ordered the node reset function again
2023-11-29 13:45:34 +00:00
Chris McCarthy
94f8a45a4d
#1859 - Re-ordered the node reset function
2023-11-28 15:29:13 +00:00
Chris McCarthy
9a4855e7bd
#1859 - Added the call to file system reset
2023-11-28 11:58:09 +00:00
Marek Wolan
21b865d8a8
Merge origin/dev into feature/1859
2023-11-27 22:13:42 +00:00
Chris McCarthy
517f99b04b
#1859 - Added the call to file system reset
2023-11-28 09:45:45 +00:00
Chris McCarthy
39dfbb741f
#1859 - Made some fixes to resets. Still an issue with the Router reset.
2023-11-28 00:21:41 +00:00
Chris McCarthy
58e9033a4c
#1859 - First pass at an implementation of the full reset method. Will now start testing...
2023-11-27 23:01:56 +00:00
Chris McCarthy
ae5046b8fb
#1859 - As disccused
2023-11-27 17:05:12 +00:00
Czar Echavez
299729d5b4
#2064 : documentation EVERYWHERE
2023-11-27 11:38:03 +00:00
Czar Echavez
2ce03e0262
#2064 : turn on everything when node is turned on
2023-11-23 22:10:53 +00:00
Czar Echavez
bd6c27244c
#2064 : Edited services and applications to handle when they are shut down
2023-11-23 19:49:03 +00:00
Marek Wolan
5bda952ead
Fix sim output
2023-11-17 10:20:26 +00:00
Marek Wolan
0ea282166d
Merge remote-tracking branch 'origin/dev' into dev-game-layer
2023-11-06 16:23:29 +00:00
Czar.Echavez
98ca33e994
#1961 : scanning no longer happens every timestep - the scan is all done in one timestep after the required timestep countdown is complete
2023-10-30 15:34:13 +00:00
Czar.Echavez
1ddf400d6f
#1961 : node resetting
2023-10-27 18:28:34 +01:00
Czar.Echavez
68b22b6444
#1961 : node scanning + applying timestep to all components within node + node revealing to red
2023-10-27 17:50:41 +01:00
Czar.Echavez
8783574442
#1961 : os scan set up
2023-10-27 10:17:59 +01:00
Marek Wolan
ffe80f215e
Merge 'origin/dev-game-layer' into feature/1924-Agent-Interface
2023-10-25 09:58:04 +01:00