Skip to content

[aclorch]: Add MIRRORv6 support for ACL table#825

Merged
stcheng merged 1 commit intosonic-net:masterfrom
stcheng:ipv6
Apr 29, 2019
Merged

[aclorch]: Add MIRRORv6 support for ACL table#825
stcheng merged 1 commit intosonic-net:masterfrom
stcheng:ipv6

Conversation

@stcheng
Copy link
Copy Markdown
Contributor

@stcheng stcheng commented Mar 29, 2019

Enable both IPv4 and IPv6 source and destination IP match and
mirror functionality in SONiC.

Signed-off-by: Shu0T1an ChenG shuche@microsoft.com

assert status == True
for fv in fvs:
if fv[0] == "SAI_ACL_ENTRY_ATTR_FIELD_SRC_IPV6":
assert fv[1] == "2777::&mask:ffff:ffff:ffff:ffff::"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'&mask' is weird. Could you explain?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the serialization done by sairedis library; swss does not have the control here.

@stcheng
Copy link
Copy Markdown
Contributor Author

stcheng commented Apr 23, 2019

Updated with new design

@stcheng
Copy link
Copy Markdown
Contributor Author

stcheng commented Apr 23, 2019

TODO:

  1. will update the unit test both both Broadcom and Mellanox scenarios
  2. will remove deprecated code in swss for virtual switch platform

DONE

break;
}
}
m_switchTable.set("switch", fvVector);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code really need to go to syncd code. We will address this in the next release.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure i could add some todo to here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One issue about moving this to syncd right now is that we currently cannot guarantee the order of syncd and orchagent starting time. e.g. when orchagent starts and at that time syncd hasn't stored the capability information into the database, we will miss this part of the information.

Enable both IPv4 and IPv6 source and destination IP match and
mirror functionality in SONiC.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
@stcheng stcheng changed the title [aclorch]: Add MIRRORv6 and MIRRORv4v6 support for ACL table [aclorch]: Add MIRRORv6 support for ACL table Apr 24, 2019
@stcheng stcheng merged commit 9931450 into sonic-net:master Apr 29, 2019
@stcheng stcheng deleted the ipv6 branch April 29, 2019 16:46
dgsudharsan pushed a commit to dgsudharsan/sonic-swss that referenced this pull request May 7, 2019
…et#825)

Enable both IPv4 and IPv6 source and destination IP match and
mirror functionality in SONiC.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
stcheng pushed a commit to stcheng/sonic-swss that referenced this pull request Jul 1, 2019
…et#825)

Enable both IPv4 and IPv6 source and destination IP match and
mirror functionality in SONiC.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…ic-net#825)

* [fwutil]: Use overlay driver when mounting next image filesystem.

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>

* [fwutil]: Update command reference.

Signed-off-by: Nazarii Hnydyn <nazariig@mellanox.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
When making build sairedis directory could be polluted by previous build
which was configured without '--enable-syncd=no', and that created
makefiles for previous build for example binary-syncd target, next when
dh clean is executed for target binary-sairedis, it's executing existing
configure with previous parameters by executing "./bin/bash
./config.status .recheck", this don't contain --enable-syncd=no, and
this requires libsai to be present for configuration, this will cause
configure to fail, but dh clean will ignore that error and continue next
commands. Because of this, make distclean was not executed, and
directory contains previous build artifacts like _pysairedis.la in pyext
directory, which was from stretch build, and points to different python
version 3.5 vs 3.7 on buster, and since _pysairedis.la exists, it's
content are used to pass that python library to link stage of python
build.

To workaround this, we can export shell variable to disable libsai
requirement, and distclean will succeed, but there still be left
artifacts in syncd directory and others conditioned in Makefile.am

Signed-off-by: kcudnik <kcudnik@gmail.com>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…et#825)

Enable both IPv4 and IPv6 source and destination IP match and
mirror functionality in SONiC.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
* Use json.hpp from nlohmann-json-dev instead of local version

This header file comes from an external package, and a very old version of the
header file has been checked into this repo. This will cause problems for the
upcoming Bookworm upgrade.

Change references to the header file to use the Debian package
nlohmann-json-dev, and remove json.hpp from this repo.
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