{"action":"created","issue":{"url":"https://api.github.com/repos/librenms/librenms/issues/2797","labels_url":"https://api.github.com/repos/librenms/librenms/issues/2797/labels{/name}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/2797/comments","events_url":"https://api.github.com/repos/librenms/librenms/issues/2797/events","html_url":"https://github.com/librenms/librenms/pull/2797","id":127132808,"number":2797,"title":"Issue 386 v2","user":{"login":"BarbarossaTM","id":10324868,"avatar_url":"https://avatars.githubusercontent.com/u/10324868?v=3","gravatar_id":"","url":"https://api.github.com/users/BarbarossaTM","html_url":"https://github.com/BarbarossaTM","followers_url":"https://api.github.com/users/BarbarossaTM/followers","following_url":"https://api.github.com/users/BarbarossaTM/following{/other_user}","gists_url":"https://api.github.com/users/BarbarossaTM/gists{/gist_id}","starred_url":"https://api.github.com/users/BarbarossaTM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BarbarossaTM/subscriptions","organizations_url":"https://api.github.com/users/BarbarossaTM/orgs","repos_url":"https://api.github.com/users/BarbarossaTM/repos","events_url":"https://api.github.com/users/BarbarossaTM/events{/privacy}","received_events_url":"https://api.github.com/users/BarbarossaTM/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/librenms/librenms/labels/Conflict","name":"Conflict","color":"fbca04"},{"url":"https://api.github.com/repos/librenms/librenms/labels/Schema","name":"Schema","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-17T23:41:01Z","updated_at":"2016-01-26T08:16:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/librenms/librenms/pulls/2797","html_url":"https://github.com/librenms/librenms/pull/2797","diff_url":"https://github.com/librenms/librenms/pull/2797.diff","patch_url":"https://github.com/librenms/librenms/pull/2797.patch"},"body":"By default libreNMS used the ifIndex to associate ports just found via SNMP\r\nwith ports discoverd/polled before and stored in the database. On Linux boxes\r\nthis is a problem as ifIndexes are rather likely to be unstable between reboots\r\nor (re)configuration of tunnel interfaces (think: GRE/OpenVPN/Tinc/...), bridges,\r\nVlan interfaces, Bonding interfaces, etc.\r\n\r\nThis patch set adds a »port association mode« configuration option per device which\r\nallows to map discovered and known ports by their ifIndex, ifName, ifDescr, or\r\nmaybe other means in the future.\r\nThe default port association mode still is ifIndex for compatibility reasons.\r\n\r\nAs port RRD files were stored by their ifIndex before, they are now identified\r\nby their unique and stable port_id to ensure a stable and unique mapping and\r\nallow future port association modes to be added without requireing any further\r\ninternal changes. Existing RRD files are renamend accordingly in discovery and\r\npoller tools to ensure stability of port associations in both modules as we\r\ndon't know which might run first after an update.\r\n\r\nThe graphs are updated to read port data from the new path using a generic function.\r\nThe CLI and WebUI interface for adding and editing a host are updated to reflect the new option as well."},"comment":{"url":"https://api.github.com/repos/librenms/librenms/issues/comments/174885616","html_url":"https://github.com/librenms/librenms/pull/2797#issuecomment-174885616","issue_url":"https://api.github.com/repos/librenms/librenms/issues/2797","id":174885616,"user":{"login":"f0o","id":1656377,"avatar_url":"https://avatars.githubusercontent.com/u/1656377?v=3","gravatar_id":"","url":"https://api.github.com/users/f0o","html_url":"https://github.com/f0o","followers_url":"https://api.github.com/users/f0o/followers","following_url":"https://api.github.com/users/f0o/following{/other_user}","gists_url":"https://api.github.com/users/f0o/gists{/gist_id}","starred_url":"https://api.github.com/users/f0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f0o/subscriptions","organizations_url":"https://api.github.com/users/f0o/orgs","repos_url":"https://api.github.com/users/f0o/repos","events_url":"https://api.github.com/users/f0o/events{/privacy}","received_events_url":"https://api.github.com/users/f0o/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T08:16:18Z","updated_at":"2016-01-26T08:16:18Z","body":"I'd say so :)"}}