From eac4429e2269005c2a3bc1188be4389b50f5bfb5 Mon Sep 17 00:00:00 2001 From: Daniel Foster Date: Tue, 21 Jan 2020 15:29:33 +0000 Subject: Remove 2 interface requirement from dhcp-relay More detail in Phabricator T1978. There is no requirement for dhcp-relay to have multiple interfaces configured. --- src/conf_mode/dhcp_relay.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/conf_mode/dhcp_relay.py b/src/conf_mode/dhcp_relay.py index 73e0153df..a1af2575f 100755 --- a/src/conf_mode/dhcp_relay.py +++ b/src/conf_mode/dhcp_relay.py @@ -105,11 +105,6 @@ def verify(relay): if relay is None: return None - if len(relay['interface']) < 2: - # We can only issue a warning otherwise old configurations might break - print('WARNING: At least two interfaces are required for DHCP relay\n' \ - 'to work\n') - if 'lo' in relay['interface']: raise ConfigError('DHCP relay does not support the loopback interface.') -- cgit v1.2.3