Skip to content

Commit

Permalink
Add SAG_TABLE description in APPL_DB
Browse files Browse the repository at this point in the history
  • Loading branch information
superchild authored and zhangyanzhao committed Jun 14, 2023
1 parent 3237e50 commit 5dbc369
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions doc/sag/sag-HLD.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- [sonic-swss](#sonic-swss)
- [sonic-utilities](#sonic-utilities)
- [DB](#db)
- [CONFIG_DB](#config_db)
- [APPL_DB](#appl_db)
- [SAI API](#sai-api)
- [Configuration and management](#configuration-and-management)
- [CLI/YANG model Enhancements](#cliyang-model-enhancements)
Expand Down Expand Up @@ -80,18 +82,19 @@ sonic-utilities will be updated to offer the following CLI commands for the user
* Enable/Disable to use static anycast gateway MAC address on the VLAN interface

## DB
### CONFIG_DB
The CONFIG_DB will be updated to include a new **SAG**.
This will have the following format:
```
### SAG
; SAG global configuration
key = "SAG|GLOBAL"
; field = value
gwmac = mac_address
gateway_mac = mac_address
Example:
127.0.0.1:6379[4]> hgetall "SAG|GLOBAL"
1) "gwmac"
1) "gateway_mac"
2) "00:11:22:33:44:0f"
```

Expand All @@ -106,6 +109,22 @@ Example:
3) "static_anycast_gateway"
4) "false"
```

### APPL_DB
The APPL_DB will be updated to include a new **SAG_TALBE**
This will have the following format:
```
### SAG_TABLE
; SAG global configuration
key = "SAG_TABLE|GLOBAL"
; field = value
gateway_mac = mac_address
```

Example:
127.0.0.1:6379[0]> hgetall "SAG_TABLE|GLOBAL"
1) "gateway_mac"
2) "00:11:22:33:44:0f"
# SAI API
There are no changes to SAI headers/implementation to support this feature.

Expand Down

0 comments on commit 5dbc369

Please sign in to comment.