Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 1 | module Test { |
| 2 | yang-version 1; |
Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 3 | namespace "http://huawei.com"; |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 4 | prefix Ant; |
| 5 | list interface-switching-capability { |
surya-huawei | b2c64c5 | 2017-06-22 10:25:35 +0530 | [diff] [blame] | 6 | when "../switching-capability = TDM" { |
Vidyashree Rama | 918f162 | 2016-07-28 17:33:15 +0530 | [diff] [blame] | 7 | description "Valid only for TDM"; |
| 8 | } |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 9 | key "switching-capability"; |
| 10 | description |
| 11 | "List of Interface Switching Capabilities Descriptors (ISCD) |
| 12 | for this link."; |
| 13 | reference |
| 14 | "RFC3471: Generalized Multi-Protocol Label Switching (GMPLS) |
| 15 | Signaling Functional Description. |
| 16 | RFC4203: OSPF Extensions in Support of Generalized |
| 17 | Multi-Protocol Label Switching (GMPLS)."; |
| 18 | leaf switching-capability { |
| 19 | type string; |
| 20 | description |
| 21 | "Switching Capability for this interface."; |
| 22 | } |
| 23 | } |
| 24 | container time-division-multiplex-capable { |
surya-huawei | b2c64c5 | 2017-06-22 10:25:35 +0530 | [diff] [blame] | 25 | when "../switching-capability = TDM" { |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 26 | description "Valid only for TDM"; |
| 27 | } |
| 28 | description |
| 29 | "Interface has time-division multiplex capabilities."; |
| 30 | |
| 31 | leaf minimum-lsp-bandwidth { |
Mahesh Poojary Huawei | 2cd4433 | 2016-07-14 12:38:17 +0530 | [diff] [blame] | 32 | type decimal64 { |
| 33 | fraction-digits 4; |
| 34 | } |
Vidyashree Rama | 13b4c55 | 2016-06-20 15:12:43 +0530 | [diff] [blame] | 35 | } |
| 36 | } |
| 37 | } |