Class: Dcmgr::VNet::TaskManagerFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/dcmgr/vnet/factories.rb

Class Method Summary collapse

Class Method Details

.create_task_manager(node) ⇒ Object



21
22
23
24
25
26
27
28
# File 'lib/dcmgr/vnet/factories.rb', line 21

def self.create_task_manager(node)
  manager = V::Netfilter::VNicProtocolTaskManager.new
  manager.enable_ebtables = node.manifest.config.enable_ebtables
  manager.enable_iptables = node.manifest.config.enable_iptables
  manager.verbose_commands = node.manifest.config.verbose_netfilter
  
  manager
end