Commit 44b076dd authored by nanahira's avatar nanahira

add stop br script

parent 7b04eb3d
#!/bin/bash
INTERFACE=$1
scriptRoot={{ansible_user_dir}}/nextgen-router/scripts/$INTERFACE
set -x
$scriptRoot/pre-down.sh
if [[ -f "/run/dhclient.$INTERFACE.pid" ]]; then
kill $(cat /run/dhclient.$INTERFACE.pid)
fi
ip link del dev $INTERFACE
$scriptRoot/post-down.sh
rm /run/network/ifstate.$INTERFACE
true
...@@ -115,6 +115,11 @@ ...@@ -115,6 +115,11 @@
vars: vars:
br: '{{item}}' br: '{{item}}'
with_items: '{{bridges}}' with_items: '{{bridges}}'
- name: stop br script
template:
src: ./files/stop-br.sh.j2
dest: '{{ansible_user_dir}}/nextgen-router/stop-br.sh'
mode: 0755
- name: dhclient.conf - name: dhclient.conf
become: true become: true
copy: copy:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment