class Openstack::QuantumClient::FilteredRange
Public Class Methods
new(quantum_url)
click to toggle source
# File lib/openstack-quantum-client/l2l3/filtered_range.rb, line 4 def initialize(quantum_url) @quantum_url = "#{quantum_url}/firewalls/%s/filtered_ranges.json" end
Public Instance Methods
create(firewall_uuid, address, mask)
click to toggle source
# File lib/openstack-quantum-client/l2l3/filtered_range.rb, line 8 def create(firewall_uuid, address, mask) post_to_quantum( @quantum_url % firewall_uuid.to_s, {"filtered_range" => {"address" => address, "mask" => mask}} ) end