{"action":"created","issue":{"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/55","repository_url":"https://api.github.com/repos/napalm-automation/napalm-nxos","labels_url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/55/comments","events_url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/55/events","html_url":"https://github.com/napalm-automation/napalm-nxos/pull/55","id":195755160,"number":55,"title":"Updates","user":{"login":"GGabriele","id":4542862,"avatar_url":"https://avatars.githubusercontent.com/u/4542862?v=3","gravatar_id":"","url":"https://api.github.com/users/GGabriele","html_url":"https://github.com/GGabriele","followers_url":"https://api.github.com/users/GGabriele/followers","following_url":"https://api.github.com/users/GGabriele/following{/other_user}","gists_url":"https://api.github.com/users/GGabriele/gists{/gist_id}","starred_url":"https://api.github.com/users/GGabriele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GGabriele/subscriptions","organizations_url":"https://api.github.com/users/GGabriele/orgs","repos_url":"https://api.github.com/users/GGabriele/repos","events_url":"https://api.github.com/users/GGabriele/events{/privacy}","received_events_url":"https://api.github.com/users/GGabriele/received_events","type":"User","site_admin":false},"labels":[{"id":342464077,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/bug","name":"bug","color":"fc2929","default":true},{"id":444708550,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/enhancement","name":"enhancement","color":"424242","default":true},{"id":455520463,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/hackathon2016","name":"hackathon2016","color":"ededed","default":false},{"id":438801719,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/internal","name":"internal","color":"84b6eb","default":false},{"id":361822278,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/new_method","name":"new_method","color":"5319e7","default":false},{"id":438800888,"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/labels/transport_issue","name":"transport_issue","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/milestones/11","html_url":"https://github.com/napalm-automation/napalm-nxos/milestone/11","labels_url":"https://api.github.com/repos/napalm-automation/napalm-nxos/milestones/11/labels","id":2159594,"number":11,"title":"0.5.0","description":null,"creator":{"login":"mirceaulinic","id":16694679,"avatar_url":"https://avatars.githubusercontent.com/u/16694679?v=3","gravatar_id":"","url":"https://api.github.com/users/mirceaulinic","html_url":"https://github.com/mirceaulinic","followers_url":"https://api.github.com/users/mirceaulinic/followers","following_url":"https://api.github.com/users/mirceaulinic/following{/other_user}","gists_url":"https://api.github.com/users/mirceaulinic/gists{/gist_id}","starred_url":"https://api.github.com/users/mirceaulinic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirceaulinic/subscriptions","organizations_url":"https://api.github.com/users/mirceaulinic/orgs","repos_url":"https://api.github.com/users/mirceaulinic/repos","events_url":"https://api.github.com/users/mirceaulinic/events{/privacy}","received_events_url":"https://api.github.com/users/mirceaulinic/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2016-11-27T21:54:47Z","updated_at":"2016-12-15T09:30:47Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-12-15T09:25:45Z","updated_at":"2016-12-16T09:09:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/pulls/55","html_url":"https://github.com/napalm-automation/napalm-nxos/pull/55","diff_url":"https://github.com/napalm-automation/napalm-nxos/pull/55.diff","patch_url":"https://github.com/napalm-automation/napalm-nxos/pull/55.patch"},"body":"@dbarrosop as anticipated, I'm migrating NXOS driver from `pycsco` to `pynxos`. Here I'm also addressing #54 , #52 , #51 and #30 . \r\n\r\nAll the config management tests are passing but I'm definitely missing something on the new test framework for getters. The error I get is always likes `Failed: No test case for 'test_get_snmp_information' found`. \r\n\r\nI've lately included these lines on `conftest.py`.\r\n```\r\n    def __init__(self):\r\n        full_path = self.find_file('facts.json')\r\n        self.facts = self.read_json_file(full_path)\r\n```\r\nI did so because the way I'm getting facts is through `facts` attribute from the `pynxos` object.\r\n```\r\n    def get_facts(self):\r\n        pynxos_facts = self.device.facts\r\n\r\n```\r\n\r\nAnyway, when I do so the error becomes this: \r\n```\r\nself = <test.unit.conftest.FakeNXOSDevice object at 0x7f055be6d950>, filename = 'facts.json'\r\n\r\n    def find_file(self, filename):\r\n        \"\"\"Find the necessary file for the given test case.\"\"\"\r\n        # Find base_dir of submodule\r\n        module_dir = os.path.dirname(sys.modules[self.__module__].__file__)\r\n    \r\n        full_path = os.path.join(module_dir, 'mocked_data',\r\n>                                self.current_test, self.current_test_case, filename)\r\nE       AttributeError: 'FakeNXOSDevice' object has no attribute 'current_test'\r\n\r\n/usr/local/lib/python2.7/dist-packages/napalm_base/test/double.py:27: AttributeError\r\n```\r\n\r\nAny tips to overcome these?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/comments/267549404","html_url":"https://github.com/napalm-automation/napalm-nxos/pull/55#issuecomment-267549404","issue_url":"https://api.github.com/repos/napalm-automation/napalm-nxos/issues/55","id":267549404,"user":{"login":"mirceaulinic","id":16694679,"avatar_url":"https://avatars.githubusercontent.com/u/16694679?v=3","gravatar_id":"","url":"https://api.github.com/users/mirceaulinic","html_url":"https://github.com/mirceaulinic","followers_url":"https://api.github.com/users/mirceaulinic/followers","following_url":"https://api.github.com/users/mirceaulinic/following{/other_user}","gists_url":"https://api.github.com/users/mirceaulinic/gists{/gist_id}","starred_url":"https://api.github.com/users/mirceaulinic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirceaulinic/subscriptions","organizations_url":"https://api.github.com/users/mirceaulinic/orgs","repos_url":"https://api.github.com/users/mirceaulinic/repos","events_url":"https://api.github.com/users/mirceaulinic/events{/privacy}","received_events_url":"https://api.github.com/users/mirceaulinic/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T09:09:11Z","updated_at":"2016-12-16T09:09:11Z","body":"I've just noticed another thing on ```get_interfaces``` it always says that it's down:\r\n\r\n```\r\n>>> n.get_interfaces()['Ethernet1/3']\r\n{u'is_enabled': True, u'description': u'', u'last_flapped': 1467796042.406583, u'is_up': False, u'mac_address': u'00:2A:6A:F5:AE:2A', u'speed': 10000000000}\r\n```\r\n\r\nAlthough on the device:\r\n\r\n```\r\nsw01.pdx01# sh int Ethernet1/3\r\nEthernet1/3 is up\r\n Dedicated Interface\r\n\r\n  Belongs to Po22\r\n```\r\n"}}
{"actor":{"display_login":"mirceaulinic"}}