summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface-definitions/service-pppoe.xml.in6
-rwxr-xr-xsrc/conf_mode/service-pppoe.py2
2 files changed, 7 insertions, 1 deletions
diff --git a/interface-definitions/service-pppoe.xml.in b/interface-definitions/service-pppoe.xml.in
index bf6023a82..7f93a6e2f 100644
--- a/interface-definitions/service-pppoe.xml.in
+++ b/interface-definitions/service-pppoe.xml.in
@@ -560,6 +560,9 @@
<format>require</format>
<description>Require IPv4 negotiation</description>
</valueHelp>
+ <completionHelp>
+ <list>deny allow prefer require</list>
+ </completionHelp>
</properties>
</leafNode>
<leafNode name="ipv6">
@@ -585,6 +588,9 @@
<format>require</format>
<description>Require IPv6 negotiation</description>
</valueHelp>
+ <completionHelp>
+ <list>deny allow prefer require</list>
+ </completionHelp>
</properties>
</leafNode>
<leafNode name="ipv6-intf-id">
diff --git a/src/conf_mode/service-pppoe.py b/src/conf_mode/service-pppoe.py
index b4a22b1cd..4090cb953 100755
--- a/src/conf_mode/service-pppoe.py
+++ b/src/conf_mode/service-pppoe.py
@@ -49,7 +49,7 @@ pppoe
radius
{% endif %}
ippool
-{% if client_ipv6_pool %}
+{% if ppp_options['ipv6'] != 'deny' %}
ipv6pool
ipv6_nd
ipv6_dhcp