Skip to content
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

[caclmgrd] Ignore keys in interface-related tables if no IP prefix is present #4581

Merged
merged 1 commit into from
May 13, 2020
Merged

[caclmgrd] Ignore keys in interface-related tables if no IP prefix is present #4581

merged 1 commit into from
May 13, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented May 12, 2020

Since the introduction of VRF, interface-related tables in ConfigDB will have multiple entries, one of which only contains the interface name and no IP prefix.

Example of previous table contents:

admin@sonic:~# redis-cli -n 4 keys "LOOPBACK_INTERFACE*"
1) "LOOPBACK_INTERFACE|Loopback0|1.1.1.1/32"

Example of new table contents:

admin@sonic:~# redis-cli -n 4 keys "LOOPBACK_INTERFACE*"
1) "LOOPBACK_INTERFACE|Loopback0|1.1.1.1/32"
2) "LOOPBACK_INTERFACE|Loopback0"

Thus, when iterating over the keys in the tables, we need to ignore the entries which do not contain IP prefixes.

Bug was introduced in #4412

@jleveque jleveque merged commit 5150e7b into sonic-net:master May 13, 2020
@jleveque jleveque deleted the fix_caclmgrd branch May 13, 2020 01:17
abdosi pushed a commit that referenced this pull request Jun 3, 2020
… present (#4581)

Since the introduction of VRF, interface-related tables in ConfigDB will have multiple entries, one of which only contains the interface name and no IP prefix. Thus, when iterating over the keys in the tables, we need to ignore the entries which do not contain IP prefixes.
yxieca pushed a commit that referenced this pull request Jun 9, 2020
… present (#4581)

Since the introduction of VRF, interface-related tables in ConfigDB will have multiple entries, one of which only contains the interface name and no IP prefix. Thus, when iterating over the keys in the tables, we need to ignore the entries which do not contain IP prefixes.
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.

4 participants