Commit 69c4820
[Yang] Fix Yang model of BGP Allowed Prefix (sonic-net#20550)
Why I did it
Bugfix for Yang model of BGP Allowed Prefix.
Support optional NEIGHBOR_TYPE in key.
Support optional le and ge in prefixes_v4/prefixes_v6 list (e.g., 10.20.30.0/24 le 30).
Work item tracking
Microsoft ADO (number only): 30001113
How I did it
Updated sonic-bgp-allowed-prefix.yang.
Define optional value NEIGHBOR_TYPE in key.
Define type bgp-allowed-ipv4-prefix and bgp-allowed-ipv6-prefix to support the optional suffix in prefixes_v4/prefixes_v6 list.
How to verify it
Verified by UT:1 parent f19a0a9 commit 69c4820
3 files changed
Lines changed: 363 additions & 93 deletions
File tree
- src/sonic-yang-models
- tests/yang_model_tests
- tests_config
- tests
- yang-models
Lines changed: 11 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 171 | + | |
176 | 172 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 173 | + | |
| 174 | + | |
186 | 175 | | |
187 | 176 | | |
188 | | - | |
| 177 | + | |
189 | 178 | | |
190 | 179 | | |
191 | 180 | | |
192 | 181 | | |
193 | | - | |
| 182 | + | |
194 | 183 | | |
195 | 184 | | |
196 | 185 | | |
197 | | - | |
| 186 | + | |
198 | 187 | | |
199 | 188 | | |
200 | 189 | | |
| |||
0 commit comments