diff options
author | Rihab Banday <rihab.banday@ericsson.com> | 2020-07-21 10:49:45 +0000 |
---|---|---|
committer | Rihab Banday <rihab.banday@ericsson.com> | 2020-07-29 15:49:40 +0000 |
commit | af104f92b348c51e20f5fbf3be78f532864804ab (patch) | |
tree | 9cd3cac840ad665071fb6d80b6be058ff5f5bbfd /hw_config/intel/setup_network.sh | |
parent | bef45268b994c845859f08b40f276dfeef33276f (diff) |
Initial structure for e2e deployment scripting
This patch includes the initial skeleton of the e2e deployment
tooling. This is expected to evolve as further development progresses.
Change-Id: Ie1e334e672acb2213e8f6c2174506b685f826f98
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Diffstat (limited to 'hw_config/intel/setup_network.sh')
-rwxr-xr-x | hw_config/intel/setup_network.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hw_config/intel/setup_network.sh b/hw_config/intel/setup_network.sh new file mode 100755 index 0000000..a6ff6df --- /dev/null +++ b/hw_config/intel/setup_network.sh @@ -0,0 +1,11 @@ +# Adapt this script according to your network setup +# TODO Get networking info from PDF & IDF +# TODO Add support in infra engine to update nameserver, etc +# files with correct info +#!/bin/bash + +echo nameserver 8.8.8.8 > /etc/resolv.conf +sed -i 's/NM_CONTROLLED=yes/NM_CONTROLLED=no/g' /etc/sysconfig/network-scripts/ifcfg-eth2 +echo GATEWAY=10.10.190.1 >> /etc/sysconfig/network-scripts/ifcfg-eth2 +ifup eth2 + |