This repository was archived by the owner on Mar 1, 2023. It is now read-only.
File tree 4 files changed +52
-1
lines changed
4 files changed +52
-1
lines changed Original file line number Diff line number Diff line change 1087
1087
"local_addr" : " 10.0.0.2" ,
1088
1088
"name" :" PEER1" ,
1089
1089
"nhopself" :" 0" ,
1090
- "rrclient" :" 0"
1090
+ "rrclient" :" 0" ,
1091
+ "admin_status" :" up"
1091
1092
},
1092
1093
"default|192.168.1.1" : {
1093
1094
"local_asn" : " 65200" ,
Original file line number Diff line number Diff line change 24
24
"desc" : " Referring non-existing BGP neighbor table." ,
25
25
"eStrKey" : " LeafRef"
26
26
},
27
+ "BGP_NEIGHBOR_NEG_INVALID_ADMIN_STATUS" : {
28
+ "desc" : " Incorrect admin status." ,
29
+ "eStrKey" : " InvalidValue" ,
30
+ "eStr" : [" admin_status" ]
31
+ },
27
32
"BGP_NEIGHBOR_NEG_INVALID_NAME" : {
28
33
"desc" : " Incorrect neighbor name." ,
29
34
"eStrKey" : " InvalidValue" ,
Original file line number Diff line number Diff line change 133
133
},
134
134
"sonic-bgp-neighbor:sonic-bgp-neighbor" : {
135
135
"sonic-bgp-neighbor:BGP_NEIGHBOR" : {
136
+ "BGP_NEIGHBOR_TEMPLATE_LIST" : [
137
+ {
138
+ "neighbor" : " 10.0.0.1" ,
139
+ "asn" : " 65200" ,
140
+ "holdtime" : " 180" ,
141
+ "keepalive" : " 60" ,
142
+ "local_addr" : " 10.0.0.2" ,
143
+ "name" :" PEER1" ,
144
+ "nhopself" :" 0" ,
145
+ "rrclient" :" 0" ,
146
+ "admin_status" :" up"
147
+ }
148
+ ],
136
149
"BGP_NEIGHBOR_LIST" : [
137
150
{
138
151
"vrf_name" : " default" ,
434
447
}
435
448
},
436
449
450
+ "BGP_NEIGHBOR_NEG_INVALID_ADMIN_STATUS" : {
451
+ "sonic-bgp-global:sonic-bgp-global" : {
452
+ "sonic-bgp-global:BGP_GLOBALS" : {
453
+ "BGP_GLOBALS_LIST" : [
454
+ {
455
+ "vrf_name" : " default" ,
456
+ "local_asn" : 65001
457
+ }
458
+ ]
459
+ }
460
+ },
461
+ "sonic-bgp-neighbor:sonic-bgp-neighbor" : {
462
+ "sonic-bgp-neighbor:BGP_NEIGHBOR" : {
463
+ "BGP_NEIGHBOR_TEMPLATE_LIST" : [
464
+ {
465
+ "neighbor" : " 11.12.13.14" ,
466
+ "admin_status" : " right"
467
+ }
468
+ ]
469
+ }
470
+ }
471
+ },
472
+
437
473
"BGP_NEIGHBOR_NEG_INVALID_NAME" : {
438
474
"sonic-bgp-global:sonic-bgp-global" : {
439
475
"sonic-bgp-global:BGP_GLOBALS" : {
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ module sonic-bgp-neighbor {
7
7
prefix inet;
8
8
}
9
9
10
+ import sonic-types {
11
+ prefix stypes;
12
+ }
13
+
10
14
import sonic-bgp-common {
11
15
prefix bgpcmn;
12
16
}
@@ -97,6 +101,11 @@ module sonic-bgp-neighbor {
97
101
}
98
102
description "Route reflector client" ;
99
103
}
104
+
105
+ leaf admin_status {
106
+ type stypes:admin_status;
107
+ description "Admin status of BGP peer" ;
108
+ }
100
109
}
101
110
102
111
list BGP_NEIGHBOR_LIST {
You can’t perform that action at this time.
0 commit comments