Browse Source

Add klish extension yang file

Serj Kalichev 1 year ago
parent
commit
cdd3eb51a7
2 changed files with 12 additions and 4 deletions
  1. 2 4
      Makefile.am
  2. 10 0
      yang/klish.yang

+ 2 - 4
Makefile.am

@@ -24,10 +24,8 @@ EXTRA_DIST = \
 	src/Makefile.am \
 	LICENCE \
 	README.md \
-	xml
+	xml \
+	yang
 
 include $(top_srcdir)/bin/Makefile.am
 include $(top_srcdir)/src/Makefile.am
-
-#xmldir = $(sysconfdir)/klish
-#dist_xml_DATA = xml/sysrepo.xml

+ 10 - 0
yang/klish.yang

@@ -0,0 +1,10 @@
+module klish {
+  namespace "http://klish.libcode.org/yang/klish";
+  prefix "klish";
+  description "Klish extensions. The klish-plugin-sysrepo can use it.";
+
+  extension completion {
+    argument "xpath";
+    description "XPath for autocompletion.";
+  }
+}