lib/down.rb in forj-0.0.40 vs lib/down.rb in forj-0.0.41

- old
+ new

@@ -33,24 +33,26 @@ # # Down module # module Down - def down(oFC, name) + def down(oConfig, name) begin initial_msg = 'deleting forge "%s"' % [name] Logging.info(initial_msg) - Compute.delete_forge(name) + oFC=ForjConnection.new(oConfig) - router = Network.get_router(oFC, 'private-ext') - subnet = Network.get_subnet(oFC, name) - Network.delete_router_interface(subnet.id, router) + Compute.delete_forge(oFC, name) - Network.delete_subnet(oFC, subnet.id) - network = Network.get_network(oFC, name) - Network.delete_network(oFC, network.name) + #~ router = Network.get_router(oFC, 'private-ext') + #~ subnet = Network.get_subnet(oFC, name) + #~ Network.delete_router_interface(subnet.id, router) +#~ + #~ Network.delete_subnet(oFC, subnet.id) + #~ network = Network.get_network(oFC, name) + #~ Network.delete_network(oFC, network.name) rescue SystemExit, Interrupt Logging.error('process interrupted by user') rescue Exception => e Logging.error("%s\n%s" % [e.message, e.backtrace.join("\n")])