-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Check mirror ingress/egress capability before configuring it or setting it to SAI #2088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Stephen Sun <[email protected]>
|
/azp run |
|
No pipelines are associated with this pull request. |
Signed-off-by: Stephen Sun <[email protected]>
|
/azp run |
|
No pipelines are associated with this pull request. |
|
@stephenxs Can you help me understand why do we need this change since we already have switch level capability check? |
Hi @bingwang-ms |
|
@bingwang-ms , @prsunny are we good to go? |
| 2. **CLI Validation**: Early validation checks are performed | ||
| 3. **Capability Check**: System queries STATE_DB for mirror capabilities | ||
| 4. **Decision Point**: | ||
| - If supported: Proceed to OrchAgent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the configuration be written into config_db if not supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it won't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why it should? this was not done to other capabilities check. this is not the actual arch for other features.
|
/easycla |
|
@prsunny @bingwang-ms any further comments? if not, this should be merged and PRs should be reviewed as well |
Check mirror capability before configuring it or setting it to SAI
PORT_INGRESS_MIRROR_CAPABLEandPORT_EGRESS_MIRROR_CAPABLEinSTATE_DBtableSWITCH_CAPABILITY.PORT_INGRESS_MIRROR_CAPABLEandPORT_EGRESS_MIRROR_CAPABLEinSTATE_DBtableSWITCH_CAPABILITYbefore conifiguring CONFIG_DBImplementation PRs
Signed-off-by: Stephen Sun [email protected]