{"action":"created","issue":{"url":"https://api.github.com/repos/IRATI/demonstrator/issues/27","repository_url":"https://api.github.com/repos/IRATI/demonstrator","labels_url":"https://api.github.com/repos/IRATI/demonstrator/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/IRATI/demonstrator/issues/27/comments","events_url":"https://api.github.com/repos/IRATI/demonstrator/issues/27/events","html_url":"https://github.com/IRATI/demonstrator/issues/27","id":190264324,"number":27,"title":"Allow to speficy policies per VM per DIF","user":{"login":"edugrasa","id":325005,"avatar_url":"https://avatars.githubusercontent.com/u/325005?v=3","gravatar_id":"","url":"https://api.github.com/users/edugrasa","html_url":"https://github.com/edugrasa","followers_url":"https://api.github.com/users/edugrasa/followers","following_url":"https://api.github.com/users/edugrasa/following{/other_user}","gists_url":"https://api.github.com/users/edugrasa/gists{/gist_id}","starred_url":"https://api.github.com/users/edugrasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edugrasa/subscriptions","organizations_url":"https://api.github.com/users/edugrasa/orgs","repos_url":"https://api.github.com/users/edugrasa/repos","events_url":"https://api.github.com/users/edugrasa/events{/privacy}","received_events_url":"https://api.github.com/users/edugrasa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T08:42:17Z","updated_at":"2016-11-18T09:03:24Z","closed_at":null,"body":"Optionally, allow a policy to be specified per machine (not for the full DIF). This is useful for specifying security policies, but also for scheduling policies for instance (e.g. not all the members of the DIF need to run a multi-path forwarding policy, only those that have multiple paths). I think that the easiest way would be to modify the policy directive the following way:\r\n\r\npolicy [only_for_nodes=NODE_NAME1, NODE_NAME2, ...] DIF_NAME COMPONENT_PATH POLICY_SET_NAME [PARAM1=VALUE1 PARAM2=VALUE2 ...]\r\n\r\nSo adding an optional \"only_for_nodes\" parameter that points to the list of nodes to which the policy applies. Default is this parameter is not there and therefore the policy applies to all the nodes in the DIF. What do you think?"},"comment":{"url":"https://api.github.com/repos/IRATI/demonstrator/issues/comments/261481720","html_url":"https://github.com/IRATI/demonstrator/issues/27#issuecomment-261481720","issue_url":"https://api.github.com/repos/IRATI/demonstrator/issues/27","id":261481720,"user":{"login":"vmaffione","id":4920001,"avatar_url":"https://avatars.githubusercontent.com/u/4920001?v=3","gravatar_id":"","url":"https://api.github.com/users/vmaffione","html_url":"https://github.com/vmaffione","followers_url":"https://api.github.com/users/vmaffione/followers","following_url":"https://api.github.com/users/vmaffione/following{/other_user}","gists_url":"https://api.github.com/users/vmaffione/gists{/gist_id}","starred_url":"https://api.github.com/users/vmaffione/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmaffione/subscriptions","organizations_url":"https://api.github.com/users/vmaffione/orgs","repos_url":"https://api.github.com/users/vmaffione/repos","events_url":"https://api.github.com/users/vmaffione/events{/privacy}","received_events_url":"https://api.github.com/users/vmaffione/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T09:03:24Z","updated_at":"2016-11-18T09:03:24Z","body":"Yes, this makes sense. I don't like the syntax, because optional parameters don't go first.\r\n\r\nA better syntax would be:\r\n````\r\npolicy DIF_NAME [*|NODE1,NODE2,...,NODEK] COMPONENT_PATH POLICY_SET_NAME  [PARAM1=VALUE1 PARAM2=VALUE2 ...]\r\n````\r\n\r\nwhere \"*\" means all the nodes in the DIF."}}
{"actor":{"display_login":"vmaffione"}}