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
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
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
Chris McCarthy
ad81a81949
#1706 - Applied some code suggestions from the PR
2023-08-09 20:38:45 +01:00
Marek Wolan
596bbaacde
Change enum strings to uppercase
2023-08-09 12:06: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
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
Marek Wolan
f0d7e03fd7
Add docs and tests
2023-08-07 10:55:29 +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
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
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
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
Chris McCarthy
0532db960a
#1715 - Added more tests. MAde use of the pydantic model_post_init function for proper ipv4 cofiguration checking. Added NetworkError to exceptions.py.
2023-07-31 16:55:45 +01:00