[[local|localrc]]
DATABASE_PASSWORD=abc123
ADMIN_PASSWORD=abc123
MYSQL_PASSWORD=$DATABASE_PASSWORD
RABBIT_PASSWORD=abc123
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=abc123

Q_SERVICE_PLUGIN_CLASSES=neutron.services.l3_router.l3_router_plugin.L3RouterPlugin,group_policy,ncp,qos


# Using group-policy branches
# ---------------------------

GIT_BASE=${GIT_BASE:-https://opendev.org}

#GBPSERVICE_REPO=${GIT_BASE}/x/group-based-policy.git
GBPSERVICE_BRANCH=stable/queens
#GBPSERVICE_REPO=https://review.openstack.org/openstack/group-based-policy
#GBPSERVICE_BRANCH=refs/changes/54/240954/47

GBPCLIENT_REPO=${GIT_BASE}/x/python-group-based-policy-client.git
GBPCLIENT_BRANCH=stable/queens
#GBPCLIENT_REPO=https://review.openstack.org/openstack/python-group-based-policy-client
#GBPCLIENT_BRANCH=refs/changes/55/435155/1

GBPUI_REPO=${GIT_BASE}/x/group-based-policy-ui.git
GBPUI_BRANCH=stable/queens
#GBPUI_REPO=https://review.openstack.org/openstack/group-based-policy-ui
#GBPUI_BRANCH=refs/changes/02/136802/14

GBPHEAT_REPO=${GIT_BASE}/x/group-based-policy-automation.git
GBPHEAT_BRANCH=stable/queens
#GBPHEAT_REPO=
#GBPHEAT_BRANCH=

# Enable neutron for group-policy-poc
# -----------------------------------
disable_service n-net
#disable_service h-eng
#disable_service h-api
#disable_service h-api-cfn
#disable_service h-api-cw
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service group-policy
disable_service tempest
ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng

# The following should be uncommented for FWAAS
# enable_plugin neutron-fwaas http://opendev.org/openstack/neutron-fwaas.git
# enable_service q-fwaas-v1

LOG_COLOR=False
DEST=/opt/stack/new
LOGFILE=$DEST/logs/stack.sh.log
SKIP_EXERCISES=volumes,trove,swift,sahara,euca,bundle,boot_from_volume,aggregates,zaqar,client-env,client-args,sec_groups,neutron-adv-test,floating_ips,horizon

#OFFLINE=True
RECLONE=True

# Group-based Policy configuration
# Comment the lines below if you don't want to configure the datapath
# and use the dummy driver.
[[post-config|/etc/nova/nova.conf]]
[neutron]
allow_duplicate_networks = True

#[[post-config|/etc/heat/heat.conf]]
#[DEFAULT]
#plugin_dirs=/opt/stack/gbpautomation/gbpautomation/heat

[[post-config|/etc/neutron/neutron.conf]]
[group_policy]
policy_drivers=implicit_policy,resource_mapping,chain_mapping
extension_drivers=proxy_group

[servicechain]
servicechain_drivers = simplechain_driver
#servicechain_drivers = chain_with_two_arm_appliance_driver

[node_composition_plugin]
node_plumber = stitching_plumber
node_drivers = heat_node_driver

[quotas]
default_quota = -1
quota_network = -1
quota_subnet = -1
quota_port = -1
quota_security_group = -1
quota_security_group_rule = -1
quota_router = -1
quota_floatingip = -1

[agent]
extensions = qos

[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[ml2]
extension_drivers = qos
