{"action":"opened","issue":{"url":"https://api.github.com/repos/sosreport/sos/issues/713","labels_url":"https://api.github.com/repos/sosreport/sos/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/sosreport/sos/issues/713/comments","events_url":"https://api.github.com/repos/sosreport/sos/issues/713/events","html_url":"https://github.com/sosreport/sos/issues/713","id":124712896,"number":713,"title":"[openstack_neutron] replace deprecated ifconfig command","user":{"login":"pmoravec","id":4340368,"avatar_url":"https://avatars.githubusercontent.com/u/4340368?v=3","gravatar_id":"","url":"https://api.github.com/users/pmoravec","html_url":"https://github.com/pmoravec","followers_url":"https://api.github.com/users/pmoravec/followers","following_url":"https://api.github.com/users/pmoravec/following{/other_user}","gists_url":"https://api.github.com/users/pmoravec/gists{/gist_id}","starred_url":"https://api.github.com/users/pmoravec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmoravec/subscriptions","organizations_url":"https://api.github.com/users/pmoravec/orgs","repos_url":"https://api.github.com/users/pmoravec/repos","events_url":"https://api.github.com/users/pmoravec/events{/privacy}","received_events_url":"https://api.github.com/users/pmoravec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-04T08:06:27Z","updated_at":"2016-01-04T08:06:27Z","closed_at":null,"body":"openstack_neutron plugin uses deprecated command `ifconfig -a` and parses that output further:\r\n\r\n    # TODO: Refactor! Copied from Networking plugin.\r\n    def get_interface_name(self, ip_addr_out):\r\n        \"\"\"Return a dictionary for which key are interface name according to\r\n        the output of ifconifg-a stored in ifconfig_file.\r\n        \"\"\"\r\n    ..\r\n        \r\n    def ns_gather_data(self, nsname):\r\n        cmd_prefix = \"ip netns exec %s \" % nsname\r\n        self.add_cmd_output([\r\n            cmd_prefix + \"iptables-save\",\r\n            cmd_prefix + \"ifconfig -a\",\r\n            cmd_prefix + \"route -n\"\r\n        ])\r\n    ..\r\n\r\nThe command shall be replaced by e.g. `ip link`."}}