diff --git a/CHANGELOG.md b/CHANGELOG.md index b18ad0cc..3cd6a784 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,13 @@ ## 6.5.0 Expected: December 2023 +### API changes on existing protocol/config features +Users may have to change how they access the system + +* Moved and split install of main example config file + * From `/usr/local/etc/example.xml` to `/usr/local/etc/clixon/example.xml` + * Added `/usr/local/etc/clixon/example/autocli.xml` and `/usr/local/etc/clixon/example/restconf.xml` + ### C/CLI-API changes on existing features Developers may need to change their code diff --git a/docker/test/Makefile.in b/docker/test/Makefile.in index 7e186982..e119ac13 100644 --- a/docker/test/Makefile.in +++ b/docker/test/Makefile.in @@ -94,9 +94,7 @@ test: docker # Special-purpose memory test for snmp memsnmp: docker ./cleanup.sh ; ./start.sh # kill (ignore error) and the start it - sudo docker exec -t clixon-test bash -c 'sudo apk add --update valgrind; cd /usr/local/bin/test && pattern=test_snmp_union.sh ./mem.sh snmp' - -# sudo docker exec -t clixon-test bash -c 'sudo apk add --update valgrind; cd /usr/local/bin/test && pattern=test_snmp*.sh ./mem.sh snmp' + sudo docker exec -t clixon-test bash -c 'sudo apk add --update valgrind; cd /usr/local/bin/test && pattern=test_snmp*.sh ./mem.sh snmp' depend: diff --git a/example/main/Makefile.in b/example/main/Makefile.in index 7e02229f..89e48bc8 100644 --- a/example/main/Makefile.in +++ b/example/main/Makefile.in @@ -171,12 +171,13 @@ clean: distclean: clean rm -f Makefile *~ .depend -install: $(YANGSPECS) $(CLISPECS) $(PLUGINS) $(APPNAME).xml +install: $(YANGSPECS) $(CLISPECS) $(PLUGINS) $(APPNAME).xml restconf.xml autocli.xml [ -n "$$(getent group "$(CLICON_GROUP)")" ] || groupadd "$(CLICON_GROUP)" [ -n "$$(getent passwd "$(CLICON_USER)")" ] || useradd -M -s /usr/sbin/nologin -g "$(CLICON_GROUP)" "$(CLICON_USER)" - install -d -m 0755 $(DESTDIR)$(sysconfdir) - install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir) -# install -m 0644 $(APPNAME).xml $(DESTDIR)$(CLIXON_DEFAULT_CONFIG) + install -d -m 0755 $(DESTDIR)$(sysconfdir)/clixon + install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)/clixon + install -m 0644 autocli.xml $(DESTDIR)$(sysconfdir)/clixon + install -m 0644 restconf.xml $(DESTDIR)$(sysconfdir)/clixon install -d -m 0755 $(DESTDIR)$(datarootdir)/$(APPNAME)/yang install -d -m 0755 $(DESTDIR)$(YANG_INSTALLDIR) install -m 0644 $(YANGSPECS) $(DESTDIR)$(YANG_INSTALLDIR) @@ -196,7 +197,7 @@ endif install -d -m 0775 -g $(CLICON_GROUP) $(DESTDIR)$(localstatedir)/run # This is for PID and SOCK uninstall: - rm -rf $(DESTDIR)$(sysconfdir)/$(APPNAME).xml + rm -rf $(DESTDIR)$(sysconfdir)/clixon rm -rf $(DESTDIR)$(datarootdir)/$(APPNAME) rm -rf $(DESTDIR)$(localstatedir)/$(APPNAME) rm -rf $(DESTDIR)$(libdir)/$(APPNAME) diff --git a/example/main/example.xml.in b/example/main/example.xml.in index 4fd5bfd1..8eb1f5b7 100644 --- a/example/main/example.xml.in +++ b/example/main/example.xml.in @@ -1,5 +1,6 @@ - @SYSCONFDIR@/example.xml + @SYSCONFDIR@/clixon/example.xml + @SYSCONFDIR@/clixon/example ietf-netconf:startup ietf-netconf:confirmed-commit clixon-restconf:allow-auth-none @@ -24,21 +25,4 @@ disabled true false - - true - none - default
0.0.0.0
80false
-
- - false - kw-nokey - false - list container - true - - include clixon-example - clixon-example - enable - -