diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-04 16:13:00 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-02-04 16:13:00 +0100 |
commit | 04288af4fcfa89427e8344790cb16942c06b77c5 (patch) | |
tree | ab7506a222acfc68dc78af682cf613dba6e3a598 /src | |
parent | 9ee41e63880ea52d058c90d15837d6ebd48f0a80 (diff) | |
download | vyos-1x-04288af4fcfa89427e8344790cb16942c06b77c5.tar.gz vyos-1x-04288af4fcfa89427e8344790cb16942c06b77c5.zip |
dhcp-relay: T2408: use Warning() on deprecated interface CLI node
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dhcp_relay.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/dhcp_relay.py b/src/conf_mode/dhcp_relay.py index 07ec1c7a3..7e702a446 100755 --- a/src/conf_mode/dhcp_relay.py +++ b/src/conf_mode/dhcp_relay.py @@ -18,6 +18,7 @@ import os from sys import exit +from vyos.base import Warning from vyos.config import Config from vyos.configdict import dict_merge from vyos.template import render @@ -61,6 +62,7 @@ def verify(relay): 'At least one DHCP relay server required.') if 'interface' in relay: + Warning('DHCP relay interface is DEPRECATED - please use upstream-interface and listen-interface instead!') if 'upstream_interface' in relay or 'listen_interface' in relay: raise ConfigError('<interface> configuration is not compatible with upstream/listen interface') else: |