· 7 years ago · May 02, 2018, 08:20 AM
1Customer.cx
2 thisCustomer = Customer.find(:first)
3 thisCustomersVF=thisCustomer.virtual_fabrics.find_by_name(fabric)
4 myFabric=Vfci::Fabric.new(
5 :access_key => thisCustomersVF.access_key,
6 :secret_key => thisCustomersVF.secret_key,
7 :vf_type => fabric
8 )
9 p myFabric
10
11 p myFabric.list_instances
12
13 myNode=myFabric.new_node(
14 :instance_id => opts[:hostname]
15 )
16 status = myNode.stop
17 puts "stop status: #{status}"
18 status = myNode.delete
19 #log.info("Completed VFCE Call to #{fabric}")
20 puts "del status: #{status}"