{"action":"closed","issue":{"url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/46","labels_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/46/comments","events_url":"https://api.github.com/repos/CiscoDevNet/cosc-learning-labs/issues/46/events","html_url":"https://github.com/CiscoDevNet/cosc-learning-labs/issues/46","id":79460502,"number":46,"title":"05_acl_apply_packet_filter.py Python 2 fails when called after ./05_acl_create_port_grant.py ","user":{"login":"NathanCisco","id":7212288,"avatar_url":"https://avatars.githubusercontent.com/u/7212288?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanCisco","html_url":"https://github.com/NathanCisco","followers_url":"https://api.github.com/users/NathanCisco/followers","following_url":"https://api.github.com/users/NathanCisco/following{/other_user}","gists_url":"https://api.github.com/users/NathanCisco/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanCisco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanCisco/subscriptions","organizations_url":"https://api.github.com/users/NathanCisco/orgs","repos_url":"https://api.github.com/users/NathanCisco/repos","events_url":"https://api.github.com/users/NathanCisco/events{/privacy}","received_events_url":"https://api.github.com/users/NathanCisco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-22T13:42:43Z","updated_at":"2015-05-27T16:03:59Z","closed_at":"2015-05-27T16:03:59Z","body":"./05_acl_create_port_grant.py \r\n\r\n...\r\n./05_acl_apply_packet_filter.py \r\ncosc authentication url: https://198.18.1.25/controller-auth\r\n...\r\ncosc authentication status code: 201\r\nPython Library Documentation: function acl_apply_packet_filter in module basics.acl_apply\r\n\r\nacl_apply_packet_filter(device_name, interface_name, bound, acl_name)\r\n\r\nConsider por GigabitEthernet0/0/0/1 in=None, out=None\r\nacl_apply_packet_filter(por, GigabitEthernet0/0/0/1, outbound, port_www_deny_tcp)\r\nTraceback (most recent call last):\r\n  File \"./05_acl_apply_packet_filter.py\", line 65, in <module>\r\n    sys_exit(main())\r\n  File \"./05_acl_apply_packet_filter.py\", line 56, in main\r\n    demonstrate(device_name, ic.name, 'outbound', acl_name)\r\n  File \"./05_acl_apply_packet_filter.py\", line 33, in demonstrate\r\n    acl_apply_packet_filter(device_name, interface_name, bound, acl_name)\r\n  File \"/home/cisco/git/cosc-learning-labs/src/basics/acl_apply.py\", line 34, in acl_apply_packet_filter\r\n    response = odl_http_post(_url_apply_template, {'node-id' : device_name}, 'application/json', request_content)\r\n  File \"/home/cisco/git/cosc-learning-labs/src/basics/odl_http.py\", line 167, in odl_http_post\r\n    return odl_http_request('post', url_suffix, url_params, contentType, content, accept, expected_status_code)\r\n  File \"/home/cisco/git/cosc-learning-labs/src/basics/odl_http.py\", line 130, in odl_http_request\r\n    raise Exception(msg)\r\nException: Expected HTTP status code 204, got 400, \"{\r\n    \"errors\": {\r\n        \"error\": [\r\n            {\r\n                \"error-type\": \"protocol\",\r\n                \"error-tag\": \"malformed-message\",\r\n                \"error-message\": \"Error parsing input: Root element of Json has to be Object\"\r\n            }\r\n        ]\r\n    }\r\n}\"\r\ncisco@ubuntu:~/git/cosc-learning-labs/src/learning_lab$ \r\n"}}