diff --git a/lib/fog/openstack/models/network/network.rb b/lib/fog/openstack/models/network/network.rb index 4bafd7172..ab88f5e33 100644 --- a/lib/fog/openstack/models/network/network.rb +++ b/lib/fog/openstack/models/network/network.rb @@ -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