Пример #1
0
def main(opts, args):
    auth = AuthStack()
    print "From:", auth.from_auth_ip, " Username:"******" Project:", auth.from_tenant_name
    print "To:  ", auth.to_auth_ip, " Username:"******" Project:", auth.to_tenant_name

    if opts.scf:
        print "\n--------------- From Security Groups: ------------------------"
        nova_common.print_security_groups('from')
    if opts.Scf:
        print "\n--------------- To Security Groups: ------------------------"
        nova_common.print_security_groups('to')
    if opts.ff:
        print "\n--------------- From Flavors: ------------------------"
        nova_common.print_flavor_list('from')
    if opts.Ff:
        print "\n--------------- To Flavors: ------------------------"
        nova_common.print_flavor_list('to')
    if opts.vf:
        print "\n--------------- From VMs: ------------------------"
        vms = nova_common.print_vm_list_ids('from')
    if opts.vF:
        print "\n--------------- To VMs: ------------------------"
        vms = nova_common.print_vm_list_ids('to')
Пример #2
0
def main(opts, args):
    auth = AuthStack()
    print "From:", auth.from_auth_ip, " Username:"******" Project:", auth.from_tenant_name
    print "To:  ", auth.to_auth_ip, " Username:"******" Project:", auth.to_tenant_name

    if opts.scf:
        print "\n--------------- From Security Groups: ------------------------"
        nova_common.print_security_groups('from')
    if opts.Scf:
        print "\n--------------- To Security Groups: ------------------------"
        nova_common.print_security_groups('to')
    if opts.ff:
        print "\n--------------- From Flavors: ------------------------"
        nova_common.print_flavor_list('from')
    if opts.Ff:
        print "\n--------------- To Flavors: ------------------------"
        nova_common.print_flavor_list('to')
    if opts.vf:
        print "\n--------------- From VMs: ------------------------"
        vms = nova_common.print_vm_list_ids('from')
    if opts.vF:
        print "\n--------------- To VMs: ------------------------"
        vms = nova_common.print_vm_list_ids('to')
Пример #3
0
     print "To print user info, switch to admin user"
 print "\n--------------- To Public Keys: ---------------------"
 try:
     nova_common.print_keys('to')
 except Exception, e:
     print "To print public keys, switch to admin user"
 print "\n--------------- From Networks (with subnets): ---------------------"
 neutron_common.print_network_list('from')
 print "\n--------------- To Networks (with subnets): ------------------------"
 neutron_common.print_network_list('to')
 print "\n--------------- From Routers: ---------------------"
 neutron_common.print_routers('from')
 print "\n--------------- To Routers: ---------------------"
 neutron_common.print_routers('to')
 print "\n--------------- From Security Groups: ------------------------"
 nova_common.print_security_groups('from')
 print "\n--------------- To Security Groups: ------------------------"
 nova_common.print_security_groups('to')
 print "\n--------------- From Images: ------------------------"
 glance_common.print_images('from')
 print "\n--------------- To Images: ------------------------"
 to_images = glance_common.get_images('to')
 glance_common.print_images('to')
 print "\n--------------- From Flavors: ------------------------"
 nova_common.print_flavor_list('from')
 print "\n--------------- To Flavors: ------------------------"
 nova_common.print_flavor_list('to')
 print "\n--------------- From VMs: ------------------------"
 vms = nova_common.print_vm_list_ids('from')
 print "\n--------------- To VMs: ------------------------"
 vms = nova_common.print_vm_list_ids('to')
Пример #4
0
     print "To print user info, switch to admin user"
 print "\n--------------- To Public Keys: ---------------------"
 try:
     nova_common.print_keys('to')
 except Exception, e:
     print "To print public keys, switch to admin user"
 # print "\n--------------- From Networks (with subnets): ---------------------"
 # neutron_common.print_network_list('from')
 # print "\n--------------- To Networks (with subnets): ------------------------"
 # neutron_common.print_network_list('to')
 # print "\n--------------- From Routers: ---------------------"
 # neutron_common.print_routers('from')
 # print "\n--------------- To Routers: ---------------------"
 # neutron_common.print_routers('to')
 print "\n--------------- From Security Groups: ------------------------"
 nova_common.print_security_groups('from')
 print "\n--------------- To Security Groups: ------------------------"
 nova_common.print_security_groups('to')
 print "\n--------------- From Images: ------------------------"
 glance_common.print_images('from')
 print "\n--------------- To Images: ------------------------"
 to_images = glance_common.get_images('to')
 glance_common.print_images('to')
 print "\n--------------- From Flavors: ------------------------"
 nova_common.print_flavor_list('from')
 print "\n--------------- To Flavors: ------------------------"
 nova_common.print_flavor_list('to')
 print "\n--------------- From VMs: ------------------------"
 vms = nova_common.print_vm_list_ids('from')
 print "\n--------------- To VMs: ------------------------"
 vms = nova_common.print_vm_list_ids('to')