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

Question: How to delete vlan with json input file? #1023

Open
mdivyamohan opened this issue Aug 13, 2019 · 0 comments
Open

Question: How to delete vlan with json input file? #1023

mdivyamohan opened this issue Aug 13, 2019 · 0 comments

Comments

@mdivyamohan
Copy link

Is it possible to delete a vlan using json file as input?
I understand that it is possible with CLI; I am checking if there is a way to achieve this with json file input.

I am able to add a new vlan as:

# cat vlan.json
{
        "VLAN": {
                "Vlan60": {
                        "members": [
                                "Ethernet10",
                                "Ethernet11"
                        ],
                        "vlanid": "60"
                }
        },
        "VLAN_MEMBER": {
                "Vlan60|Ethernet10": {
                        "tagging_mode": "untagged"
                },
                "Vlan60|Ethernet11": {
                        "tagging_mode": "tagged"
                }
        }
}
# sonic-cfggen -j ./vlan.json --write-to-db

Is there a way to delete this vlan with json file input?
Is it possible to use swssconfig utility for this purpose?

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this issue Feb 28, 2022
a few tests in drops_group_test fails on second run.
The reason is that /tmp/dropstat is not cleaned, the first
run leave some state in the folder which cause the subsequent
run to fail.

The fix is the always clean up the folder.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this issue Mar 1, 2023
* SAI submodule update

- d0f3333 Tunnel Scoped TC MAP and Remarking (sonic-net#1413) (sonic-net#1451)
- 62364a3 Add two more API as RPC for warmboot testing (sonic-net#1421) (sonic-net#1437)
- 426fad1 Make saithriftv compatible with thrift 0.14.1 (sonic-net#1433)

Signed-off-by: bingwang <bingwang@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant