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