Files
ubicloud/model/firewall_rule.rb
Furkan Sahin f3836aeab5 Add Firewall backend support
Now, the firewalls are part of the VM entity and its Vm::Nexus'
responsibility to apply firewall rule related changes. This requires a
couple of state additions, some removal and provisioning path changes.
2024-02-01 11:30:43 +01:00

14 lines
215 B
Ruby

# frozen_string_literal: true
require_relative "../model"
class FirewallRule < Sequel::Model
many_to_one :firewall, key: :firewall_id
include ResourceMethods
def ip6?
cidr.to_s.include?(":")
end
end