module yumaworks-db-api { namespace "http://yumaworks.com/ns/yumaworks-db-api"; prefix "ydb"; import ietf-yang-patch { prefix yp; } import yumaworks-ycontrol { prefix yctl; } organization "YumaWorks, Inc."; contact "Support "; description "YumaPro Database API Sub-Agent message definitions. Copyright (c) 2014 YumaWorks, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, is permitted pursuant to, and subject to the license terms contained in, the BSD 3-Clause License http://opensource.org/licenses/BSD-3-Clause"; revision 2014-11-18 { description "Initial version for datastore access."; } augment "/yctl:ycontrol/yctl:payload" { container db-api { choice message-type { mandatory true; leaf register-request { type empty; description "Message type: subsys-request; Purpose: register the DB-API subsystem Expected Response Message: ok or error"; } container edit-request { description "Message type: subsys-request; Purpose: Ask the main server to accept an edit request to be added to the running configuration, and saved to NV-storage unless the :startup capability is supported. Expected Response Message: ok or error"; leaf target { type string; // target-path-string mandatory true; description "Identifies the target resource for the edit operation."; } uses yp:yang-patch; } // container edit-request } // choice message-type } // container db-api } // augment }