-
Notifications
You must be signed in to change notification settings - Fork 2
/
neutron-nt-setup.sh
27 lines (22 loc) · 1.24 KB
/
neutron-nt-setup.sh
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
#!/bin/bash
clear
echo "Installing required packages for Network Node..."
sudo apt -y install neutron-plugin-ml2 neutron-linuxbridge-agent neutron-l3-agent neutron-dhcp-agent neutron-metadata-agent python-neutronclient
echo "Configuring as a Network node..."
sudo mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf.org
sudo cp /devstack-setup/config/neutron/neutron-ct.conf /etc/neutron/neutron.conf
sudo cp /devstack-setup/config/neutron/l3_agent.ini /etc/neutron/l3_agent.ini
sudo cp /devstack-setup/config/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini
sudo cp /devstack-setup/config/neutron/metadata_agent.ini /etc/neutron/metadata_agent.ini
sudo cp /devstack-setup/config/neutron/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini
sudo cp /devstack-setup/config/neutron/linuxbridge_agent-nt.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini
echo "Changing right access..."
sudo chmod 640 /etc/neutron/neutron.conf
sudo chgrp neutron /etc/neutron/neutron.conf
echo "Creating symbolic link..."
sudo ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
echo "Restarting Neutron..."
for service in l3-agent dhcp-agent metadata-agent linuxbridge-agent; do
sudo systemctl restart neutron-$service
sudo systemctl enable neutron-$service
done