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

Unable to Delete Shaping Rule by ID #112

Closed
briantsaunders opened this issue Apr 11, 2019 · 3 comments
Closed

Unable to Delete Shaping Rule by ID #112

briantsaunders opened this issue Apr 11, 2019 · 3 comments
Assignees
Labels

Comments

@briantsaunders
Copy link

briantsaunders commented Apr 11, 2019

wwtatc@ls-tj-test-01:/var/lab-services/ls-trafficjam-api$ tcdel --version
tcdel 0.22.1

wwtatc@ls-tj-test-01:/var/lab-services/ls-trafficjam-api$ tcshow ens192.100
{
    "ens192.100": {
        "outgoing": {
            "dst-network=10.1.0.0/24, dst-port=52, protocol=ip": {
                "filter_id": "800::800",
                "delay": "10.0ms",
                "delay-distro": "None",
                "loss": "None",
                "duplicate": "None",
                "corrupt": "None",
                "reorder": "None",
                "rate": "10Gbps"
            }
        },
        "incoming": {}
    }
}

wwtatc@ls-tj-test-01:/var/lab-services/ls-trafficjam-api$ sudo tcdel ens192.100 --id 800::800
[ERROR] tcconfig: shaping rule not found (device = 'ens192.100', protocol = 'ip', [dst-network] = '10.1.0.0/24', [src-network] = '0.0.0.0/0', [dst-port] = 52, [src-port] = 'None').
wwtatc@ls-tj-test-01:/var/lab-services/ls-trafficjam-api$
@thombashi thombashi self-assigned this Apr 13, 2019
@thombashi thombashi added the bug label Apr 13, 2019
thombashi added a commit that referenced this issue Apr 13, 2019
@thombashi
Copy link
Owner

@briantsaunders
Thank you for your report.

I believe the error had fixed at tcconfig 0.22.2
Please try to upgrade the package and re-execute the command.

@briantsaunders
Copy link
Author

Upgrading fixed it, thank you!

wwtatc@ls-tj-test-01:~$ tcdel --version
tcdel 0.22.2
wwtatc@ls-tj-test-01:~$ tcshow ens192.100
{
    "ens192.100": {
        "outgoing": {
            "dst-network=10.1.0.0/24, dst-port=52, protocol=ip": {
                "filter_id": "800::800",
                "delay": "10.0ms",
                "rate": "10Gbps"
            }
        },
        "incoming": {}
    }
}
wwtatc@ls-tj-test-01:~$ sudo tcdel ens192.100 --id 800::800
[INFO] tcconfig: delete a shaping rule: {'filter_id': '800::800', 'priority': 2, 'protocol': 'ip'}
[INFO] tcconfig: delete ens192.100 qdisc
[NOTICE] tcconfig: no qdisc to delete for the incoming device.
wwtatc@ls-tj-test-01:~$ tcshow ens192.100
{
    "ens192.100": {
        "outgoing": {},
        "incoming": {}
    }
}
wwtatc@ls-tj-test-01:~$

@thombashi
Copy link
Owner

Thank you for confirmation.
Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants