{"action":"created","issue":{"url":"https://api.github.com/repos/svinota/pyroute2/issues/170","labels_url":"https://api.github.com/repos/svinota/pyroute2/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/svinota/pyroute2/issues/170/comments","events_url":"https://api.github.com/repos/svinota/pyroute2/issues/170/events","html_url":"https://github.com/svinota/pyroute2/issues/170","id":100146503,"number":170,"title":"Create route with metric?","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":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T19:19:59Z","updated_at":"2015-08-10T19:22:39Z","closed_at":"2015-08-10T19:22:39Z","body":"From [the documentation](http://docs.pyroute2.org/iproute.html) and groking through the code, there does not seem to be a way to add routes with a given metric.\r\n\r\n### Desired Output\r\n\r\n```\r\ndefault via 192.168.1.1 dev eth0  metric 100\r\ndefault via 172.16.0.1 dev eth1  metric 200\r\n```\r\n\r\n### Desired Syntax\r\n\r\n```python\r\nfrom pyroute2.iproute import IPRoute\r\n\r\nip = IPRoute()\r\nip.route('add',\r\n         table=253,\r\n         dst='0.0.0.0',\r\n         gateway='192.168.1.1',\r\n         family=AF_INET,\r\n         metric=100\r\n         )\r\nip.route('add',\r\n         table=253,\r\n         dst='0.0.0.0',\r\n         gateway='172.16.0.1',\r\n         family=AF_INET,\r\n         metric=200\r\n         )\r\n```"},"comment":{"url":"https://api.github.com/repos/svinota/pyroute2/issues/comments/129572603","html_url":"https://github.com/svinota/pyroute2/issues/170#issuecomment-129572603","issue_url":"https://api.github.com/repos/svinota/pyroute2/issues/170","id":129572603,"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},"created_at":"2015-08-10T19:22:39Z","updated_at":"2015-08-10T19:22:39Z","body":"Nevermind...  I was using the `metric` parameter instead of `priority` like I *should* have been."}}