snap-nova-hypervisor/tests/nova-hypervisor_cleanup.sh
Pete Vander Giessen 6a11f694d4 Added config files to snap.
This is part of a transition to storing the config files in the snap,
rather than in snapstack.

Also updated .gitignore to ignore emacs temp files and snapcraft
cruft.

Change-Id: Ic08196c14649ed27178453335935acc7ea990455
2017-08-10 19:55:18 +00:00

14 lines
482 B
Bash
Executable File

#!/bin/bash
set -x
# Manually define aliases if snap isn't installed from snap store.
# Otherwise, snap store defines these aliases automatically.
snap aliases nova-hypervisor | grep neutron-ovs-cleanup || \
sudo snap alias nova-hypervisor.neutron-ovs-cleanup neutron-ovs-cleanup
snap aliases nova-hypervisor | grep neutron-netns-cleanup || \
sudo snap alias nova-hypervisor.neutron-netns-cleanup neutron-netns-cleanup
sudo neutron-ovs-cleanup
sudo neutron-netns-cleanup