#!/usr/bin/env bash # Create restconf backend config with a single socket # ipv4 no-ssl # The script defines a VARIABLE containing XML config # This is either inserted into the startup db, or installed in the backend using the # restconfigrun() function. # The config relies on clixon-restconf.yang being loaded. RESTCONFIG=$(cat < password default
0.0.0.0
80false
EOF ) # Install the config above on a backend restconfigrun() { new "netconf edit config" expecteof "$clixon_netconf -qf $cfg" 0 "$RESTCONFIG]]>]]>" "^]]>]]>$" new "netconf commit" expecteof "$clixon_netconf -qf $cfg" 0 "]]>]]>" "^]]>]]>$" }