File tree 1 file changed +12
-10
lines changed
src/sonic-yang-models/yang-models
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,13 @@ module sonic-bgp-neighbor {
23
23
prefix lag;
24
24
}
25
25
26
- // Comment sonic-vlan import here until libyang back-links issue is resolved for VLAN leaf reference.
27
- //import sonic-vlan {
28
- // prefix vlan;
29
- //}
26
+ import sonic-vlan-sub-interface {
27
+ prefix vlan-sub-interface;
28
+ }
29
+
30
+ import sonic-vlan {
31
+ prefix vlan;
32
+ }
30
33
31
34
import sonic-bgp-global {
32
35
prefix bgpg;
@@ -91,12 +94,11 @@ module sonic-bgp-neighbor {
91
94
type leafref {
92
95
path "/lag:sonic-portchannel/lag:PORTCHANNEL/lag:PORTCHANNEL_LIST/lag:name" ;
93
96
}
94
- // Comment VLAN leaf reference here until libyang back-links issue is resolved and use VLAN string pattern
95
- // type leafref {
96
- // path "/vlan:sonic-vlan/vlan:VLAN/vlan:VLAN_LIST/vlan:name";
97
- // }
98
- type string {
99
- pattern 'Vlan([0-9]{1,3}|[1-3][0-9]{3}|[4][0][0-8][0-9]|[4][0][9][0-4])' ;
97
+ type leafref {
98
+ path "/vlan-sub-interface:sonic-vlan-sub-interface/vlan-sub-interface:VLAN_SUB_INTERFACE/vlan-sub-interface:VLAN_SUB_INTERFACE_LIST/vlan-sub-interface:name" ;
99
+ }
100
+ type leafref {
101
+ path "/vlan:sonic-vlan/vlan:VLAN/vlan:VLAN_LIST/vlan:name" ;
100
102
}
101
103
}
102
104
description "BGP Neighbor, it will be neighbor address or interface name" ;
You can’t perform that action at this time.
0 commit comments