diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-12 23:31:43 -0500 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-11-30 21:42:23 -0600 |
commit | f24763c416a3726e1a20c76947c3cd6801a9d0f2 (patch) | |
tree | 25b4d666b706d96f129d26bfc411d36c07d3effa /src/conf_mode | |
parent | bda5d89e7483cae1ce74022b1065b53c669dd758 (diff) | |
download | vyos-1x-f24763c416a3726e1a20c76947c3cd6801a9d0f2.tar.gz vyos-1x-f24763c416a3726e1a20c76947c3cd6801a9d0f2.zip |
ddclient: T5612: Fix VRF support for ddclient service
Fix VRF support interface definition and configuration mode for ddclient
to actually capture the VRF name and pass it to the template.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/dns_dynamic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/dns_dynamic.py b/src/conf_mode/dns_dynamic.py index 4b1aed742..712889f68 100755 --- a/src/conf_mode/dns_dynamic.py +++ b/src/conf_mode/dns_dynamic.py @@ -19,6 +19,7 @@ import os from sys import exit from vyos.config import Config +from vyos.configverify import verify_interface_exists from vyos.template import render from vyos.utils.process import call from vyos import ConfigError @@ -61,6 +62,10 @@ def verify(dyndns): return None for address in dyndns['address']: + # If dyndns address is an interface, ensure it exists + if address != 'web': + verify_interface_exists(address) + # RFC2136 - configuration validation if 'rfc2136' in dyndns['address'][address]: for config in dyndns['address'][address]['rfc2136'].values(): |