{"action":"closed","number":2397,"pull_request":{"url":"https://api.github.com/repos/openwrt/packages/pulls/2397","id":60051628,"html_url":"https://github.com/openwrt/packages/pull/2397","diff_url":"https://github.com/openwrt/packages/pull/2397.diff","patch_url":"https://github.com/openwrt/packages/pull/2397.patch","issue_url":"https://api.github.com/repos/openwrt/packages/issues/2397","number":2397,"state":"closed","locked":false,"title":"net-snmp: reload snmpd on interface events","user":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"body":"When applying wireless configuration changes, the ifindex of the\r\nwireless interface(s) change. While snmpd picks up the new interfaces\r\nwith the correct index, it does not remove the old ones:\r\n\r\nIF-MIB::ifName.23 = STRING: wlan0\r\nIF-MIB::ifName.24 = STRING: wlan1\r\nIF-MIB::ifName.25 = STRING: wlan0\r\nIF-MIB::ifName.26 = STRING: wlan1\r\n\r\nThis causes problems for monitoring tools that use ifName (or ifDesc) as\r\ninterface reference. Add a trigger that reloads snmpd on interface\r\nup/down events so that it will no longer have the old interfaces.\r\n\r\nBased on example by Felix: http://permalink.gmane.org/gmane.comp.embedded.openwrt.devel/38072","created_at":"2016-02-20T15:50:48Z","updated_at":"2016-03-01T05:32:51Z","closed_at":"2016-03-01T05:32:51Z","merged_at":"2016-03-01T05:32:51Z","merge_commit_sha":"ff6bea2021b3278fa7269b91b75352e518215ab4","assignee":{"login":"jow-","id":2528802,"avatar_url":"https://avatars.githubusercontent.com/u/2528802?v=3","gravatar_id":"","url":"https://api.github.com/users/jow-","html_url":"https://github.com/jow-","followers_url":"https://api.github.com/users/jow-/followers","following_url":"https://api.github.com/users/jow-/following{/other_user}","gists_url":"https://api.github.com/users/jow-/gists{/gist_id}","starred_url":"https://api.github.com/users/jow-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jow-/subscriptions","organizations_url":"https://api.github.com/users/jow-/orgs","repos_url":"https://api.github.com/users/jow-/repos","events_url":"https://api.github.com/users/jow-/events{/privacy}","received_events_url":"https://api.github.com/users/jow-/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/openwrt/packages/pulls/2397/commits","review_comments_url":"https://api.github.com/repos/openwrt/packages/pulls/2397/comments","review_comment_url":"https://api.github.com/repos/openwrt/packages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwrt/packages/issues/2397/comments","statuses_url":"https://api.github.com/repos/openwrt/packages/statuses/5b1e9eefd01f098ad74389c967f1c5c9d1e286b3","head":{"label":"stintel:snmp","ref":"snmp","sha":"5b1e9eefd01f098ad74389c967f1c5c9d1e286b3","user":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"repo":{"id":30563872,"name":"openwrt-packages","full_name":"stintel/openwrt-packages","owner":{"login":"stintel","id":1258811,"avatar_url":"https://avatars.githubusercontent.com/u/1258811?v=3","gravatar_id":"","url":"https://api.github.com/users/stintel","html_url":"https://github.com/stintel","followers_url":"https://api.github.com/users/stintel/followers","following_url":"https://api.github.com/users/stintel/following{/other_user}","gists_url":"https://api.github.com/users/stintel/gists{/gist_id}","starred_url":"https://api.github.com/users/stintel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stintel/subscriptions","organizations_url":"https://api.github.com/users/stintel/orgs","repos_url":"https://api.github.com/users/stintel/repos","events_url":"https://api.github.com/users/stintel/events{/privacy}","received_events_url":"https://api.github.com/users/stintel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stintel/openwrt-packages","description":"Packages Repository","fork":true,"url":"https://api.github.com/repos/stintel/openwrt-packages","forks_url":"https://api.github.com/repos/stintel/openwrt-packages/forks","keys_url":"https://api.github.com/repos/stintel/openwrt-packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stintel/openwrt-packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stintel/openwrt-packages/teams","hooks_url":"https://api.github.com/repos/stintel/openwrt-packages/hooks","issue_events_url":"https://api.github.com/repos/stintel/openwrt-packages/issues/events{/number}","events_url":"https://api.github.com/repos/stintel/openwrt-packages/events","assignees_url":"https://api.github.com/repos/stintel/openwrt-packages/assignees{/user}","branches_url":"https://api.github.com/repos/stintel/openwrt-packages/branches{/branch}","tags_url":"https://api.github.com/repos/stintel/openwrt-packages/tags","blobs_url":"https://api.github.com/repos/stintel/openwrt-packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stintel/openwrt-packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stintel/openwrt-packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/stintel/openwrt-packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stintel/openwrt-packages/statuses/{sha}","languages_url":"https://api.github.com/repos/stintel/openwrt-packages/languages","stargazers_url":"https://api.github.com/repos/stintel/openwrt-packages/stargazers","contributors_url":"https://api.github.com/repos/stintel/openwrt-packages/contributors","subscribers_url":"https://api.github.com/repos/stintel/openwrt-packages/subscribers","subscription_url":"https://api.github.com/repos/stintel/openwrt-packages/subscription","commits_url":"https://api.github.com/repos/stintel/openwrt-packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/stintel/openwrt-packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/stintel/openwrt-packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/stintel/openwrt-packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/stintel/openwrt-packages/contents/{+path}","compare_url":"https://api.github.com/repos/stintel/openwrt-packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stintel/openwrt-packages/merges","archive_url":"https://api.github.com/repos/stintel/openwrt-packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stintel/openwrt-packages/downloads","issues_url":"https://api.github.com/repos/stintel/openwrt-packages/issues{/number}","pulls_url":"https://api.github.com/repos/stintel/openwrt-packages/pulls{/number}","milestones_url":"https://api.github.com/repos/stintel/openwrt-packages/milestones{/number}","notifications_url":"https://api.github.com/repos/stintel/openwrt-packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stintel/openwrt-packages/labels{/name}","releases_url":"https://api.github.com/repos/stintel/openwrt-packages/releases{/id}","deployments_url":"https://api.github.com/repos/stintel/openwrt-packages/deployments","created_at":"2015-02-09T23:10:21Z","updated_at":"2016-01-19T14:32:58Z","pushed_at":"2016-03-01T00:29:41Z","git_url":"git://github.com/stintel/openwrt-packages.git","ssh_url":"git@github.com:stintel/openwrt-packages.git","clone_url":"https://github.com/stintel/openwrt-packages.git","svn_url":"https://github.com/stintel/openwrt-packages","homepage":null,"size":8288,"stargazers_count":0,"watchers_count":0,"language":"Makefile","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwrt:master","ref":"master","sha":"03c0a3ea31441161b43c6b996ada57e0a63b152b","user":{"login":"openwrt","id":2528830,"avatar_url":"https://avatars.githubusercontent.com/u/2528830?v=3","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"repo":{"id":20307838,"name":"packages","full_name":"openwrt/packages","owner":{"login":"openwrt","id":2528830,"avatar_url":"https://avatars.githubusercontent.com/u/2528830?v=3","gravatar_id":"","url":"https://api.github.com/users/openwrt","html_url":"https://github.com/openwrt","followers_url":"https://api.github.com/users/openwrt/followers","following_url":"https://api.github.com/users/openwrt/following{/other_user}","gists_url":"https://api.github.com/users/openwrt/gists{/gist_id}","starred_url":"https://api.github.com/users/openwrt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwrt/subscriptions","organizations_url":"https://api.github.com/users/openwrt/orgs","repos_url":"https://api.github.com/users/openwrt/repos","events_url":"https://api.github.com/users/openwrt/events{/privacy}","received_events_url":"https://api.github.com/users/openwrt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwrt/packages","description":"Packages Repository","fork":false,"url":"https://api.github.com/repos/openwrt/packages","forks_url":"https://api.github.com/repos/openwrt/packages/forks","keys_url":"https://api.github.com/repos/openwrt/packages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwrt/packages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwrt/packages/teams","hooks_url":"https://api.github.com/repos/openwrt/packages/hooks","issue_events_url":"https://api.github.com/repos/openwrt/packages/issues/events{/number}","events_url":"https://api.github.com/repos/openwrt/packages/events","assignees_url":"https://api.github.com/repos/openwrt/packages/assignees{/user}","branches_url":"https://api.github.com/repos/openwrt/packages/branches{/branch}","tags_url":"https://api.github.com/repos/openwrt/packages/tags","blobs_url":"https://api.github.com/repos/openwrt/packages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwrt/packages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwrt/packages/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwrt/packages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwrt/packages/statuses/{sha}","languages_url":"https://api.github.com/repos/openwrt/packages/languages","stargazers_url":"https://api.github.com/repos/openwrt/packages/stargazers","contributors_url":"https://api.github.com/repos/openwrt/packages/contributors","subscribers_url":"https://api.github.com/repos/openwrt/packages/subscribers","subscription_url":"https://api.github.com/repos/openwrt/packages/subscription","commits_url":"https://api.github.com/repos/openwrt/packages/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwrt/packages/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwrt/packages/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwrt/packages/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwrt/packages/contents/{+path}","compare_url":"https://api.github.com/repos/openwrt/packages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwrt/packages/merges","archive_url":"https://api.github.com/repos/openwrt/packages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwrt/packages/downloads","issues_url":"https://api.github.com/repos/openwrt/packages/issues{/number}","pulls_url":"https://api.github.com/repos/openwrt/packages/pulls{/number}","milestones_url":"https://api.github.com/repos/openwrt/packages/milestones{/number}","notifications_url":"https://api.github.com/repos/openwrt/packages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwrt/packages/labels{/name}","releases_url":"https://api.github.com/repos/openwrt/packages/releases{/id}","deployments_url":"https://api.github.com/repos/openwrt/packages/deployments","created_at":"2014-05-29T20:43:16Z","updated_at":"2016-02-29T20:53:25Z","pushed_at":"2016-03-01T05:32:51Z","git_url":"git://github.com/openwrt/packages.git","ssh_url":"git@github.com:openwrt/packages.git","clone_url":"https://github.com/openwrt/packages.git","svn_url":"https://github.com/openwrt/packages","homepage":null,"size":12092,"stargazers_count":577,"watchers_count":577,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":605,"mirror_url":null,"open_issues_count":219,"forks":605,"open_issues":219,"watchers":577,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwrt/packages/pulls/2397"},"html":{"href":"https://github.com/openwrt/packages/pull/2397"},"issue":{"href":"https://api.github.com/repos/openwrt/packages/issues/2397"},"comments":{"href":"https://api.github.com/repos/openwrt/packages/issues/2397/comments"},"review_comments":{"href":"https://api.github.com/repos/openwrt/packages/pulls/2397/comments"},"review_comment":{"href":"https://api.github.com/repos/openwrt/packages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwrt/packages/pulls/2397/commits"},"statuses":{"href":"https://api.github.com/repos/openwrt/packages/statuses/5b1e9eefd01f098ad74389c967f1c5c9d1e286b3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jow-","id":2528802,"avatar_url":"https://avatars.githubusercontent.com/u/2528802?v=3","gravatar_id":"","url":"https://api.github.com/users/jow-","html_url":"https://github.com/jow-","followers_url":"https://api.github.com/users/jow-/followers","following_url":"https://api.github.com/users/jow-/following{/other_user}","gists_url":"https://api.github.com/users/jow-/gists{/gist_id}","starred_url":"https://api.github.com/users/jow-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jow-/subscriptions","organizations_url":"https://api.github.com/users/jow-/orgs","repos_url":"https://api.github.com/users/jow-/repos","events_url":"https://api.github.com/users/jow-/events{/privacy}","received_events_url":"https://api.github.com/users/jow-/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":0,"changed_files":1}}