1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[OpenStack|Network] Display subnets as a child of Network

This commit is contained in:
Brandon Dunne 2014-01-15 09:56:42 -05:00
parent 619cef2ad6
commit 46c451c956

View file

@ -27,6 +27,10 @@ module Fog
identity ? update : create
end
def subnets
service.subnets.select {|s| s.network_id == self.id }
end
def create
merge_attributes(service.create_network(self.attributes).body['network'])
self