* Builds and installs a new restconf library: libclixon_restconf.so and clixon_restconf.h * The restconf library can be included by a restconf plugin. * Example code in example/Makefile.in and example/restconf_lib.c * Authorization * Example extended with authorization * Test added with http basic authorization (test/test_auth.sh) * Documentation in FAQ.md * README.md extended with new yang, netconf, restconf, datastore, and auth sections.
31 lines
619 B
YANG
31 lines
619 B
YANG
module example {
|
|
prefix ex;
|
|
import ietf-ip {
|
|
prefix ip;
|
|
}
|
|
import ietf-routing {
|
|
prefix rt;
|
|
}
|
|
import ietf-netconf-acm {
|
|
prefix nacm; /* See RFC 6536 */
|
|
}
|
|
description
|
|
"Example code that includes ietf-ip and ietf-routing";
|
|
leaf basic_auth{
|
|
description "Basic user / password authentication as in HTTP basic auth";
|
|
type boolean;
|
|
default false;
|
|
}
|
|
list auth {
|
|
description "user / password entries. Valid if basic_auth=true";
|
|
key user;
|
|
leaf user{
|
|
description "User name";
|
|
type string;
|
|
}
|
|
leaf password{
|
|
description "Password";
|
|
type string;
|
|
}
|
|
}
|
|
}
|