Skip to content

Don't cache the vlan-id if it is not valid from DB#273

Merged
qiluo-msft merged 1 commit intosonic-net:masterfrom
zhenggen-xu:vlan-cache-fix
Nov 14, 2022
Merged

Don't cache the vlan-id if it is not valid from DB#273
qiluo-msft merged 1 commit intosonic-net:masterfrom
zhenggen-xu:vlan-cache-fix

Conversation

@zhenggen-xu
Copy link
Collaborator

Don't cache the vlan-id if it is not valid from DB

Signed-off-by: Zhenggen Xu [email protected]

- What I did
Avoid caching the vlan-id with invalid value.

- How I did it
Add a check in code so if vlan-id is not valid, don't cache it.

- How to verify it

- Description for the changelog

@zhenggen-xu zhenggen-xu marked this pull request as ready for review November 14, 2022 07:34
@qiluo-msft qiluo-msft merged commit 06299e1 into sonic-net:master Nov 14, 2022
qiluo-msft pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Nov 16, 2022
#### Why I did it

Update sonic-snmpagent ubmodule pointer to include the following:

* bf6cd4c Remove error logging on "failed in fdb_vlanmac" ([#272](sonic-net/sonic-snmpagent#272))
* 05f2a28 Remove LOGLEVEL DB since is no longer used ([#271](sonic-net/sonic-snmpagent#271))
* 06299e1 Don't cache the vlan-id if it is not valid from DB ([#273](sonic-net/sonic-snmpagent#273))
* 8a515f2 Install libyang to azure pipeline ([#268](sonic-net/sonic-snmpagent#268))

#### How I did it

Advance sonic-snmpagent pointer
qiluo-msft pushed a commit that referenced this pull request Nov 17, 2022
Don't cache the vlan-id if it is not valid from DB

**- What I did**
Avoid caching the vlan-id with invalid value.

**- How I did it**
Add a check in code so if vlan-id is not valid, don't cache it.
richardyu-ms pushed a commit to richardyu-ms/sonic-buildimage that referenced this pull request Nov 18, 2022
#### Why I did it

Update sonic-snmpagent ubmodule pointer to include the following:

* bf6cd4c Remove error logging on "failed in fdb_vlanmac" ([sonic-net#272](sonic-net/sonic-snmpagent#272))
* 05f2a28 Remove LOGLEVEL DB since is no longer used ([sonic-net#271](sonic-net/sonic-snmpagent#271))
* 06299e1 Don't cache the vlan-id if it is not valid from DB ([sonic-net#273](sonic-net/sonic-snmpagent#273))
* 8a515f2 Install libyang to azure pipeline ([sonic-net#268](sonic-net/sonic-snmpagent#268))

#### How I did it

Advance sonic-snmpagent pointer
ssithaia-ebay pushed a commit to ssithaia-ebay/sonic-snmpagent that referenced this pull request May 23, 2025
Don't cache the vlan-id if it is not valid from DB

**- What I did**
Avoid caching the vlan-id with invalid value.

**- How I did it**
Add a check in code so if vlan-id is not valid, don't cache it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants