Vidyashree Rama | 620b6e9 | 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 | f677daf | 2016-04-15 18:08:57 +0530 | [diff] [blame] | 5 | import ietf-yang-types { |
| 6 | prefix "P"; |
| 7 | } |
Vidyashree Rama | 620b6e9 | 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 { |
| 17 | type leafref { |
| 18 | path "/interface/name"; |
| 19 | } |
| 20 | } |
| 21 | leaf if-admin-status { |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 22 | type P:admin-status; |
Vidyashree Rama | 620b6e9 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 23 | } |
| 24 | leaf if-oper-status { |
Gaurav Agrawal | 1fbfae1 | 2016-03-29 02:17:23 +0530 | [diff] [blame] | 25 | type P:oper-status; |
Vidyashree Rama | 620b6e9 | 2016-03-28 11:59:27 +0530 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | } |