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

[filter-fdb] Fix Filter FDB With IPv6 Present in Config DB #1059

Merged

Conversation

tahmed-dev
Copy link
Contributor

Filter FDB was wiping out IPv4 entries when both IPv4 and IPv6
are associated with VLan interface. The reason is IPv6 network
was overwriting IPv4 network. This pr add support to filter
both IPv4 and IPv6 addresses

Fixes: sonic-net/sonic-buildimage#5216
Closes: sonic-net/sonic-buildimage#5216

signed-off-by: Tamer Ahmed tamer.ahmed@microsoft.com

- What I did
Added support for IPv6

- How I did it
New code that addresses both IPv4 and IPv6 networks

- How to verify it
Unit test cases updated to have IPv6 along IPv4 addresses

- Previous command output (if the output of a command-line utility has changed)
N/A
- New command output (if the output of a command-line utility has changed)
N/A

Filter fdb was wiping out IPv4 entries when both IPv4 and IPv6
are associated with VLan interface. The reason is IPv6 network
was overwriting IPv4 network. This pr add support to filter
both IPv4 and IPv6 addresses

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
lguohan
lguohan previously approved these changes Aug 20, 2020
@tahmed-dev tahmed-dev merged commit ca8ffe7 into sonic-net:master Aug 25, 2020
tahmed-dev added a commit to tahmed-dev/sonic-utilities that referenced this pull request Sep 1, 2020
…#1059)

Filter fdb was wiping out IPv4 entries when both IPv4 and IPv6
are associated with VLan interface. The reason is IPv6 network
was overwriting IPv4 network. This pr add support to filter
both IPv4 and IPv6 addresses

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
yxieca pushed a commit that referenced this pull request Sep 3, 2020
* [filter-fdb] Call Filter FDB Main From Within Test Code (#1051)

Code coverage requires that python code be run with the same process.
Current test code was invoking filter fdb via shell which launches
new process and so coverage is not available. This PR calls
the main method from within test code.

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>

* [filter-fdb] Fix Filter FDB With IPv6 Present in Config DB (#1059)

Filter fdb was wiping out IPv4 entries when both IPv4 and IPv6
are associated with VLan interface. The reason is IPv6 network
was overwriting IPv4 network. This pr add support to filter
both IPv4 and IPv6 addresses

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
abdosi pushed a commit that referenced this pull request Sep 3, 2020
Filter fdb was wiping out IPv4 entries when both IPv4 and IPv6
are associated with VLan interface. The reason is IPv6 network
was overwriting IPv4 network. This pr add support to filter
both IPv4 and IPv6 addresses

signed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
CharlieChenEC pushed a commit to CharlieChenEC/sonic-utilities that referenced this pull request May 14, 2021
…ll be empty during fast-reboot process

    In PR: sonic-net#890
    > It adds an mechansim to filter out some entries to reduce the size of fdb.json.
      But it has a code defect which causes all fdb entries will be filtered out in some cases.

    Merge PR: sonic-net#1059 to fix the above issue.
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.

[fast-reboot] FDB entries are not restored on fast-reboot
5 participants