NSX|V3: make use of agent socket

Use the socket. The platform no longer uses the TCP port and
now uses a socket in order to get the port details.

Change-Id: I16792e9e6f703ad5b0d9e51a402dcbaf968744ec
This commit is contained in:
Gary Kotton 2016-07-16 17:54:50 -07:00
parent 24ecb6d26a
commit c7d31a6e3f

View File

@ -37,8 +37,8 @@ source $TOP_DIR/lib/neutron_plugins/ovs_base
function setup_integration_bridge {
_neutron_ovs_base_setup_bridge $OVS_BRIDGE
sudo ovs-vsctl set-manager tcp:127.0.0.1:6632
sudo ovs-vsctl set bridge $OVS_BRIDGE external_ids:bridge-id=nsx-managed
sudo ovs-vsctl set-manager unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock
}
function is_neutron_ovs_base_plugin {
@ -85,6 +85,8 @@ function neutron_plugin_configure_dhcp_agent {
iniset $Q_DHCP_CONF_FILE DEFAULT enable_metadata_network True
iniset $Q_DHCP_CONF_FILE DEFAULT ovs_use_veth True
iniset $Q_DHCP_CONF_FILE DEFAULT ovs_integration_bridge $OVS_BRIDGE
iniset $Q_DHCP_CONF_FILE OVS ovsdb_connection unix:/var/run/vmware/nsx-agent/nsxagent_ovsdb.sock
iniset $Q_DHCP_CONF_FILE OVS ovsdb_interface vsctl
}
function neutron_plugin_configure_l3_agent {