blob: b21251c6e90c2e0de607756ab186bc3ca9da4693 [file] [log] [blame]
#!/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