faucet.valve_host module¶
Manage host learning on VLANs.
-
class
faucet.valve_host.ValveHostFlowRemovedManager(logger, ports, vlans, eth_src_table, eth_dst_table, eth_dst_hairpin_table, pipeline, learn_timeout, learn_jitter, learn_ban_timeout, cache_update_guard_time, idle_dst, stack)[source]¶ Bases:
faucet.valve_host.ValveHostManagerTrigger relearning on flow removed notifications.
Note
not currently reliable.
-
class
faucet.valve_host.ValveHostManager(logger, ports, vlans, eth_src_table, eth_dst_table, eth_dst_hairpin_table, pipeline, learn_timeout, learn_jitter, learn_ban_timeout, cache_update_guard_time, idle_dst, stack)[source]¶ Bases:
faucet.valve_manager_base.ValveManagerBaseManage host learning on VLANs.
-
ban_rules(pkt_meta)[source]¶ Limit learning to a maximum configured on this port/VLAN.
Parameters: pkt_meta – PacketMeta instance. Returns: OpenFlow messages, if any. Return type: list
-
learn_host_on_vlan_port_flows(port, vlan, eth_src, delete_existing, refresh_rules, src_rule_idle_timeout, src_rule_hard_timeout, dst_rule_idle_timeout)[source]¶ Return flows that implement learning a host on a port.
-