#2775 - Documentation updates
This commit is contained in:
@@ -74,7 +74,7 @@ The subnet mask setting for the port.
|
|||||||
``acl``
|
``acl``
|
||||||
-------
|
-------
|
||||||
|
|
||||||
Sets up the ACL rules for the router.
|
Sets up the ACL rules for the router to apply to layer-3 traffic. These are not applied to layer-2 traffic such as ARP.
|
||||||
|
|
||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
@@ -85,10 +85,6 @@ e.g.
|
|||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
1:
|
1:
|
||||||
action: PERMIT
|
|
||||||
src_port: ARP
|
|
||||||
dst_port: ARP
|
|
||||||
2:
|
|
||||||
action: PERMIT
|
action: PERMIT
|
||||||
protocol: ICMP
|
protocol: ICMP
|
||||||
|
|
||||||
|
|||||||
@@ -97,17 +97,10 @@ we'll use the following Network that has a client, server, two switches, and a r
|
|||||||
network.connect(endpoint_a=switch_2.network_interface[1], endpoint_b=client_1.network_interface[1])
|
network.connect(endpoint_a=switch_2.network_interface[1], endpoint_b=client_1.network_interface[1])
|
||||||
network.connect(endpoint_a=switch_1.network_interface[1], endpoint_b=server_1.network_interface[1])
|
network.connect(endpoint_a=switch_1.network_interface[1], endpoint_b=server_1.network_interface[1])
|
||||||
|
|
||||||
8. Add ACL rules on the Router to allow ARP and ICMP traffic.
|
8. Add an ACL rules on the Router to allow ICMP traffic.
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
router_1.acl.add_rule(
|
|
||||||
action=ACLAction.PERMIT,
|
|
||||||
src_port=Port.ARP,
|
|
||||||
dst_port=Port.ARP,
|
|
||||||
position=22
|
|
||||||
)
|
|
||||||
|
|
||||||
router_1.acl.add_rule(
|
router_1.acl.add_rule(
|
||||||
action=ACLAction.PERMIT,
|
action=ACLAction.PERMIT,
|
||||||
protocol=IPProtocol.ICMP,
|
protocol=IPProtocol.ICMP,
|
||||||
|
|||||||
Reference in New Issue
Block a user