Skip to content

Commit 26b17d3

Browse files
authored
Merge pull request #2549 from anarkiwi/master
Some OFAs require minimum idle time so add config check.
2 parents 8086637 + 23ad788 commit 26b17d3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

faucet/dp.py

+1
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ def check_config(self):
329329
'invalid MAC address %s' % self.faucet_dp_mac))
330330
test_config_condition(not (self.interfaces or self.interface_ranges), (
331331
'DP %s must have at least one interface' % self))
332+
test_config_condition(self.timeout < 15, ('timeout must be > 15'))
332333
# To prevent L2 learning from timing out before L3 can refresh
333334
test_config_condition(not (self.arp_neighbor_timeout < (self.timeout / 2)), (
334335
'L2 timeout must be > ARP timeout * 2'))

tests/integration/mininet_tests.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1881,15 +1881,15 @@ class FaucetSingleHostsTimeoutPrometheusTest(FaucetUntaggedTest):
18811881
If the maximum number of MACs at any one time is 5, then only 5 values
18821882
should be exported, even if over 2 hours, there are 100 MACs learnt
18831883
"""
1884-
TIMEOUT = 10
1884+
TIMEOUT = 15
18851885
CONFIG_GLOBAL = """
18861886
vlans:
18871887
100:
18881888
description: "untagged"
18891889
"""
18901890

18911891
CONFIG = """
1892-
timeout: 10
1892+
timeout: 15
18931893
arp_neighbor_timeout: 4
18941894
nd_neighbor_timeout: 4
18951895
ignore_learn_ins: 0
@@ -1993,7 +1993,7 @@ class FaucetSingleHostsNoIdleTimeoutPrometheusTest(FaucetSingleHostsTimeoutProme
19931993
"""Test broken reset idle timer on flow refresh workaround."""
19941994

19951995
CONFIG = """
1996-
timeout: 10
1996+
timeout: 15
19971997
arp_neighbor_timeout: 4
19981998
nd_neighbor_timeout: 4
19991999
ignore_learn_ins: 0

0 commit comments

Comments
 (0)