#!/usr/bin/env ruby # -*- coding: utf-8 -*- $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'dcmgr/rubygems' require 'dcmgr' require 'isono' include Isono::Runner::RpcServer manifest = DEFAULT_MANIFEST.dup manifest.instance_eval do node_name 'hva' node_instance_id "#{Isono::Util.default_gw_ipaddr}" load_module Isono::NodeModules::NodeHeartbeat load_module Dcmgr::NodeModules::ServiceNetfilter load_module Dcmgr::NodeModules::InstanceMonitor config do |c| c.vm_data_dir = '/var/lib/vm' c.enable_ebtables = true c.enable_iptables = true c.hv_ifindex = 2 # ex. /sys/class/net/eth0/ifindex => 2 c.bridge_prefix = 'br' c.bridge_novlan = 'br0' c.verbose_netfilter = false c.packet_drop_log = false c.debug_iptables = false end load_config File.expand_path('config/hva.conf', app_root) end start(manifest) do endpoint "kvm-handle.#{@node.node_id}", Dcmgr::Rpc::HvaHandler end