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.
14 lines
215 B
Ruby
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
|