Czar Echavez
d503e51c2d
#1814 : Remove hardcoded values + added test + remove unnecessary private parent attribute
2023-09-06 11:12:03 +01:00
Czar Echavez
c349bb4484
#1814 : initial implementation of data manipulator service
2023-09-05 17:14:47 +01:00
Chris McCarthy
1385adf3fe
Merge remote-tracking branch 'devops/dev' into feature/1801-Database
...
# Conflicts:
# src/primaite/simulator/network/container.py
# src/primaite/simulator/network/hardware/base.py
2023-09-04 19:45:29 +01:00
Chris McCarthy
3075d1985b
#1800 - Renamed all ip fields so that they're post-fixed with ip_address
2023-09-04 14:58:34 +01:00
Chris McCarthy
05959e5408
#1800 - Moved the Switch code to a dedicated switch.py module.
...
- Added more switch tests.
- Updated ACL tests to use router acl.
- Updated more docs.
- Moved the Jupyter notebooks to _package_data and fixed up the setup to move all notebooks to ~/primaite/notebooks/example_notebooks.
2023-09-04 12:14:24 +01:00
Marek Wolan
61fa83a00d
Fix failing test
2023-08-31 14:55:14 +01:00
Chris McCarthy
415ee3b3a7
Merge branch 'dev' into feature/1800_model-a-basic-router-subclass-of-node
2023-08-31 11:39:21 +01:00
Marek Wolan
62be66205c
Fix unit tests
2023-08-31 10:57:45 +01:00
Chris McCarthy
1bf51c7741
#1800 - Added ACL and routing classes.
...
- Added .show() methods to new router classes to enable inspection of the components as you would a real router.
- Removed gateway from the NIC and added default_gateway to Node so that Node has a single default gateway.
- Added some routing tests to check that ping can be performed when router between subnets.
2023-08-30 21:38:55 +01:00
Marek Wolan
f0b82cbdfb
Add ability to uninstall service
2023-08-29 14:15:49 +01:00
Marek Wolan
9c8b7a7b7a
Merge remote-tracking branch 'origin/feature/1789-add-convenience-methods-to-network-object' into feature/1801-Database
2023-08-29 13:22:14 +01:00
Marek Wolan
94325d1fde
Add Install method to software.
2023-08-29 13:21:34 +01:00
Marek Wolan
6e602aa151
Fix unit tests by removing warning checks
2023-08-25 17:56:05 +01:00
Chris McCarthy
c6f71600fc
#1800 - Fixed the ping functionality so that it actually checks for replies and returns True if the right number of replies have been received.
...
- Added the foundations of a Router class along with ACLRule and RouteTableEntry classes.
2023-08-25 09:07:32 +01:00
Marek Wolan
fec44aef53
Rename connect_nodes to connect and fix minor bug
2023-08-24 13:03:16 +01:00
Marek Wolan
78008e3c6e
Fix container test
2023-08-24 12:52:38 +01:00
Marek Wolan
7058c7e9a8
Rename networkcontainer to network
2023-08-24 12:41:46 +01:00
Marek Wolan
a818de8f01
Add ability to connect nodes via the network.
2023-08-24 12:40:00 +01:00
Marek Wolan
4077eb3a5c
Add tests for network node adding/removal
2023-08-24 10:26:17 +01:00
Marek Wolan
6ca53803cd
Describe state
2023-08-17 15:32:12 +01:00
Czar Echavez
d972fcc07e
Merged PR 164: File System Class setup fixing tests
...
## Summary
Attempting to fix a test which seems to be broken when integrated with https://dev.azure.com/ma-dev-uk/PrimAITE/_git/PrimAITE/pullrequest/160
## Test process
*How have you tested this (if applicable)?*
## Checklist
- [x] This PR is linked to a **work item**
- [x] I have performed **self-review** of the code
- [x] I have written **tests** for any new functionality added with this PR
- [ ] I have updated the **documentation** if this PR changes or adds functionality
- [ ] I have written/updated **design docs** if this PR implements new functionality.
- [x] I have run **pre-commit** checks for code style
#1714 : fixing minor error in test + adding a check for existing uuid when adding file
Related work items: #1714
2023-08-14 08:27:09 +00:00
Chris McCarthy
b902d945ee
Merge remote-tracking branch 'devops/dev' into feature/1706_node_class_and_node_type_subclasses
...
# Conflicts:
# CHANGELOG.md
# src/primaite/simulator/core.py
2023-08-10 13:29:14 +01:00
Marek Wolan
e24d4b8890
Fix typo in test
2023-08-10 09:14:45 +01:00
Chris McCarthy
ad81a81949
#1706 - Applied some code suggestions from the PR
2023-08-09 20:38:45 +01:00
Marek Wolan
34ff9abd7a
Apply changes from code review.
2023-08-09 15:55:28 +01:00
Marek Wolan
596bbaacde
Change enum strings to uppercase
2023-08-09 12:06:06 +01:00
Czar Echavez
572f457231
#1714 : fixing minor error in test + adding a check for existing uuid when adding file
2023-08-09 11:19:58 +01:00
Marek Wolan
1de8e0a058
Update tests
2023-08-09 09:19:11 +01:00
Marek Wolan
a3c2ae6c7d
Merge dev into feature/1716-accounts-and-groups
2023-08-09 09:18:06 +01:00
Chris McCarthy
9fbc3c91f7
#1706 - Finished up the Node and Switch MVP. Added full extensive documentation on what's happening at each step.
2023-08-08 20:22:18 +01:00
Chris McCarthy
4e4c2b501a
Merge remote-tracking branch 'devops/dev' into feature/1706_node_class_and_node_type_subclasses
...
# Conflicts:
# tests/unit_tests/_primaite/_simulator/test_core.py
2023-08-08 20:05:11 +01:00
Chris McCarthy
139d739732
#1706 - Tidies up the sysLog ARPCache, and ICMP classes and integrated them into the Node. Tidied up the base implementation of SoftwareManager and SessionManager. Tidies up the public API for Services and Applications. Added the SwitchPort and Switch classes. Added a basic test in test_frame_transmission.py that tests sending a frame from one node to another across a multi-switch network.
2023-08-07 19:33:52 +01:00
Czar Echavez
a4c193cd34
#1714 : apply recommended changes with removing get methods and using the properties directly
2023-08-07 16:20:55 +01:00
Czar Echavez
554619e4b4
#1714 : conver file and folder lists to dicts + fixing and adding a few more tests
2023-08-07 14:49:59 +01:00
Czar Echavez
b58a3a3e24
#1714 : FileSystemItem is no longer an abstract base class + Added enums and enum sizes + stream lined FileSystemFile init
2023-08-07 11:52:54 +01:00
Marek Wolan
f0d7e03fd7
Add docs and tests
2023-08-07 10:55:29 +01:00
Czar Echavez
028211d288
#1714 : update to use objects instead of uuids + tests
2023-08-07 09:34:59 +01:00
Marek Wolan
ac9b83cc42
Merge remote-tracking branch 'origin/dev' into feature/1716-accounts-and-groups
2023-08-07 09:15:35 +01:00
Czar Echavez
46c70ac084
#1714 : refactor private attributes and made them public + serialisation tests
2023-08-03 22:20:14 +01:00
Chris McCarthy
04f1cb0dc6
#1706 - Got the code services, application, and process base classes stubbed out. Need them now so that I can leverage them for core node services required.
2023-08-03 21:30:13 +01:00
Marek Wolan
2a680c1e48
Test my validators
2023-08-03 16:26:33 +01:00
Chris McCarthy
cac4779244
#1706 - Started adding the core node software required by all nodes. Made some tweaks to the Frame to have send and receive timestamp.
2023-08-03 14:37:55 +01:00
Czar Echavez
b08683fcd3
#1714 : fix tests
2023-08-03 12:42:16 +01:00
Czar Echavez
483fa7d841
Merge branch 'dev' into feature/1714-file-system-file-system-folder-and-file-system-file-class-skeletons
2023-08-03 12:15:08 +01:00
Czar Echavez
a0356a7fbc
#1714 : updated file system classes
2023-08-03 12:14:11 +01:00
Chris McCarthy
897dbdf10c
#1706 - Got the core Node class build and working with ARP and the ability to ping another node. Added some basic tests in. Next job is to create the Node subclasses. Then move ARP and ICMP into a service that is used by all nodes.
2023-08-02 21:54:21 +01:00
Chris McCarthy
95f5515d69
#1724 - Added documentation for the transport layer down to data link layer
2023-08-02 12:12:08 +01:00
Chris McCarthy
9d17a9b0d3
#1724 - Added the primaite/simulator/network/transmission sub-package with modules for each layer. They come together to build a minimal but fairly realistic network Frame. A custom PrimaiteHeader has been included to hold primaite specific metadata required in transmission for reward function and RL agent downstream. Added some basic tests that check the proper configuration of Frames with matching headers for protocols. Updated the frame typehints in NIC and Link classes.
2023-08-01 22:25:00 +01:00
Czar Echavez
841aafd259
Merge branch 'dev' into feature/1714-file-system-file-system-folder-and-file-system-file-class-skeletons
2023-08-01 16:20:08 +01:00
Czar Echavez
ea8c65a17e
#1714 : set up files
2023-08-01 16:18:49 +01:00