X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fipv6.py;fp=plugins%2Fipv6.py;h=c97f2ff605d1633fc9073b4f6c12cfea2b722d9d;hb=8ab3434424c269cc2ec7cc47f7705099c9462117;hp=a9df0e7c22ac6dac18ff4f50b577bdac46c3b851;hpb=99b060ddf18bc5f78c976b269da9c9afe65af1e5;p=nodemanager.git diff --git a/plugins/ipv6.py b/plugins/ipv6.py index a9df0e7..c97f2ff 100644 --- a/plugins/ipv6.py +++ b/plugins/ipv6.py @@ -12,7 +12,7 @@ Requirements: * The prefix specified on 'sliversipv6prefix' tag must be at least 64 It should vary between 1 and 64, since it is the minimum amount of bits to have native IPv6 auto-configuration. -* The ipv6_address on 'sliversipv6prefix' tag can be any valid IPv6 address. +* The ipv6_address in 'sliversipv6prefix' tag value can be any valid IPv6 address. E.g., 2002:1000:: or 2002:1000::1 * It is the node manager/admin responsibility to properly set the IPv6 routing, since slivers should receive/send any kind of traffic. @@ -24,11 +24,17 @@ import socket import re import tools -import libvirt import uuid -from sliver_libvirt import Sliver_Libvirt from xml.dom.minidom import parseString +# TODO: is there anything better to do if the "libvirt", "sliver_libvirt", +# and are not in place in the VS distro? +try: + import libvirt + from sliver_libvirt import Sliver_Libvirt +except: + logger.log("Could not import 'sliver_lxc' or 'libvirt'.") + priority=4 radvd_conf_file = '/etc/radvd.conf'