nmstate/tests/cli_query_reapply.sh

8 lines
140 B
Bash
Raw Normal View History

#!/bin/bash -ex
TMP_FILE=$(mktemp /tmp/nmstate.XXXXXX.yaml)
nmstatectl show > $TMP_FILE 2>/dev/null
nmstatectl set $TMP_FILE 2>/dev/null