AllowTrafficZone
Bases: ControlTraffic
Action that enables Blue agents to unblock access between two subnets in the network. This functionality mimics reversing firewall rules.
Attributes:
Name | Type | Description |
---|---|---|
from_subnet |
str
|
name of subnet that the traffic should be unblocked from |
to_subnet |
str
|
name of subnet that the traffic should be unblocked from going to |
Functions
__init__
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
int
|
session identifier |
required |
agent |
str
|
name of agent performing action |
required |
from_subnet |
str
|
name of subnet that the traffic should be unblocked from |
required |
to_subnet |
IPv4Network
|
name of subnet that the traffic should be unblocked from going to |
required |
execute_control_traffic
Checks for specific pre-existing block, and removes it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
State
|
the current state of the environment |
required |
Returns:
Type | Description |
---|---|
Observation
|
the observation space for this action, holding a true or false success value |