~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/ipv6/api.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
FLAGS = flags.FLAGS
27
27
FLAGS.register_opt(ipv6_backend_opt)
 
28
IMPL = None
28
29
 
29
30
 
30
31
def reset_backend():
31
32
    global IMPL
32
33
    IMPL = utils.LazyPluggable('ipv6_backend',
33
 
                rfc2462='nova.ipv6.rfc2462',
34
 
                account_identifier='nova.ipv6.account_identifier')
 
34
               rfc2462='nova.ipv6.rfc2462',
 
35
               account_identifier='nova.ipv6.account_identifier')
35
36
 
36
37
 
37
38
def to_global(prefix, mac, project_id):
41
42
def to_mac(ipv6_address):
42
43
    return IMPL.to_mac(ipv6_address)
43
44
 
 
45
 
44
46
reset_backend()