From c1a8606095d4021c0f484d2bfa86fc15602503eb Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Wed, 21 Oct 2015 18:04:35 +0800 Subject: Add db api layer for CRUD operations on node tags - set/unset node tags - get node tags - add/delete single tag - check whether node tag exists - Delete all tags attached to the node when it's destroyed This will not support creating node with tags, just ignore the specified tags. Change-Id: Ibe83a726d904fd33b8550c8bec134cf05644560e Partial-bug: #1526266 --- ironic/tests/unit/api/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ironic/tests/unit/api/utils.py') diff --git a/ironic/tests/unit/api/utils.py b/ironic/tests/unit/api/utils.py index d44db2098..369a16307 100644 --- a/ironic/tests/unit/api/utils.py +++ b/ironic/tests/unit/api/utils.py @@ -95,6 +95,7 @@ def node_post_data(**kw): node.pop('chassis_id') node.pop('target_raid_config') node.pop('raid_config') + node.pop('tags') internal = node_controller.NodePatchType.internal_attrs() return remove_internal(node, internal) -- cgit v1.2.1