From 83c1e1451d2cfac34cae4e4d7a9eb30a134436d0 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 22 Sep 2020 17:53:18 -0500 Subject: doc: Add initial YANG model for service mgmt --- doc/service.rst | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/service.rst b/doc/service.rst index 194b9c9..7770586 100644 --- a/doc/service.rst +++ b/doc/service.rst @@ -84,7 +84,7 @@ A service has at least the following properties: * ``starting``: the service is in the process of starting up. - * ``started``: the service is presently running. + * ``running``: the service is presently running. * ``stopping``: the service is in the process of stopping. @@ -223,4 +223,24 @@ restarted successfully, you must query the service's status. YANG Model ========== -TBD +Data model +---------- + +The data model for system services has the following structure: + +:: + + +--rw services + +--rw service* [name] + +--rw name string + +--ro description? string + +--rw enabled boolean + +--ro status service-status + +--ro start-time? yang:date-and-time + +Module +------ + +See `adelie-services.yang`_. + +.. _`adelie-services.yang`: ../yang-modules/adelie-services.yang -- cgit v1.2.3-70-g09d2