diff options
| author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-12 23:31:43 -0500 | 
|---|---|---|
| committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-23 18:23:32 -0500 | 
| commit | 1bc78d73410a367cdc5b511ef746dd1be148b1b6 (patch) | |
| tree | cc3b1210bf1413ae9c3c7cc6acadd941b7f41a34 /src | |
| parent | 7253377e754ed8bc95cbe59840ed3a70c6945b93 (diff) | |
| download | vyos-1x-1bc78d73410a367cdc5b511ef746dd1be148b1b6.tar.gz vyos-1x-1bc78d73410a367cdc5b511ef746dd1be148b1b6.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')
| -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(): | 
