{"action":"created","issue":{"url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/219","repository_url":"https://api.github.com/repos/HewlettPackard/oneview-chef","labels_url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/219/comments","events_url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/219/events","html_url":"https://github.com/HewlettPackard/oneview-chef/pull/219","id":215668157,"number":219,"title":"Add connection templates","user":{"login":"vranystepan","id":88839,"avatar_url":"https://avatars0.githubusercontent.com/u/88839?v=3","gravatar_id":"","url":"https://api.github.com/users/vranystepan","html_url":"https://github.com/vranystepan","followers_url":"https://api.github.com/users/vranystepan/followers","following_url":"https://api.github.com/users/vranystepan/following{/other_user}","gists_url":"https://api.github.com/users/vranystepan/gists{/gist_id}","starred_url":"https://api.github.com/users/vranystepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vranystepan/subscriptions","organizations_url":"https://api.github.com/users/vranystepan/orgs","repos_url":"https://api.github.com/users/vranystepan/repos","events_url":"https://api.github.com/users/vranystepan/events{/privacy}","received_events_url":"https://api.github.com/users/vranystepan/received_events","type":"User","site_admin":false},"labels":[{"id":538498294,"url":"https://api.github.com/repos/HewlettPackard/oneview-chef/labels/API200","name":"API200","color":"f8b81f","default":false},{"id":406527992,"url":"https://api.github.com/repos/HewlettPackard/oneview-chef/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-21T08:58:46Z","updated_at":"2017-03-22T09:46:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HewlettPackard/oneview-chef/pulls/219","html_url":"https://github.com/HewlettPackard/oneview-chef/pull/219","diff_url":"https://github.com/HewlettPackard/oneview-chef/pull/219.diff","patch_url":"https://github.com/HewlettPackard/oneview-chef/pull/219.patch"},"body":"### Description\r\nAs secribed in the issue #218 , `ConnectionTemplateProvider` now supports `EthernetNetwork`, `FcNetwork`, `NetworkSet` and `FCoENetwork` \r\nRubocop seems to be happy, manipulation with resources works fine - tested with OneView Synergy edition.\r\n\r\n### Check List\r\n- [x] New functionality includes testing.\r\n  - [x] All tests pass (`$ rake test`).\r\n- [x] New functionality has been documented in the README if applicable.\r\n  - [x] New functionality has been thoroughly documented in [examples](https://github.com/HewlettPackard/oneview-chef/tree/master/examples/) (please include helpful comments).\r\n- [x] Changes documented in the [CHANGELOG](https://github.com/HewlettPackard/oneview-chef/blob/master/CHANGELOG.md).\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/comments/288347317","html_url":"https://github.com/HewlettPackard/oneview-chef/pull/219#issuecomment-288347317","issue_url":"https://api.github.com/repos/HewlettPackard/oneview-chef/issues/219","id":288347317,"user":{"login":"vranystepan","id":88839,"avatar_url":"https://avatars0.githubusercontent.com/u/88839?v=3","gravatar_id":"","url":"https://api.github.com/users/vranystepan","html_url":"https://github.com/vranystepan","followers_url":"https://api.github.com/users/vranystepan/followers","following_url":"https://api.github.com/users/vranystepan/following{/other_user}","gists_url":"https://api.github.com/users/vranystepan/gists{/gist_id}","starred_url":"https://api.github.com/users/vranystepan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vranystepan/subscriptions","organizations_url":"https://api.github.com/users/vranystepan/orgs","repos_url":"https://api.github.com/users/vranystepan/repos","events_url":"https://api.github.com/users/vranystepan/events{/privacy}","received_events_url":"https://api.github.com/users/vranystepan/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T09:46:04Z","updated_at":"2017-03-22T09:46:04Z","body":"# Functionality tests:\r\n## FC networks\r\n**code**\r\n```ruby\r\noneview_fc_network 'Fibre Channel A' do\r\n  client oneview_sdk_client\r\n  data(\r\n    fabricType: 'FabricAttach',\r\n    autoLoginRedistribution: true\r\n  )\r\nend\r\n\r\noneview_connection_template 'Update connection template: Fibre Channel A' do\r\n   client oneview_sdk_client\r\n   associated_fc_network 'Fibre Channel A'\r\n   data(\r\n     bandwidth: {\r\n       maximumBandwidth: 1000 * 8,\r\n       typicalBandwidth: 1000 * 8\r\n     }\r\n   )\r\nend\r\n```\r\n\r\n**Result:**\r\n<img width=\"260\" alt=\"fc\" src=\"https://cloud.githubusercontent.com/assets/88839/24191241/7e41c524-0eeb-11e7-856b-7570ecb13cc1.PNG\">\r\n\r\n## Network sets\r\n**code:**\r\n```ruby\r\noneview_network_set 'network_set' do\r\n  client oneview_sdk_client\r\n  ethernet_network_list ['network_1', 'network_2']\r\nend\r\n\r\noneview_connection_template 'Update connection template: network_set' do\r\n   client oneview_sdk_client\r\n   associated_network_set 'network_set'\r\n   data(\r\n     bandwidth: {\r\n       maximumBandwidth: 1000 * 10,\r\n       typicalBandwidth: 1000 * 10\r\n     }\r\n   )\r\nend\r\n\r\n```\r\n\r\n**Result:**\r\n<img width=\"330\" alt=\"ns\" src=\"https://cloud.githubusercontent.com/assets/88839/24191588/8a392632-0eec-11e7-85b6-d086cf82cce9.PNG\">\r\n\r\noverall, I'm happy with the functionality :)\r\n"}}
{"actor":{"display_login":"vranystepan"}}