X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsamples%2Fclustering-test-app%2Fmodel%2Fsrc%2Fmain%2Fyang%2Fcar-purchase.yang;h=5497732b1df31dd11357e706b9e6dc0050a03cc1;hp=f6a8797098b65a7f7e2e4c3c01d49c22bddc8b26;hb=7ab6c458bfe29cc92634e969bb23bf796abffb8c;hpb=b5b204bafd8ee18692fc023cb2eae6e123369340 diff --git a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car-purchase.yang b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car-purchase.yang index f6a8797098..5497732b1d 100644 --- a/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car-purchase.yang +++ b/opendaylight/md-sal/samples/clustering-test-app/model/src/main/yang/car-purchase.yang @@ -1,60 +1,58 @@ module car-purchase { + yang-version 1; - yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-purchase"; - namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sal-clustering-it:car-purchase"; + prefix cp; - prefix cp; + import car { prefix "car"; revision-date 2014-08-18; } + import people { prefix "person"; revision-date 2014-08-18; } + import yang-ext {prefix "ext"; revision-date "2013-07-09";} - import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; } - import car { prefix "car"; revision-date 2014-08-18; } - import people { prefix "person"; revision-date 2014-08-18; } - import yang-ext {prefix "ext"; revision-date "2013-07-09";} + organization "Netconf Central"; - organization "Netconf Central"; + contact + "Harman Singh "; - contact - "Harman Singh "; + description + "YANG model for car purchase for test application"; + revision "2014-08-18" { description - "YANG model for car purchase for test application"; + "Clustering sample app"; + } - revision "2014-08-18" { - description - "Clustering sample app"; + rpc buy-car { + description + "buy a new car"; + input { + leaf person { + ext:context-reference "person:person-context"; + type person:person-ref; + description "A reference to a particular person."; + } + + leaf car-id { + type car:car-id; + description "identifier of car."; + } + leaf person-id { + type person:person-id; + description "identifier of person."; + } } + } - rpc buy-car { - description - "buy a new car"; - input { - leaf person { - ext:context-reference "person:person-context"; - type person:person-ref; - description "A reference to a particular person."; - } - - leaf car-id { - type car:car-id; - description "identifier of car."; - } - leaf person-id { - type person:person-id; - description "identifier of person."; - } - } - } - - notification carBought { - description - "Indicates that a person bought a car."; - leaf car-id { - type car:car-id; - description "identifier of car."; - } - leaf person-id { - type person:person-id; - description "identifier of person."; - } - } -} \ No newline at end of file + notification carBought { + description + "Indicates that a person bought a car."; + leaf car-id { + type car:car-id; + description "identifier of car."; + } + leaf person-id { + type person:person-id; + description "identifier of person."; + } + } +}