Skip to content

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

Merged
jleveque merged 1 commit intosonic-net:masterfrom
jleveque:fix_caclmgrd
May 13, 2020
Merged

[caclmgrd] Ignore keys in interface-related tables if no IP prefix is present#4581
jleveque merged 1 commit intosonic-net:masterfrom
jleveque:fix_caclmgrd

Conversation

@jleveque
Copy link
Copy Markdown
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