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 add meters for rate limiting #3968

Closed
Yawndy opened this issue Nov 9, 2021 · 1 comment
Closed

Unable to add meters for rate limiting #3968

Yawndy opened this issue Nov 9, 2021 · 1 comment

Comments

@Yawndy
Copy link

Yawndy commented Nov 9, 2021

I am trying to add a meter so I can implement rate-limiting for my Faucet SDN solution, but I always get this error when running check_faucet_config, "AttributeError: 'str' object has no attribute 'get'".

Here is my current config:

meters:
        block-dos:
                meter_id: 100
                entry:
                        flags: PKTPS
                        bands:
                                rate: 1

Is anybody able to tell me what I'm doing wrong here? Any help is GREATLY appreciated!

@gizmoguy
Copy link
Member

I think bands needs to be a list, so try this:

meters:
        block-dos:
                meter_id: 100
                entry:
                        flags: PKTPS
                        bands:
                            - rate: 1

@gizmoguy gizmoguy closed this as completed Dec 1, 2021
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

2 participants