fetch, get_ref, list
Raises:
6 7 8 9 10
# File 'lib/pec/network/subnet.rb', line 6 def fetch(cidr) subnet = list.find {|p| p["cidr"] == cidr } raise(Pec::Errors::Subnet, "cidr:#{cidr} is not fond!") unless subnet subnet end