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_graph, has_externals, stack_root_flood_reflection)[source]¶ Bases:
faucet.valve_host.ValveHostManager
Trigger 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_graph, has_externals, stack_root_flood_reflection)[source]¶ Bases:
faucet.valve_manager_base.ValveManagerBase
Manage 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_intervlan_routing_flows
(port, vlan, eth_src, eth_dst)[source]¶ - Returns flows for the eth_src_table that enable packets that have been
routed to be accepted from an adjacent DP and then switched to the destination. Eth_src_table flow rule to match on port, eth_src, eth_dst and vlan
-
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.
-