consumer/provider restructure
[packetcable.git] / packetcable-model / src / main / yang / packetcable.yang.old
1   module packetcable {
2
3    namespace "urn:opendaylight:node:packetcable";
4    prefix packetcable;
5
6
7     import ietf-yang-types      { prefix yang; }
8     import ietf-inet-types      { prefix inet; }
9     import packetcable-cmts {prefix cmts; }
10
11  
12
13     organization "Packetcabel ODL";
14
15     contact
16       "Thomas Kee <xsited@yahoo.com>";
17
18     description
19       "Packetcable plugin for the PCMM driver";
20
21     revision "2014-07-23" {
22       description
23         "Packetcable module.";
24     }
25
26         typdef pcmm-configuration 
27         {
28         leaf ip-address {
29             type inet:ip-address;
30             mandatory true;
31             description "The IP address of the controller to connect to.";
32         }
33         leaf port {
34             type inet:port-number;
35             default 3918;
36             description "The port number at the controller to connect to.";
37         }
38      }//typdef pcmm-configuration
39         
40     rpc init-connection 
41     {
42               description
43                 "Request connection with the CMTS";
44               input 
45               {
46                         leaf connectionConf 
47                         {
48                           type  pcmm-configuration ;
49                           description
50                             "cmts configuration";
51                         }
52                 }
53       } // rpc init-connection
54
55     rpc disconnect {
56              input 
57                       {
58                                 leaf connectionConf 
59                                 {
60                                   type  pcmm-configuration ;
61                                   description
62                                     "cmts configuration";
63                                 }
64                         }
65               description
66                 "Disconnect from CMTS.
67                    A 'resource-denied' error will be returned 
68                    if the packetcable service is disabled.";
69     }  // rpc disconnect
70
71   
72     notification connectedToCMTS {
73       description
74         "Indicates that the toaster has run of out bread.";
75     }  // notification connectedToCMTS
76     
77     notification desconnectedFromCMTS {
78       description
79         "Indicates that the toaster has run of out bread.";
80       leaf connectionConf {
81         type  pcmm-configuration ;
82                  description "cmts configuration";
83       }
84     }  // notification desconnectedFromCMTS
85     
86   }  // module packetcable