janani b | ebb143d | 2016-07-14 19:35:22 +0530 | [diff] [blame] | 1 | module ietf-te-topology { |
| 2 | yang-version 1; |
| 3 | namespace "onos-yang-19:level1:newlevel"; |
| 4 | prefix test; |
| 5 | import ietf-network { |
| 6 | prefix "nw"; |
| 7 | } |
| 8 | description "leaf scenario"; |
| 9 | typedef te-topology-event-type { |
| 10 | type enumeration { |
| 11 | enum "add" { |
| 12 | value 0; |
| 13 | description |
| 14 | "A TE node or te-link has been added."; |
| 15 | } |
| 16 | enum "remove" { |
| 17 | value 1; |
| 18 | description |
| 19 | "A TE node or te-link has been removed."; |
| 20 | } |
| 21 | enum "update" { |
| 22 | value 2; |
| 23 | description |
| 24 | "A TE node or te-link has been updated."; |
| 25 | } |
| 26 | } |
| 27 | description "TE Event type for notifications"; |
| 28 | } // te-topology-event-type |
| 29 | container te-node-event { |
| 30 | leaf event-type { |
| 31 | type te-topology-event-type; |
| 32 | description "Event type."; |
| 33 | } |
| 34 | description "Notification event for TE node."; |
| 35 | uses nw:node-ref; |
| 36 | } |
| 37 | } |