Contrail, openstack
# Cleanup
## contrail ports
for i in `contrail-api-cli --os-auth-plugin v2password --host 192.168.1.104 --port 8082 --protocol http --insecure ls`; do
contrail-api-cli --os-auth-plugin v2password --host 192.168.1.104 --port 8082 --protocol http --insecure ls -l $i | grep tempest;
done
for i in `contrail-api-cli --os-auth-plugin v2password --host 192.168.1.104 --port 8082 --protocol http --insecure ls -l project | grep tempest | awk '{print $1}'`; do
contrail-api-cli --os-auth-plugin v2password --host 192.168.1.104 --port 8082 --protocol http --insecure rm -rf $i;
done
## neutron ports/net
neutron port-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron port-delete {}
neutron subnet-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron subnet-delete {}
neutron subnet-list --all-tenants | grep "100.FIXME" | awk '{print $2}' | xargs -i neutron subnet-delete {}
neutron net-list --all-tenants | grep tempest | awk '{print $2}' | xargs -i neutron net-delete {}
neutron net-list --all-tenants | grep snat-si-left_snat_ | awk '{print $2}' | xargs -i neutron net-delete {}