janani b | f7060cd | 2017-03-28 19:06:30 +0530 | [diff] [blame] | 1 | /* |
| 2 | WARNING: |
| 3 | This yang model is just for fuction ONOS opensource project demo purpose only, |
| 4 | And is subject to change in future, Huawei does not commit provide compatibilty |
| 5 | in commercial product. |
| 6 | */ |
| 7 | module ne-bgpcomm { |
| 8 | namespace "ne-bgpcomm"; |
| 9 | prefix bgpcomm; |
| 10 | import ne-bgpcomm-type { |
| 11 | prefix bgpcomm-type; |
| 12 | } |
| 13 | organization "Huawei Technologies Co., Ltd"; |
| 14 | contact "Huawei Industrial Base |
| 15 | Bantian, Longgang |
| 16 | Shenzhen 518129 |
| 17 | People's Republic of China |
| 18 | Website: http://www.huawei.com |
| 19 | Email: support@huawei.com"; |
| 20 | description "ne-bgpcomm yang"; |
| 21 | revision "2014-12-25" { |
| 22 | description "Initial version"; |
| 23 | } |
| 24 | |
| 25 | container devices { |
| 26 | list device { |
| 27 | key deviceid; |
| 28 | leaf deviceid { |
| 29 | type string; |
| 30 | } |
| 31 | container bgp { |
| 32 | container bgpcomm { |
| 33 | description ""; |
| 34 | container bgpVrfs { |
| 35 | description ""; |
| 36 | list bgpVrf { |
| 37 | key "vrfName"; |
| 38 | description "BGP instance class"; |
| 39 | leaf vrfName { |
| 40 | description "Specifies the name of the VPN in stance. |
| 41 | It is a string of 1 to 31 case-sensitive characters."; |
| 42 | type string; |
| 43 | } |
| 44 | container bgpVrfAFs { |
| 45 | description ""; |
| 46 | list bgpVrfAF { |
| 47 | key "afType"; |
| 48 | description "IPv4 unicast Address family class for |
| 49 | BGP instance"; |
| 50 | leaf afType { |
| 51 | type "bgpcomm-type:bgpcommPrefixType"; |
| 52 | description "Address family"; |
| 53 | } |
| 54 | container importRoutes { |
| 55 | description ""; |
| 56 | list importRoute { |
| 57 | key "importProtocol importProcessId"; |
| 58 | description "Import route class"; |
| 59 | leaf importProtocol { |
| 60 | type "bgpcomm-type:bgpcommImRouteProtocol"; |
| 61 | description "Specifies the protocol from |
| 62 | which routes are imported."; |
| 63 | } |
| 64 | leaf importProcessId { |
| 65 | type "string"; |
| 66 | } |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | } |