-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
>>> input_rule = dict(
... name="Allow to internal web",
... src_ip=["192.0.2.0/24"],
... dst_ip=["192.0.2.0/24"],
... dst_port=["tcp/80", "tcp/433"],
... action="permit",
... )
>>>
>>>
>>> acl.ACLRule(input_rule).expanded_rules
[]
>>> input_rule = dict(
... name="Allow to internal web",
... src_ip=["192.0.2.1"],
... dst_ip=["192.0.2.10"],
... dst_port=["tcp/80", "tcp/433"],
... action="permit",
... )
>>>
>>> acl.ACLRule(input_rule).expanded_rules
[{'name': 'Allow to internal web', 'src_ip': '192.0.2.1', 'dst_ip': '192.0.2.10', 'dst_port': '6/80', 'action': 'permit'}, {'name': 'Allow to internal web', 'src_ip': '192.0.2.1', 'dst_ip': '192.0.2.10', 'dst_port': '6/433', 'action': 'permit'}]
>>>
Metadata
Metadata
Assignees
Labels
No labels