Conform to interface change of ODL node in Fuel Deployment
[sdnvpn.git] / odl-pipeline / lib / setup_jenkins_networks.sh
1 #!/bin/bash
2 #
3 # Copyright (c) 2017 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 set -e
10 cd "$( dirname "${BASH_SOURCE[0]}" )"
11 sudo ifdown enp0s4 2&>1 >> /dev/null /dev/null || true
12 sudo ifdown enp0s6 2&>1 >> /dev/null /dev/null || true
13 sudo cp ../templates/ifcfg-* /etc/network/interfaces.d/
14 sudo ifup enp0s4
15 sudo ifup enp0s6