diff options
| author | Cory Wright <cory.wright@rackspace.com> | 2011-04-18 13:30:54 -0400 |
|---|---|---|
| committer | Cory Wright <cory.wright@rackspace.com> | 2011-04-18 13:30:54 -0400 |
| commit | c134d3c9bfb5a9d789776b243b8d6e4283fb3f80 (patch) | |
| tree | 50cc66ff77f137d1379588f6249e5a9aa184cebf /plugins | |
| parent | a626c746f41e670a403d009f4f48a2bc73b65d2e (diff) | |
| download | nova-c134d3c9bfb5a9d789776b243b8d6e4283fb3f80.tar.gz nova-c134d3c9bfb5a9d789776b243b8d6e4283fb3f80.tar.xz nova-c134d3c9bfb5a9d789776b243b8d6e4283fb3f80.zip | |
calc link local
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py b/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py index b59cc4d0b..08d7a3859 100755 --- a/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py +++ b/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py @@ -25,6 +25,7 @@ import subprocess import sys # This is written to Python 2.4, since that is what is available on XenServer +import netaddr import simplejson as json from novalib import execute, execute_get_output @@ -84,8 +85,8 @@ def main(dom_id, command, net_type, only_this_vif=None): if net_type in ('ipv6', 'all'): for ip6 in data['ip6s']: params.update({'VIF_GLOBAL_IPv6': ip6['ip']}) - # TODO(dubs) calculate v6 link local addr - #params.update({'VIF_LOCAL_IPv6': XXX}) + mac64 = netaddr.EUI(mac).eui64() + params.update({'VIF_LOCAL_IPv6': mac64.ipv6_link_local()}) apply_ovs_ipv6_flows(command, bridge, params) |
