[dts] [PATCH V1] fix enable and disable ipv6 on FreeBSD
Liu, Yong
yong.liu at intel.com
Wed Sep 21 09:47:29 CEST 2016
Thanks gang. Applied into master branch.
On 09/21/2016 03:20 PM, xu,gang wrote:
> Signed-off-by: xu,gang <gangx.xu at intel.com>
> ---
> nics/net_device.py | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/nics/net_device.py b/nics/net_device.py
> index 39bd4e5..bbe4bed 100644
> --- a/nics/net_device.py
> +++ b/nics/net_device.py
> @@ -422,7 +422,11 @@ class NetDevice(object):
> self.__send_expect("ifconfig %s up" % intf, "# ")
>
> def enable_ipv6_freebsd(self, intf):
> - pass
> + self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" %
> + intf, "# ")
> + self.__send_expect("ifconfig %s down" % intf, "# ")
> + self.__send_expect("ifconfig %s up" % intf, "# ")
> +
>
> @nic_has_driver
> def disable_ipv6(self):
> @@ -443,7 +447,10 @@ class NetDevice(object):
> intf, "# ")
>
> def disable_ipv6_freebsd(self, intf):
> - pass
> + self.__send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=1" %
> + intf, "# ")
> + self.__send_expect("ifconfig %s down" % intf, "# ")
> + self.__send_expect("ifconfig %s up" % intf, "# ")
>
> @nic_has_driver
> def get_ipv6_addr(self):
More information about the dts
mailing list