diff options
author | Hisaharu Ishii <ishii.hisaharu@lab.ntt.co.jp> | 2011-01-26 21:10:51 +0900 |
---|---|---|
committer | Hisaharu Ishii <ishii.hisaharu@lab.ntt.co.jp> | 2011-01-26 21:10:51 +0900 |
commit | 6273b2f95a905d98c217e98c1dbfc46b097b7533 (patch) | |
tree | ef41ea5a8c16da627f6bd0d6a80c01cfeb75d847 | |
parent | 2d97fa1fc2d2e98188e0ebab4e67d3d74ab7b146 (diff) | |
download | nova-6273b2f95a905d98c217e98c1dbfc46b097b7533.tar.gz nova-6273b2f95a905d98c217e98c1dbfc46b097b7533.tar.xz nova-6273b2f95a905d98c217e98c1dbfc46b097b7533.zip |
use 'ip addr change'
-rw-r--r-- | nova/network/linux_net.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/network/linux_net.py b/nova/network/linux_net.py index c55fb66f4..cdd1f666a 100644 --- a/nova/network/linux_net.py +++ b/nova/network/linux_net.py @@ -198,9 +198,9 @@ def ensure_bridge(bridge, interface, net_attrs=None): net_attrs['broadcast'], net_attrs['netmask'])) if(FLAGS.use_ipv6): - _execute("sudo ifconfig %s add %s up" % \ - (bridge, - net_attrs['cidr_v6'])) + _execute("sudo ip -f inet6 addr change %s dev %s" % + (net_attrs['cidr_v6'], bridge)) + _execute("sudo ifconfig %s up" % bridge) else: _execute("sudo ifconfig %s up" % bridge) if FLAGS.use_nova_chains: |