From 416f9cf177801cecfe39f5249d73e3a4a85f0bbd Mon Sep 17 00:00:00 2001 From: Niko Hermanns Date: Wed, 30 Nov 2016 11:59:44 +0100 Subject: adding odl-pipeline Change-Id: I1c08883f0d68a61ce9e10c5596aec1a259eed71f Signed-off-by: Nikolas Hermanns --- odl-pipeline/lib/setup_jenkins_networks.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 odl-pipeline/lib/setup_jenkins_networks.sh (limited to 'odl-pipeline/lib/setup_jenkins_networks.sh') diff --git a/odl-pipeline/lib/setup_jenkins_networks.sh b/odl-pipeline/lib/setup_jenkins_networks.sh new file mode 100644 index 0000000..d74b62e --- /dev/null +++ b/odl-pipeline/lib/setup_jenkins_networks.sh @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +cd "$( dirname "${BASH_SOURCE[0]}" )" +sudo ifdown enp0s4 2&>1 >> /dev/null /dev/null || true +sudo ifdown enp0s6 2&>1 >> /dev/null /dev/null || true +sudo cp ../templates/ifcfg-* /etc/network/interfaces.d/ +sudo ifup enp0s4 +sudo ifup enp0s6 \ No newline at end of file -- cgit 1.2.3-korg