{"action":"created","issue":{"url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/1","labels_url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/1/comments","events_url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/1/events","html_url":"https://github.com/chickenandpork/vw4tools/issues/1","id":66978914,"number":1,"title":"Entity types definitions","user":{"login":"vtarmo","id":11841808,"avatar_url":"https://avatars.githubusercontent.com/u/11841808?v=3","gravatar_id":"","url":"https://api.github.com/users/vtarmo","html_url":"https://github.com/vtarmo","followers_url":"https://api.github.com/users/vtarmo/followers","following_url":"https://api.github.com/users/vtarmo/following{/other_user}","gists_url":"https://api.github.com/users/vtarmo/gists{/gist_id}","starred_url":"https://api.github.com/users/vtarmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtarmo/subscriptions","organizations_url":"https://api.github.com/users/vtarmo/orgs","repos_url":"https://api.github.com/users/vtarmo/repos","events_url":"https://api.github.com/users/vtarmo/events{/privacy}","received_events_url":"https://api.github.com/users/vtarmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T20:02:12Z","updated_at":"2015-04-10T18:50:56Z","closed_at":null,"body":"Possibility to create a regexp pattern matcher for storage a way that I have entity types as storagearray, storagecontroller and fcport all per array? In example I have VNX5600-a-0 and VNX5600-b-0, where \"a\" and \"b\" are actually storage controllers and 0 is a port on controller. Herewith following is the wished simplified JSON result file:\r\n\r\n<code>\r\n{\r\n \"entities\" : \r\n [\r\n   {\r\n    \"edit_type\" : \"add\",\r\n    \"name\" : \"VNX5600-a-1\",\r\n    \"type\" : \"fcport\",\r\n    \"wwn\" : \"5006016e08605106\"\r\n   }, \r\n   {\r\n    \"edit_type\" : \"add\",\r\n    \"name\" : \"VNX5600-a-2\",\r\n    \"type\" : \"fcport\",\r\n    \"wwn\" : \"5006016208605106\"\r\n   }, \r\n   {\r\n    \"edit_type\" : \"add\",\r\n    \"name\" : \"VNX5600-b-1\",\r\n    \"type\" : \"fcport\",\r\n    \"wwn\" : \"5006016508605106\"\r\n   }, \r\n   {\r\n    \"edit_type\" : \"add\",\r\n    \"name\" : \"VNX5600-b-2\",\r\n    \"type\" : \"fcport\",\r\n    \"wwn\" : \"5006016a08605106\"\r\n   },\r\n   {\r\n     \"name\" : \"VNX5600-a\", \r\n     \"type\" : \"storagecontroller\",  \r\n     \"child_entities\" : {\"add\" : \r\n                          [\"VNX5600-a-1\",\r\n                           \"VNX5600-a-2\",\r\n                          ] } \r\n   },\r\n   {\r\n     \"name\" : \"VNX5600-b\", \r\n     \"type\" : \"storagecontroller\",  \r\n     \"child_entities\" : {\"add\" : \r\n                          [\"VNX5600-b-1\",\r\n                           \"VNX5600-b-2\",\r\n                          ] } \r\n   },\r\n   {\r\n     \"name\" : \"VNX5600\", \r\n     \"type\" : \"storagearray\",  \r\n     \"child_entities\" : {\"add\" : \r\n                          [\"VNX5600-a\",\r\n                           \"VNX5600-b\"\r\n                          ] } \r\n   } ],\r\n  \t \"version\" : \"1\"\r\n}\r\n</code\r\n\r\n>"},"comment":{"url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/comments/91650005","html_url":"https://github.com/chickenandpork/vw4tools/issues/1#issuecomment-91650005","issue_url":"https://api.github.com/repos/chickenandpork/vw4tools/issues/1","id":91650005,"user":{"login":"chickenandpork","id":2320540,"avatar_url":"https://avatars.githubusercontent.com/u/2320540?v=3","gravatar_id":"","url":"https://api.github.com/users/chickenandpork","html_url":"https://github.com/chickenandpork","followers_url":"https://api.github.com/users/chickenandpork/followers","following_url":"https://api.github.com/users/chickenandpork/following{/other_user}","gists_url":"https://api.github.com/users/chickenandpork/gists{/gist_id}","starred_url":"https://api.github.com/users/chickenandpork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chickenandpork/subscriptions","organizations_url":"https://api.github.com/users/chickenandpork/orgs","repos_url":"https://api.github.com/users/chickenandpork/repos","events_url":"https://api.github.com/users/chickenandpork/events{/privacy}","received_events_url":"https://api.github.com/users/chickenandpork/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T18:50:56Z","updated_at":"2015-04-10T18:50:56Z","body":"How would you define each level?  For example, how would you define the custom pattern to break out VNX5600-a-2 into VNX5600-a and VNX5600?  This may seem obvious for this example, but it'more complex for complex environments.\r\n\r\nWhen we're doing this, the same sort of option command needs to be workable for SVC nodes and for VMAX nodes."}}