Chris McCarthy
e73d7f49d6
#1800 - Fixed routing and processing of ICMP packets in the Router class
2023-08-31 11:03:38 +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
40d3e04e64
Move init action manager function to the top
2023-08-29 14:33:28 +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
7b61322e70
Add service actions
2023-08-29 12:34:41 +01:00
Marek Wolan
319e87d200
Make changes to the way actions work
2023-08-28 22:34:20 +01:00
Marek Wolan
6e602aa151
Fix unit tests by removing warning checks
2023-08-25 17:56:05 +01:00
Marek Wolan
ae6e835955
Apply suggestions from code review.
2023-08-25 15:58:07 +01:00
Marek Wolan
a9e969aa13
init work on database
2023-08-25 15:29:53 +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
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
f38b423886
Update comment
2023-08-24 10:27:30 +01:00
Marek Wolan
4077eb3a5c
Add tests for network node adding/removal
2023-08-24 10:26:17 +01:00
Marek Wolan
1613bbe27a
Add methods for adding/removing nodes form network
2023-08-23 14:41:30 +01:00
SunilSamra
c1ba3b0850
#1752 - Added comments to ticket
2023-08-22 21:43:57 +01:00
SunilSamra
550b62f75d
#1752 - Removed unnecessary print statement
...
- Changed docstring on function check_domain_in_cache
2023-08-21 16:09:17 +01:00
SunilSamra
1a13af2f5e
#1752 - Changed DNSReply and DNSResponse to have 1 parameter only
2023-08-21 14:11:53 +01:00
Marek Wolan
7e64acd368
Update container docstrings
2023-08-21 10:04:23 +01:00
SunilSamra
a0b258a597
#1752 - Added a dns_lookup function to dns_server.py
2023-08-21 09:02:04 +01:00
Marek Wolan
01c912c094
fix type hints and describe state functions
2023-08-20 18:38:02 +01:00
Marek Wolan
6ca53803cd
Describe state
2023-08-17 15:32:12 +01:00
SunilSamra
2919be3796
#1752 - Added web_browser.py application for DNS modelling
2023-08-17 14:20:09 +01:00
Marek Wolan
ced45d4275
Connect actions of top-level sim components
2023-08-16 16:45:52 +01:00
SunilSamra
72cd9fd8e2
#1752 - Created dns.py protocol file with DNSPacket and DNSRequest and DNSReply packets
...
- Added reset_component logic for dns_server.py and dns_client.py
2023-08-16 13:00:16 +01:00
SunilSamra
76d404dc2f
#1752 - Added dns_client.py and dns_server.py service files
...
- Added new get_install method to software.py
2023-08-15 13:56:38 +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
Czar Echavez
c4aacb8c69
#1714 : Change file and folder uuid checking to check for file or folder names already existing
2023-08-11 15:33:07 +01:00
Chris McCarthy
49f855c320
#1706 - Synced with Dev
2023-08-10 13:33: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
9ee0ef2fd6
#1706 - Applied some final changes from PR. Fixed the PCAP log name on SwitchPort so that a pcap file is generated for each port.
2023-08-10 13:26:51 +01:00
Chris McCarthy
ad81a81949
#1706 - Applied some code suggestions from the PR
2023-08-09 20:38:45 +01:00
Chris McCarthy
b46057841d
#1706 - Refactored a bunch of if statements in base.py to improve readability
2023-08-09 20:31:42 +01:00
Marek Wolan
34ff9abd7a
Apply changes from code review.
2023-08-09 15:55:28 +01:00
Czar Echavez
cf241366dc
#1714 : apply suggestions for preventing addition of objects with similar uuid
2023-08-09 15:15:45 +01:00
Marek Wolan
f198a8b94d
Fix bad merge
2023-08-09 12:36:09 +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
be8c2955ce
Change Accountstatus to a bool
2023-08-09 10:26:52 +01:00
Marek Wolan
a3c2ae6c7d
Merge dev into feature/1716-accounts-and-groups
2023-08-09 09:18:06 +01:00
Chris McCarthy
a840159460
#1706 - Fixed the "smart" merging of SimComponent that PyCharm performed. Integrated the Filesystem class into the Node. Added prettytable to deps in pyproject.toml
2023-08-08 20:30:37 +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
Czar Echavez
2f27e02877
#1714 : fix precommit
2023-08-08 09:53:32 +01:00
Czar Echavez
c2b783c858
Apply suggestions from code review
2023-08-08 08:17:40 +00:00
Czar Echavez
c8ee409b3b
#1714 : run precommit
2023-08-08 08:29:51 +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