29d8f95ac5
Add a class that monitors a DF DB class by polling it every given number of seconds, and sends a pub/sub event upon a change. Add configuration options for that class. Add testing for that class + pub/sub. Co-Authored-By: Eran Gampel <eran@gampel.net> Change-Id: Id6383b4401a87f9d0d7ede655533276e531fa640
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
DRAGONFLOW_REPO=${DRAGONFLOW_REPO:-git://github.com/openstack/dragonflow.git}
|
|
NETWORKING_OVN_REPO=${NETWORKING_OVN_REPO:-git://github.com/openstack/networking-ovn.git}
|
|
DRAGONFLOW_DIR=$DEST/dragonflow
|
|
DRAGONFLOW_BRANCH=${DRAGONFLOW_BRANCH:-master}
|
|
|
|
DF_L3_SERVICE_PLUGIN="dragonflow.neutron.services.l3.l3_controller_plugin.ControllerL3ServicePlugin"
|
|
|
|
DF_L2_AGENT=$DRAGONFLOW_DIR/dragonflow/neutron/agent/l2/ovs_dragonflow_neutron_agent.py
|
|
DF_L3_AGENT=$DRAGONFLOW_DIR/dragonflow/neutron/agent/l3_sdn_agent.py
|
|
DF_LOCAL_CONTROLLER=$DRAGONFLOW_DIR/dragonflow/controller/df_local_controller.py
|
|
|
|
DF_L2_RESPONDER=${DF_L2_RESPONDER:-'True'}
|
|
DF_PUB_SUB=${DF_PUB_SUB:-'False'}
|
|
|
|
Q_DF_CONTROLLER_PORT=${Q_DF_CONTROLLER_PORT:-'6633'}
|
|
Q_DF_CONTROLLER_PROTOCOL=${Q_DF_CONTROLLER_PROTOCOL:-'tcp'}
|
|
Q_DF_CONTROLLER_IP=${Q_DF_CONTROLLER_IP:-''$HOST_IP''}
|
|
Q_DF_CONTROLLER_IP=''$Q_DF_CONTROLLER_PROTOCOL':'$Q_DF_CONTROLLER_IP':'$Q_DF_CONTROLLER_PORT''
|
|
|
|
export PYTHONPATH=$PYTHONPATH:$DRAGONFLOW_DIR
|
|
|
|
DF_IS_MONITOR_TABLES=${DF_IS_MONITOR_TABLES:-"$DF_PUB_SUB"}
|
|
MONITOR_TABLES=${MONITOR_TABLES:-"chassis"}
|
|
DF_MONITOR_TABLE_POLL_TIME=${DF_MONITOR_TABLE_POLL_TIME:-30}
|