Vidyashree Rama | 506cbe1 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 1 | module rock { |
| 2 | namespace "http://example.net/rock"; |
| 3 | prefix "rock"; |
| 4 | |
Vinod Kumar S | d4deb06 | 2016-04-15 18:08:57 +0530 | [diff] [blame] | 5 | import ietf-yang-types { |
| 6 | prefix "P"; |
| 7 | } |
Vidyashree Rama | 506cbe1 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 8 | notification link-failure { |
| 9 | description "A link failure has been detected"; |
| 10 | status deprecated; |
| 11 | reference "reference"; |
| 12 | typedef my-type { |
| 13 | status deprecated; |
| 14 | type int32; |
| 15 | } |
| 16 | leaf if-name { |
Vidyashree Rama | 1db1556 | 2016-05-17 16:16:15 +0530 | [diff] [blame^] | 17 | type leafref; |
Vidyashree Rama | 506cbe1 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 18 | } |
| 19 | leaf if-admin-status { |
Gaurav Agrawal | d9d6cc8 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 20 | type P:admin-status; |
Vidyashree Rama | 506cbe1 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 21 | } |
| 22 | leaf if-oper-status { |
Gaurav Agrawal | d9d6cc8 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 23 | type P:oper-status; |
Vidyashree Rama | 506cbe1 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 24 | } |
| 25 | } |
| 26 | } |