openstack-ansible-lxc_hosts/templates/lxc-net-redhat-postdown.cfg.j2

8 lines
236 B
Django/Jinja

#!/usr/bin/env bash
if [ "{{ item.interface }}" == "{{ lxc_net_bridge }}" ];then
if [ "{{ lxc_net_nat }}" == "True" ];then
/usr/local/bin/lxc-system-manage dnsmasq-stop
/usr/local/bin/lxc-system-manage iptables-remove
fi
fi