From e7d38240f2918257c36c774c3144c6d29ad09037 Mon Sep 17 00:00:00 2001 From: ChuckC Date: Mon, 4 Aug 2014 16:52:36 -0700 Subject: [PATCH] Allow port mac_address to be modified With ironic servers, a NIC can fail and be replaced with one that has a different mac. The corresponding neutron port needs to be updated with the new mac address so the NIC can be guaranteed to retain the same IP address. This change enables this feature in the ml2 plugin. There may need to be changes to other plugins to disable or complete the implementation of this feature. Closes-Bug: #1341268 Partially-implements: blueprint allow-mac-to-be-updated APIImpact: Ports DocImpact: minor port update api change Change-Id: I1864c0882cda7eddc9ced519ed3f96c91b2b63f3 --- etc/policy.json | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/policy.json b/etc/policy.json index 4c7f0036..20eb52fe 100644 --- a/etc/policy.json +++ b/etc/policy.json @@ -52,6 +52,7 @@ "get_port:binding:host_id": "rule:admin_only", "get_port:binding:profile": "rule:admin_only", "update_port": "rule:admin_or_owner or rule:context_is_advsvc", + "update_port:mac_address": "rule:admin_only or rule:context_is_advsvc", "update_port:fixed_ips": "rule:admin_or_network_owner or rule:context_is_advsvc", "update_port:port_security_enabled": "rule:admin_or_network_owner or rule:context_is_advsvc", "update_port:binding:host_id": "rule:admin_only",