Skip to content

Commit 9314644

Browse files
authored
Improve support for Accton-AS4630-54TE and Accton-AS4625-54T (#16)
1 parent b5b79a8 commit 9314644

File tree

22 files changed

+2224
-774
lines changed

22 files changed

+2224
-774
lines changed

README.md

Lines changed: 80 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sonic-confidb-utils generate
1313

1414
## Configuration Parameters
1515

16-
**bgp_ports**
16+
### bgp_ports
1717

1818
Example:
1919

@@ -38,7 +38,7 @@ Result:
3838
}
3939
```
4040

41-
**breakouts**
41+
### breakouts
4242

4343
Example:
4444

@@ -65,7 +65,7 @@ Result:
6565

6666
For each breakout also the correspondig ports entries are added.
6767

68-
**docker_routing_config_mode**
68+
### docker_routing_config_mode
6969

7070
Can be one of `separated`, `split`, `split-unified`, `unified`.
7171

@@ -87,7 +87,7 @@ Result:
8787
}
8888
```
8989

90-
**features**
90+
### features
9191

9292
Enabling a feature makes SONiC check the status of the corresponding container.
9393
If a feature is enabled and the container stops running `container_checker` will complain and `show system-health summary` will show
@@ -121,7 +121,7 @@ Result:
121121
}
122122
```
123123

124-
**frr_mgmt_framework_config**
124+
### frr_mgmt_framework_config
125125

126126
Example:
127127

@@ -141,7 +141,7 @@ Result:
141141
}
142142
```
143143

144-
**interconnects**
144+
### interconnects
145145

146146
Example:
147147

@@ -172,7 +172,7 @@ Result:
172172
}
173173
```
174174

175-
**lldp_hello_time**
175+
### lldp_hello_time
176176

177177
Example:
178178

@@ -192,7 +192,7 @@ Result:
192192
}
193193
```
194194

195-
**looback_address**
195+
### looback_address
196196

197197
Example:
198198

@@ -211,19 +211,7 @@ Result:
211211
}
212212
```
213213

214-
and
215-
216-
```json
217-
{
218-
"VXLAN_TUNNEL": {
219-
"vtep": {
220-
"src_ip": "10.7.7.7"
221-
}
222-
}
223-
}
224-
```
225-
226-
**mclag**
214+
### mclag
227215

228216
Example:
229217

@@ -267,7 +255,7 @@ Result:
267255
}
268256
```
269257

270-
**mgmt_interface**
258+
### mgmt_interface
271259

272260
Example:
273261

@@ -289,7 +277,7 @@ Result:
289277
}
290278
```
291279

292-
**mgmt_vrf**
280+
### mgmt_vrf
293281

294282
Example:
295283

@@ -309,7 +297,7 @@ Result:
309297
}
310298
```
311299

312-
**nameservers**
300+
### nameservers
313301

314302
Example:
315303

@@ -330,22 +318,31 @@ Result:
330318
}
331319
```
332320

333-
**ntpservers**
321+
### ntp
334322

335323
Example:
336324

337325
```yaml
338-
ntpservers:
339-
- 0.europe.pool.ntp.org
340-
- 1.europe.pool.ntp.org
341-
- 2.europe.pool.ntp.org
342-
- 3.europe.pool.ntp.org
326+
ntp:
327+
src_interface: Loopback0
328+
vrf: default
329+
servers:
330+
- 0.europe.pool.ntp.org
331+
- 1.europe.pool.ntp.org
332+
- 2.europe.pool.ntp.org
333+
- 3.europe.pool.ntp.org
343334
```
344335

345336
Result:
346337

347338
```json
348339
{
340+
"NTP": {
341+
"global": {
342+
"src_intf": "Loopback0",
343+
"vrf": "default"
344+
}
345+
},
349346
"NTP_SERVER": {
350347
"0.europe.pool.ntp.org": {},
351348
"1.europe.pool.ntp.org": {},
@@ -355,15 +352,15 @@ Result:
355352
}
356353
```
357354

358-
**portchannels**
355+
### portchannels
359356

360357
Example:
361358

362359
```yaml
363360
portchannels:
364361
default_mtu: 9000
365362
list:
366-
- number: "01"
363+
- number: 01
367364
mtu: 1500
368365
fallback: true
369366
members:
@@ -393,7 +390,7 @@ Result:
393390
}
394391
```
395392

396-
**ports**
393+
### ports
397394

398395
Example:
399396

@@ -404,6 +401,7 @@ breakouts:
404401
ports:
405402
default_fec: none
406403
default_mtu: 9000
404+
default_autoneg: on
407405
list:
408406
- name: Ethernet0
409407
ips:
@@ -421,7 +419,7 @@ Result:
421419
"Ethernet0": {
422420
"admin_status": "up",
423421
"alias": "Eth1/1(Port1)",
424-
"autoneg": "off",
422+
"autoneg": "on",
425423
"fec": "rs",
426424
"index": "1",
427425
"lanes": "1",
@@ -446,9 +444,9 @@ and
446444
```
447445

448446
The speed of a port is determined by its breakout configuration.
449-
If no breakout configuration for a port is passed its default breakout is assumed.
450-
If a breakout configuration allows more than one speed options, e.g. `1x100G[40G]`, the first speed option is used as a default (`100G` in the example case).
451-
A `speed` option can be passed to the port config to specify an alternative speed, e.g.
447+
If no breakout configuration for a port is provided its default breakout is assumed.
448+
If a breakout configuration allows more than one speed options, e.g. `1x100G[40G]`, the first speed option is used as a default (`100G` in the example).
449+
A `speed` option can be added to the port config to specify an alternative speed, e.g.
452450

453451
```yaml
454452
ports:
@@ -458,7 +456,7 @@ ports:
458456

459457
For each port that is not explicitly configured in `breakouts` and `ports` an entry with defaults will be added to the `"PORT"` dictionary.
460458

461-
**sag**
459+
### sag
462460

463461
Example:
464462

@@ -479,7 +477,7 @@ Result:
479477
}
480478
```
481479

482-
**ssh_sourceranges**
480+
### ssh_sourceranges
483481

484482
Example:
485483

@@ -493,16 +491,45 @@ Result:
493491
```json
494492
{
495493
"ACL_RULE": {
494+
"ALLOW_NTP|DEFAULT_RULE": {
495+
"ETHER_TYPE": "2048",
496+
"PACKET_ACTION": "DROP",
497+
"PRIORITY": "1"
498+
},
499+
"ALLOW_NTP|RULE_1": {
500+
"PACKET_ACTION": "ACCEPT",
501+
"PRIORITY": "99",
502+
"SRC_IP": "0.0.0.0/0"
503+
},
504+
"ALLOW_SSH|DEFAULT_RULE": {
505+
"ETHER_TYPE": "2048",
506+
"PACKET_ACTION": "DROP",
507+
"PRIORITY": "1"
508+
},
496509
"ALLOW_SSH|RULE_1": {
497510
"PACKET_ACTION": "ACCEPT",
498511
"PRIORITY": "91",
499512
"SRC_IP": "10.1.23.1/30"
500513
}
514+
},
515+
"ACL_TABLE": {
516+
"ALLOW_NTP": {
517+
"policy_desc": "Allow NTP",
518+
"services": ["NTP"],
519+
"stage": "ingress",
520+
"type": "CTRLPLANE"
521+
},
522+
"ALLOW_SSH": {
523+
"policy_desc": "Allow SSH access",
524+
"services": ["SSH"],
525+
"stage": "ingress",
526+
"type": "CTRLPLANE"
527+
}
501528
}
502529
}
503530
```
504531

505-
**vlans** and **vlan_members**
532+
### vlans and vlan_members
506533

507534
Example:
508535

@@ -551,11 +578,13 @@ Result:
551578
}
552579
```
553580

554-
**vteps**
581+
### vteps
555582

556583
Example:
557584

558585
```yaml
586+
loopback_address: 10.7.7.7
587+
559588
vteps:
560589
- vni: 103999
561590
vlan: Vlan3999
@@ -565,6 +594,16 @@ Result:
565594

566595
```json
567596
{
597+
"VXLAN_EVPN_NVO": {
598+
"nvo": {
599+
"source_vtep": "vtep"
600+
}
601+
},
602+
"VXLAN_TUNNEL": {
603+
"vtep": {
604+
"src_ip": "10.7.7.7"
605+
}
606+
},
568607
"VXLAN_TUNNEL_MAP": {
569608
"vtep|map_103999_Vlan3999": {
570609
"vlan": "Vlan3999",

0 commit comments

Comments
 (0)