Skip to content

Commit

Permalink
scripts REFACTOR simplify based on sr updates
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Sep 18, 2023
1 parent b51ae42 commit 0f29193
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ set(LIBNETCONF2_DEP_SOVERSION 3.5.3)
set(LIBNETCONF2_DEP_SOVERSION_MAJOR 3)

# sysrepo required version
set(SYSREPO_DEP_VERSION 2.2.95)
set(SYSREPO_DEP_SOVERSION 7.18.0)
set(SYSREPO_DEP_VERSION 2.2.111)
set(SYSREPO_DEP_SOVERSION 7.19.7)
set(SYSREPO_DEP_SOVERSION_MAJOR 7)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -std=c99")
Expand Down
7 changes: 2 additions & 5 deletions scripts/merge_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,9 @@ CONFIG="<netconf-server xmlns=\"urn:ietf:params:xml:ns:yang:ietf-netconf-server\
</endpoint>
</listen>
</netconf-server>"
TMPFILE=`mktemp -u`
printf -- "$CONFIG" > $TMPFILE

# apply it to startup and running
$SYSREPOCFG --edit=$TMPFILE -d startup -f xml -m ietf-netconf-server -v2
echo "$CONFIG" | $SYSREPOCFG --edit -d startup -f xml -m ietf-netconf-server -v2
$SYSREPOCFG -C startup -m ietf-netconf-server -v2
# remove the tmp file
rm $TMPFILE

fi
7 changes: 2 additions & 5 deletions scripts/merge_hostkey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ CONFIG="<keystore xmlns=\"urn:ietf:params:xml:ns:yang:ietf-keystore\">
</asymmetric-key>
</asymmetric-keys>
</keystore>"
TMPFILE=`mktemp -u`
printf -- "$CONFIG" > $TMPFILE

# apply it to startup and running
$SYSREPOCFG --edit=$TMPFILE -d startup -f xml -m ietf-keystore -v2
echo "$CONFIG" | $SYSREPOCFG --edit -d startup -f xml -m ietf-keystore -v2
$SYSREPOCFG -C startup -m ietf-keystore -v2
# remove the tmp file
rm $TMPFILE

fi

0 comments on commit 0f29193

Please sign in to comment.