ovs

在网络节点和计算节点安装neutron-openvswitch-agent
yum install -y openstack-neutron-openvswitch
1、修改配置

Neutron
/etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]
type_drivers = flat,vlan,vxlan
mechanism_drivers = openvswitch,l2population

/etc/neutron/l3_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

/etc/neutron/dhcp_agent.ini

[DEFAULT]
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
ovs-vsctl add-br br-em2
ovs-vsctl add-port br-em2 em2

vi /etc/neutron/plugins/ml2/openvswitch_agent.ini

[ovs]
tunnel_bridge = br-tun
local_ip = 192.168.100.99
integration_bridge = br-int
enable_tunneling = True
bridge_mapping = default:br-em2

[agent]
tunnel_types = vxlan
l2_population = True

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

将neutron-openvswitch-agent设置开机自启动
systemctl enable neutron-openvswitch-agent.service

网络节点
重启服务
systemctl restart neutron-server.service neutron-openvswitch-agent.service neutron-dhcp-agent.service neutron-metadata-agent.service neutron-l3-agent.service

计算节点
systemctl enable neutron-openvswitch-agent.service
systemctl restart neutron-openvswitch-agent.service openstack-nova-compute.service

你可能感兴趣的:(ovs)