#!/bin/bash | |
# setup default configuration for ietf-interfaces in startup DS | |
# This overwrites current networking setup | |
set -x | |
set -e | |
if [[ ${YANG_INLINE} == 1 ]]; then | |
sysrepocfg --datastore=startup --format=json --module=ietf-interfaces --import="${MIGRATIONS_DIRECTORY}/0002_ietf-interfaces_default-startup-config_sdn-inline.json" | |
else | |
sysrepocfg --datastore=startup --format=json --module=ietf-interfaces --import="${MIGRATIONS_DIRECTORY}/0002_ietf-interfaces_default-startup-config.json" | |
fi |