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:
parent
619cef2ad6
commit
46c451c956
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue