diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-04-03 20:11:59 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-04-03 20:11:59 +0200 |
commit | d5b113923aaa776f89749c820d6283b593e80c3a (patch) | |
tree | fb0c842483c9ba84f39ab151e7c9bfa8da485464 /src/conf_mode/dhcpv6_relay.py | |
parent | c6988bb4110541478dad74d0b892fd4643ed530a (diff) | |
download | vyos-1x-d5b113923aaa776f89749c820d6283b593e80c3a.tar.gz vyos-1x-d5b113923aaa776f89749c820d6283b593e80c3a.zip |
[dhcpv6-relay] T1322: support multiple upstream servers
Add support for relaying a DHCPv6 packet to multiple servers on one upstream
interface.
Diffstat (limited to 'src/conf_mode/dhcpv6_relay.py')
-rwxr-xr-x | src/conf_mode/dhcpv6_relay.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conf_mode/dhcpv6_relay.py b/src/conf_mode/dhcpv6_relay.py index 2b2b1f48b..8b8ceb358 100755 --- a/src/conf_mode/dhcpv6_relay.py +++ b/src/conf_mode/dhcpv6_relay.py @@ -60,9 +60,10 @@ def get_config(): if conf.exists('upstream-interface'): interfaces = conf.list_nodes('upstream-interface') for intf in interfaces: - addr = conf.return_value('upstream-interface {0} address'.format(intf)) - server = addr + '%' + intf - relay['upstream_addr'].append(server) + addresses = conf.return_values('upstream-interface {0} address'.format(intf)) + for addr in addresses: + server = addr + '%' + intf + relay['upstream_addr'].append(server) # Maximum hop count. When forwarding packets, dhcrelay discards packets # which have reached a hop count of COUNT. Default is 10. Maximum is 255. |