blob: 7563aa7f62093d888c49f121acfe77c8be0c4e3a [file] [log] [blame]
Peter K. Leef4d38d32016-07-23 02:47:38 -07001#
2# Author: Peter K. Lee (peter@corenova.com)
3#
4# All rights reserved. This program and the accompanying materials
5# are made available under the terms of the Apache License, Version 2.0
6# which accompanies this distribution, and is available at
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9
10require('yang-js').register()
11
12module.exports = require('../schema/cord-subscriber.yang').bind {
13
14 '/{subscriber}':
15 # auto-computed properties
16 'device/subscriber': -> @get '../..'
17
18 # action bindings
19 'device/create': (input, resolve, reject) -> reject "TBD"
20 'device/update': (input, resolve, reject) -> reject "TBD"
21 'device/delete': (input, resolve, reject) -> reject "TBD"
22
23 '/{subscriber-controller}':
24 # auto-computed properties
25 'related': -> new Error "will return related objects once implemented"
26
27 # action bindings
28 'features/update': (input, resolve, reject) -> reject "TBD"
29 'identity/update': (input, resolve, reject) -> reject "TBD"
30
31}
32