{"action":"created","issue":{"url":"https://api.github.com/repos/telstra/open-kilda/issues/328","repository_url":"https://api.github.com/repos/telstra/open-kilda","labels_url":"https://api.github.com/repos/telstra/open-kilda/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/telstra/open-kilda/issues/328/comments","events_url":"https://api.github.com/repos/telstra/open-kilda/issues/328/events","html_url":"https://github.com/telstra/open-kilda/issues/328","id":301356500,"node_id":"MDU6SXNzdWUzMDEzNTY1MDA=","number":328,"title":"Create a way to delete switch","user":{"login":"nikitamarchenko","id":3450363,"node_id":"MDQ6VXNlcjM0NTAzNjM=","avatar_url":"https://avatars3.githubusercontent.com/u/3450363?v=4","gravatar_id":"","url":"https://api.github.com/users/nikitamarchenko","html_url":"https://github.com/nikitamarchenko","followers_url":"https://api.github.com/users/nikitamarchenko/followers","following_url":"https://api.github.com/users/nikitamarchenko/following{/other_user}","gists_url":"https://api.github.com/users/nikitamarchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitamarchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitamarchenko/subscriptions","organizations_url":"https://api.github.com/users/nikitamarchenko/orgs","repos_url":"https://api.github.com/users/nikitamarchenko/repos","events_url":"https://api.github.com/users/nikitamarchenko/events{/privacy}","received_events_url":"https://api.github.com/users/nikitamarchenko/received_events","type":"User","site_admin":false},"labels":[{"id":704026953,"node_id":"MDU6TGFiZWw3MDQwMjY5NTM=","url":"https://api.github.com/repos/telstra/open-kilda/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":902866622,"node_id":"MDU6TGFiZWw5MDI4NjY2MjI=","url":"https://api.github.com/repos/telstra/open-kilda/labels/feature","name":"feature","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"Settis","id":1427656,"node_id":"MDQ6VXNlcjE0Mjc2NTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1427656?v=4","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false},"assignees":[{"login":"Settis","id":1427656,"node_id":"MDQ6VXNlcjE0Mjc2NTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1427656?v=4","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-03-01T10:42:11Z","updated_at":"2018-07-25T14:23:31Z","closed_at":null,"author_association":"COLLABORATOR","body":"Check that switch is not a part of flow\r\nDelete switch from neo4j\r\nDelete switch from cache\r\n\r\nProposed design\r\n---------------------\r\nAdd `DELETE` action to `/switches/{switch_id}` in NB API with optional flag `force` (default is false).\r\nThe action must be protected by `EXTRA_AUTH`.\r\nFeature workflow:\r\n1. Check `force` flag. If true - go to step 4.\r\n2. Check that the switch is not a part of flow. Do `/switches/{switch_id}/rules/validate` and check that no rules are presented. Otherwise raise an error \"Switch have assigned rules. It must be freed first\".\r\n3. Check that the switch have no active ISL's. Otherwise raise an error \"Switch have active links. Ensure that it the switch is unplugged first\".\r\n4. Delete switch from neo4j.\r\n5. Delete switch from cache or make `actualize call` on cache if present.\r\n"},"comment":{"url":"https://api.github.com/repos/telstra/open-kilda/issues/comments/407772392","html_url":"https://github.com/telstra/open-kilda/issues/328#issuecomment-407772392","issue_url":"https://api.github.com/repos/telstra/open-kilda/issues/328","id":407772392,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzc3MjM5Mg==","user":{"login":"Settis","id":1427656,"node_id":"MDQ6VXNlcjE0Mjc2NTY=","avatar_url":"https://avatars3.githubusercontent.com/u/1427656?v=4","gravatar_id":"","url":"https://api.github.com/users/Settis","html_url":"https://github.com/Settis","followers_url":"https://api.github.com/users/Settis/followers","following_url":"https://api.github.com/users/Settis/following{/other_user}","gists_url":"https://api.github.com/users/Settis/gists{/gist_id}","starred_url":"https://api.github.com/users/Settis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Settis/subscriptions","organizations_url":"https://api.github.com/users/Settis/orgs","repos_url":"https://api.github.com/users/Settis/repos","events_url":"https://api.github.com/users/Settis/events{/privacy}","received_events_url":"https://api.github.com/users/Settis/received_events","type":"User","site_admin":false},"created_at":"2018-07-25T14:23:31Z","updated_at":"2018-07-25T14:23:31Z","author_association":"COLLABORATOR","body":"The issue description was updated with Proposed design."}}
{"actor":{"display_login":"Settis"}}