SunilSamra
2526427f2f
#901 - Fixed bug in implicit rule - comparing it to string ALLOW or DENY in access_control_list.py
2023-07-17 13:58:06 +01:00
SunilSamra
da20c0e9e6
#901
...
- Removed bool apply_implicit_rule
- Set default implicit_rule to EXPLICIT DENY
- Added position to ACLs in laydown configs
- Removed apply_implicit_rule from training configs
2023-07-17 13:00:58 +01:00
SunilSamra
707d8f6189
#901
...
- Added check in access_control_list.py which sets implicit permission to NA if boolean is False
- Changed the defaults in training_config.py so that each scenario has an EXPLICIT ALLOW rule as default implicit rule
- Updated the test_seeding_and_deterministic_session.py because of change no2 adds an extra rule to that scenario
2023-07-17 10:27:56 +01:00
SunilSamra
661c865108
#901 -
...
- Added comments in access_control_list.py
- Changed obs_shape to max_number_acl_rules from max_number_acl_rules + 1 as index starts from 1
- Commented episode and step print line from test_single_action_space.py
2023-07-14 15:27:37 +01:00
SunilSamra
0ab4dab72a
901 - fixed test_single_action_space.py test
2023-07-13 11:45:23 +01:00
SunilSamra
06c20f6984
Merge remote-tracking branch 'origin/dev' into feature/901-change-functionality-acl-rules
...
# Conflicts:
# src/primaite/acl/access_control_list.py
2023-07-12 10:45:03 +01:00
SunilSamra
f817efdc69
901 - fixed how acls are added into list with new logic - agent cannot overwrite another acl in the list
2023-07-12 09:47:16 +01:00
SunilSamra
350b3db3f6
901 - changed implicit_acl_rule from str to enum name
2023-07-11 12:36:22 +01:00
Marek Wolan
91287f8666
Merge remote-tracking branch 'origin/dev' into feature/1572-fix-docs-formatting
2023-07-09 18:13:57 +01:00
Marek Wolan
f4b98542b6
Standardise docstring summary line placement.
2023-07-07 10:28:00 +01:00
Marek Wolan
86725064ec
Added docstrings to class intialisers
2023-07-06 16:08:51 +01:00
SunilSamra
f651937759
901 - changed how acl rules are added to access control list and added structure to AccessControlList observation
2023-07-06 11:07:21 +01:00
Marek Wolan
87bdaa1ec3
Updated documentation
2023-07-06 10:34:27 +01:00
Marek Wolan
5c167293e3
Add docstrings and type hints.
2023-07-05 16:19:43 +01:00
Marek Wolan
7482aead76
typo
2023-07-05 14:50:03 +01:00
Marek Wolan
171b5cb58e
Imported ADSP function for ACL
2023-07-05 14:10:52 +01:00
SunilSamra
f121b0e21c
901 - merged with dev
2023-07-05 11:34:15 +01:00
Marek Wolan
38a3666e8e
Move class docstrings out of init function.
2023-07-05 10:14:16 +01:00
Marek Wolan
cda9819e72
Add blank lines at the end of file.
2023-07-05 09:22:49 +01:00
SunilSamra
3f440c0a28
901 - updated observations.py to change and add new mapping of ACL rules to represent no rule present in list
2023-07-05 09:08:03 +01:00
Marek Wolan
0756e61e5d
add module level docstrings
2023-07-04 13:11:06 +01:00
Marek Wolan
5e270c7673
Format docstrings
2023-07-04 11:11:52 +01:00
Chris McCarthy
27ca53878a
#917 - Fixed the RLlib integration
...
- Dropped support for overriding the num_episodes and num_steps at the agent level. It's just not needed and will add complexity when overriding and writing output files.
2023-06-30 16:52:57 +01:00
Chris McCarthy
73015802ec
#917 - Integrated the PrimaiteSession into all tests.
...
- Ran a full pre-commit hook and thus encountered tons of fixes required
2023-06-30 09:08:13 +01:00
SunilSamra
ef4d2c6cdd
901 - fixed test_single_action_space.py to reflect new acl structure and added new acl_implicit_rule class attribute
2023-06-27 11:43:33 +01:00
SunilSamra
df42a791c9
901 - changed ACL instantiation and changed acl t private _acl (list not dict) attribute, added laydown_ACL.yaml for testing, fixed encoding of acl rules to integers for obs space, added ACL position to node action space and added generic test where agents adds two ACL rules.
2023-06-20 11:47:20 +01:00
SunilSamra
cf64990cff
901 - added changes back to ticket
2023-06-13 09:45:45 +01:00
SunilSamra
cdd7183d85
901 - merged dev into my branch
2023-06-13 08:54:33 +01:00
SunilSamra
c5175c500e
901 - added logic to add acls to list (needs more logic adding to it)
2023-06-09 16:56:42 +01:00
SunilSamra
29ba64462a
901 - changed name of enum in enums.py and added class attriubutes in access_control_list.py
2023-06-09 15:45:13 +01:00
SunilSamra
afc133cbc5
901 - added ACL list to observations.py as its own observation space with the ACL attributes and the position of the ACL rule in the ACL list, added ImplicitFirewallRule to enums.py and added acl_implicit_rule, max_acl_list to primaite_env.py
2023-06-09 15:17:20 +01:00
SunilSamra
7382ed26b3
901 - changed AccessControlList in access_control_list.py from a dict to a list
2023-06-09 11:25:45 +01:00
Chris McCarthy
6245ad9298
#1355 - Carried out full renaming in node.py, active_node.py, passive_node.py, and service_node.py to make params and variable names explicit.
...
- Made the same renaming in the yaml laydown config files.
- Added Type hints wherever I've been.
- Added a custom NodeType in custom_typing.py to encompass the Union of ActiveNode, PassiveNode, ServiceNode.
2023-05-25 21:03:11 +01:00
Chris McCarthy
71f33ed44e
Ran pre-commit hook on all files and performed changes to fix flake8 failures
2023-05-25 11:42:19 +01:00
Chris McCarthy
9bd7aade43
Package restructuring
2023-05-25 10:31:37 +01:00