faucet.valve_acl module¶
Compose ACLs on ports.
-
class
faucet.valve_acl.
ValveAclManager
(port_acl_table, vlan_acl_table, egress_acl_table, pipeline, meters, dp_acls=None)[source]¶ Bases:
faucet.valve_manager_base.ValveManagerBase
Handle installation of ACLs on a DP
-
cold_start_port
(port)[source]¶ Reload acl for a port by deleting existing rules and calling add_port
-
-
faucet.valve_acl.
add_mac_address_to_match
(match, eth_src)[source]¶ Add or change the value of a match type
-
faucet.valve_acl.
build_acl_entry
(acl_table, rule_conf, meters, acl_allow_inst, acl_force_port_vlan_inst, port_num=None, vlan_vid=None)[source]¶ Build flow/groupmods for one ACL rule entry.
-
faucet.valve_acl.
build_acl_ofmsgs
(acls, acl_table, acl_allow_inst, acl_force_port_vlan_inst, highest_priority, meters, exact_match, port_num=None, vlan_vid=None)[source]¶ Build flow/groupmods for all entries in an ACL.
-
faucet.valve_acl.
build_acl_port_of_msgs
(acl, vid, port_num, acl_table, goto_table)[source]¶ A Helper function for building Openflow Mod Messages for Port ACLs
-
faucet.valve_acl.
build_output_actions
(acl_table, output_dict)[source]¶ Implement actions to alter packet/output.