blob: 6021966177a1b79cd0078b8b36ddefdb99ad3af5 [file] [log] [blame]
Peter K. Lee2bade4d2016-07-14 16:19:56 -07001module cord-device {
2 namespace "urn:cord:device";
3 prefix cord-dev;
4 yang-version 1.1;
5
6 organization
7 "Open Networking Lab (CORD) / Corenova Technologies";
8
9 contact
10 "Larry Peterson <llp@onlab.us>
11 Peter K. Lee <peter@corenova.com>";
12
13 import ietf-yang-types { prefix yang; }
14
15 revision 2016-07-14 {
16 description "Initial revision.";
17 }
18
19 typedef bandwidth {
20 type unit32;
21 range 1000000..max; // should be at least 1 Mbps?
22 units 'bps';
23 }
24
25 grouping device {
26 leaf mac { type yang:mac-address; mandatory true; }
27 leaf identity { type string; }
28
29 leaf subscriber {
30 type instance-identifier;
31 config false;
32 }
33
34 container features {
35 // how are the uplink/downlink speeds defined here related to 'subscriber'?
36 leaf uplink-speed {
37 type bandwidth;
38 default 1000000000;
39 }
40 leaf downlink-speed {
41 type bandwidth;
42 default 1000000000;
43 }
44 action update;
45 }
46 action save;
47 }
48}