blob: 25d3d3adac4ab0e15e2eedc6cb4a1c2d2b1ff14f [file] [log] [blame]
Peter K. Leef4d38d32016-07-23 02:47:38 -07001module cord-core {
2
3 namespace "urn:onlab:cord";
4 prefix cord;
5 yang-version 1.1;
6
7 organization
8 "Open Networking Lab (CORD) / Corenova Technologies";
9
10 contact
11 "Larry Peterson <llp@onlab.us>
12 Peter K. Lee <peter@corenova.com>";
13
14 description
15 "This module contains a collection of core models for CORD.
16
17 Copyright (c) 2016 ON.LAB and the persons identified as authors of
18 the code. All rights reserved.
19
20 Redistribution and use in source and binary forms, with or without
21 modification, is permitted pursuant to, and subject to the license
22 terms of the Apache License, Version 2.0 which accompanies this
23 distribution, and is available at
24 (http://www.apache.org/licenses/LICENSE-2.0).";
25
26 revision 2016-07-22 {
27 description "Initial revision.";
28 }
29
30 import xos-core { prefix xos; }
31 import cord-subscriber { prefix csub; }
32 import corenova-node { prefix node; }
33
34 /*** primary configuration tree for this module ***/
35
36 container cord {
37 list subscriber {
38 uses csub:subscriber-controller;
39 key "id";
40
41 description
42 "Authorative list of all subscriber instances";
43
44 leaf humanReadableName {
45 config false;
46 type string {
47 pattern '^cordSubscriber-\w+$';
48 }
49 }
50 action delete;
51 }
52 }
53
54 // here we augment the /api/tenant/cord API configuration tree in 'xos' module
55 augment "/xos:api/xos:tenant" {
56 container cord { node:map "/cord:cord"; }
57 }
58
59}