lib/lib-forj/lib/providers/hpcloud/network.rb in forj-1.0.0 vs lib/lib-forj/lib/providers/hpcloud/network.rb in forj-1.0.1

- old
+ new

@@ -94,11 +94,21 @@ # router driver def HPNetwork.query_router(oNetworkConnect, sQuery) oNetworkConnect.routers.all(sQuery) end - def HPNetwork.update_router(oRouter) + def HPNetwork.update_router(oRouters) oRouters.save + end + + def HPNetwork.create_router(oNetwork, hOptions) + oNetwork.routers.create(hOptions) + end + + # router interface + + def HPNetwork.add_interface(oRouter, oSubNetwork) + oRouter.add_interface(oSubNetwork.id, nil) end # Port driver def HPNetwork.query_port(oNetworkConnect, sQuery) oNetworkConnect.ports.all(sQuery)