2.129. vpp_acl module¶
-
class
vpp_acl.
AclRule
(is_permit, src_prefix=IPv4Network('0.0.0.0/0'), dst_prefix=IPv4Network('0.0.0.0/0'), proto=0, ports=-1, sport_from=None, sport_to=None, dport_from=None, dport_to=None)¶ Bases:
object
ACL Rule
-
PORTS_ALL
= -1¶
-
PORTS_RANGE
= 0¶
-
PORTS_RANGE_2
= 1¶
-
encode
()¶
-
icmp4_code
= 3¶
-
icmp4_code_from_2
= 5¶
-
icmp4_code_to_2
= 20¶
-
icmp4_type
= 8¶
-
icmp4_type_2
= 8¶
-
icmp6_code
= 3¶
-
icmp6_code_from_2
= 8¶
-
icmp6_code_to_2
= 42¶
-
icmp6_type
= 128¶
-
icmp6_type_2
= 128¶
-
property
ports
¶
-
property
proto
¶
-
tcp_dport_from
= 40000¶
-
tcp_dport_from_2
= 20000¶
-
tcp_dport_to
= 45000¶
-
tcp_dport_to_2
= 25000¶
-
tcp_sport_from
= 30¶
-
tcp_sport_from_2
= 130¶
-
tcp_sport_to
= 35¶
-
tcp_sport_to_2
= 135¶
-
udp_dport_from
= 20000¶
-
udp_dport_from_2
= 30000¶
-
udp_dport_to
= 25000¶
-
udp_dport_to_2
= 35000¶
-
udp_sport_from
= 10¶
-
udp_sport_from_2
= 90¶
-
udp_sport_to
= 15¶
-
udp_sport_to_2
= 95¶
-
update_ports
()¶
-
-
class
vpp_acl.
MacipRule
(is_permit, src_mac=0, src_mac_mask=0, src_prefix=IPv4Network('0.0.0.0/0'))¶ Bases:
object
Mac Ip rule
-
encode
()¶
-
-
class
vpp_acl.
VppAcl
(test, rules, acl_index=4294967295, tag=None)¶ Bases:
vpp_object.VppObject
VPP ACL
-
property
acl_index
¶
-
add_vpp_config
(expect_error=False)¶ Add the configuration for this object to vpp.
-
property
count
¶
-
dump
()¶
-
encode_rules
()¶
-
modify_vpp_config
(rules)¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
(expect_error=False)¶ Remove the configuration for this object from vpp.
-
property
rules
¶
-
property
-
class
vpp_acl.
VppAclInterface
(test, sw_if_index, acls, n_input=0)¶ Bases:
vpp_object.VppObject
VPP ACL Interface
-
add_vpp_config
(expect_error=False)¶ Add the configuration for this object to vpp.
-
property
count
¶
-
encode_acls
()¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
(expect_error=False)¶ Remove the configuration for this object from vpp.
-
property
sw_if_index
¶
-
-
class
vpp_acl.
VppAclPlugin
(test, enable_intf_counters=False)¶ Bases:
vpp_object.VppObject
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
property
enable_intf_counters
¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
-
class
vpp_acl.
VppEtypeWhitelist
(test, sw_if_index, whitelist, n_input=0)¶ Bases:
vpp_object.VppObject
VPP Etype Whitelist
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
property
count
¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
property
sw_if_index
¶
-
-
class
vpp_acl.
VppMacipAcl
(test, rules, acl_index=4294967295, tag=None)¶ Bases:
vpp_object.VppObject
Vpp Mac Ip ACL
-
property
acl_index
¶
-
add_vpp_config
(expect_error=False)¶ Add the configuration for this object to vpp.
-
property
count
¶
-
dump
()¶
-
encode_rules
()¶
-
modify_vpp_config
(rules)¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
(expect_error=False)¶ Remove the configuration for this object from vpp.
-
property
rules
¶
-
property
-
class
vpp_acl.
VppMacipAclInterface
(test, sw_if_index, acls)¶ Bases:
vpp_object.VppObject
VPP Mac Ip ACL Interface
-
add_vpp_config
()¶ Add the configuration for this object to vpp.
-
property
count
¶
-
dump
()¶
-
object_id
()¶ Return a unique string representing this object.
-
query_vpp_config
()¶ Query the vpp configuration.
- Returns
True if the object is configured
-
remove_vpp_config
()¶ Remove the configuration for this object from vpp.
-
property
sw_if_index
¶
-