{"action":"created","issue":{"url":"https://api.github.com/repos/svinota/pyroute2/issues/158","labels_url":"https://api.github.com/repos/svinota/pyroute2/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/svinota/pyroute2/issues/158/comments","events_url":"https://api.github.com/repos/svinota/pyroute2/issues/158/events","html_url":"https://github.com/svinota/pyroute2/issues/158","id":90763572,"number":158,"title":"flush rules","user":{"login":"tomislacker","id":1132557,"avatar_url":"https://avatars.githubusercontent.com/u/1132557?v=3","gravatar_id":"","url":"https://api.github.com/users/tomislacker","html_url":"https://github.com/tomislacker","followers_url":"https://api.github.com/users/tomislacker/followers","following_url":"https://api.github.com/users/tomislacker/following{/other_user}","gists_url":"https://api.github.com/users/tomislacker/gists{/gist_id}","starred_url":"https://api.github.com/users/tomislacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomislacker/subscriptions","organizations_url":"https://api.github.com/users/tomislacker/orgs","repos_url":"https://api.github.com/users/tomislacker/repos","events_url":"https://api.github.com/users/tomislacker/events{/privacy}","received_events_url":"https://api.github.com/users/tomislacker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/svinota/pyroute2/labels/fr","name":"fr","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-24T19:27:32Z","updated_at":"2015-06-24T22:06:58Z","closed_at":null,"body":"Similar to #40 but for rules instead.  Something like `ip.rule(\"flush\")`\r\n\r\n```python\r\nfrom pyroute2 import IPRoute\r\nip = IPRoute()\r\nip.rule(\"flush\")\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nTypeError: rule() takes at least 3 arguments (2 given)\r\n```"},"comment":{"url":"https://api.github.com/repos/svinota/pyroute2/issues/comments/115025091","html_url":"https://github.com/svinota/pyroute2/issues/158#issuecomment-115025091","issue_url":"https://api.github.com/repos/svinota/pyroute2/issues/158","id":115025091,"user":{"login":"svinota","id":814602,"avatar_url":"https://avatars.githubusercontent.com/u/814602?v=3","gravatar_id":"","url":"https://api.github.com/users/svinota","html_url":"https://github.com/svinota","followers_url":"https://api.github.com/users/svinota/followers","following_url":"https://api.github.com/users/svinota/following{/other_user}","gists_url":"https://api.github.com/users/svinota/gists{/gist_id}","starred_url":"https://api.github.com/users/svinota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svinota/subscriptions","organizations_url":"https://api.github.com/users/svinota/orgs","repos_url":"https://api.github.com/users/svinota/repos","events_url":"https://api.github.com/users/svinota/events{/privacy}","received_events_url":"https://api.github.com/users/svinota/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T22:06:58Z","updated_at":"2015-06-24T22:06:58Z","body":"But one more question: is it OK, if the `rule()` will use the same scheme as `route()` and `addr()` — no positional parameters, only keyword ones?\r\n\r\nSo no more `ipr.rule('add', 10, 32000, …)`,\r\nonly `ipr.rule('add', table=10, priority=32000, …)` ?"}}