blob: c8580941fa6f253c4b58d99b2a63eb934766885b [file] [log] [blame]
Khen Nursimuluf8abbc92016-11-04 19:56:45 -04001module cord-tenant {
2 namespace "urn:ietf:params:xml:ns:yang:cord-tenant";
3 prefix cord;
4 yang-version 1.1;
5
6 import xos-controller { prefix xos; }
7
8 organization
9 "Open Networking Lab (CORD) / Corenova Technologies";
10
11 contact
12 "Larry Peterson <llp@onlab.us>
13 Peter K. Lee <peter@corenova.com>";
14
15 description
16 "This module contains a collection of core models for CORD.
17
18 Copyright (c) 2016 ON.LAB and the persons identified as authors
19 of the code. All rights reserved.
20
21 Redistribution and use in source and binary forms, with or
22 without modification, is permitted pursuant to, and subject to
23 the license terms of the Apache License, Version 2.0 which
24 accompanies this distribution, and is available at
25 (http://www.apache.org/licenses/LICENSE-2.0).";
26
27 revision 2016-09-29 {
28 description "Combine CORD subscriber and augment XOS.";
29 }
30 revision 2016-07-22 {
31 description "Initial revision.";
32 }
33
34 identity cord-subscriber {
35 base xos:xos-subscriber;
36 }
37 /*
38 * Groupings
39 */
40 grouping subscriber {
41 /*
42 uses xos:subscriber {
43 refine kind { default cord-subscriber; }
44 }
45 */
46 leaf label {
47 config false;
48 type string {
49 pattern '^cordSubscriber-\w+$';
50 }
51 }
52 leaf status {
53 type enumeration {
54 enum "enabled" {
55 description "Enabled";
56 value 1;
57 }
58 enum "suspended" {
59 description "Suspended";
60 }
61 enum "delinquent" {
62 description "Delinquent";
63 }
64 enum "violation" {
65 description "Copyright Violation";
66 }
67 }
68 default enabled;
69 }
70 leaf demo {
71 type boolean;
72 default false;
73 }
74 }
75 /*
76 * Augmentations to XOS
77
78 augment "/xos:tenant" {
79 container cord {
80 description "Register cord as a tenant into XOS";
81 list subscriber {
82 key id;
83 description
84 "Each entry represents a unique CORD subscriber.";
85 uses cord:subscriber;
86 }
87 }
88 }
89 */
90}