File: settings

package info (click to toggle)
neutron-dynamic-routing 2:15.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,168 kB
  • sloc: python: 7,878; sh: 268; makefile: 41
file content (78 lines) | stat: -rw-r--r-- 2,439 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#########################
#   Devstack Settings   #
#########################

# Each service you enable has the following meaning:
# q-dr       -  Add this config flag for Openstack Neutron server node
# q-dr-agent -  Add this config flag indicate that dynamic routing agent
#               will be running

# This can be overridden in the localrc file
DR_MODE=${DR_MODE:-allinone}

# DR_MODE is used to configure how devstack works with neutron-dynamic-routing.
# You can configure it in there ways:
#
# DR_MODE=allinone
# Use this mode if you want to run neutron server and q-dr-agent on same node.
# Useful for a single node deployment or on the control node of a multi-node
# devstack environment.
#
# DR_MODE=dr_plugin
# Use this to enable dr plugin extension on neutron server
#
# DR_MODE=dr_agent
# Use this for the nodes where you want to run q-dr-agent in a multi-node
# devstack environment.

case $DR_MODE in
    allinone)
        if is_neutron_legacy_enabled; then
            enable_service q-dr q-dr-agent
        else
            enable_service neutron-dr neutron-dr-agent
        fi
        ;;
    dr_plugin)
        if is_neutron_legacy_enabled; then
            enable_service q-dr
        else
            enable_service neutron-dr
        fi
        ;;
    dr_agent)
        if is_neutron_legacy_enabled; then
            enable_service q-dr-agent
        else
            enable_service neutron-dr-agent
        fi
        ;;
esac

# DR_SUPPORTED_PROTOCOLS specifies the list of protocols supported
# by neutron-dynamic-routing project. ONLY BGP is supported as of now
# and it's enabled by default. The protocols may include: "BGP OSPF ISIS RIP".
# It can be overridden in the localrc file.
DR_SUPPORTED_PROTOCOLS=${DR_SUPPORTED_PROTOCOLS:-"BGP"}


#######################
#   Binary Settings   #
#######################
NEUTRON_DYNAMIC_ROUTING_DIR=$DEST/neutron-dynamic-routing
DR_AGENT_BINARY=${DR_AGENT_BINARY:-"$NEUTRON_BIN_DIR/neutron-bgp-dragent"}


################################
#   Protocol Config Settings   #
################################


###########
#   BGP   #
###########
DR_AGENT_BGP_CONF_FILE=${DR_AGENT_BGP_CONF_FILE:-"$NEUTRON_CONF_DIR/bgp_dragent.ini"}
BGP_ROUTER_ID=${BGP_ROUTER_ID:-"127.0.0.1"}
BGP_PLUGIN=${BGP_PLUGIN:-"neutron_dynamic_routing.services.bgp.bgp_plugin.BgpPlugin"}
OSKEN_BGP_SPEAKER_DRIVER="neutron_dynamic_routing.services.bgp.agent.driver.os_ken.driver.OsKenBgpDriver"