VinodKumarS-Huawei | 95169ea | 2016-06-01 14:30:22 +0530 | [diff] [blame] | 1 | |
| 2 | module ietf-sd-onos-service-types { |
| 3 | |
| 4 | namespace "urn:ietf:params:xml:ns:yang:ietf-sd-onos-service-types"; |
| 5 | prefix service-types ; |
| 6 | |
| 7 | grouping qos-if-car { |
| 8 | description "qos parameter." ; |
| 9 | list qos-if-car { |
| 10 | key "direction"; |
| 11 | description "cars qos policy." ; |
| 12 | leaf direction { |
| 13 | type enumeration { |
| 14 | enum inbound{ |
| 15 | value 0 ; |
| 16 | description "inbound." ; |
| 17 | } |
| 18 | enum outbound { |
| 19 | value 1 ; |
| 20 | description "outbound." ; |
| 21 | } |
| 22 | } |
| 23 | description "qos for interface car" ; |
| 24 | } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | container qos-policy { |
| 29 | description "The qos policy of the vpn service." ; |
| 30 | container qos-if-cars { |
| 31 | description "qos policy if car." ; |
| 32 | list qos-if-car { |
| 33 | key "direction"; |
| 34 | uses qos-if-car; |
| 35 | description "List of qos parameters." ; |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | rpc close-l3vpn { |
| 41 | description "Close l3vpn." ; |
| 42 | input { |
| 43 | leaf l3vpn-id { |
| 44 | type string; |
| 45 | description "vpn id." ; |
| 46 | } |
| 47 | container ac-status { |
| 48 | description "Access status of the vpn." ; |
| 49 | list acs{ |
| 50 | key "id"; |
| 51 | description "Access information." ; |
| 52 | leaf id { |
| 53 | type string; |
| 54 | description "Access id." ; |
| 55 | } |
| 56 | leaf admin-status { |
| 57 | type string; |
| 58 | description "Administration status." ; |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |