Only get the hmac tag.
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Sat, 26 Sep 2009 12:30:50 +0000 (12:30 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Sat, 26 Sep 2009 12:30:50 +0000 (12:30 +0000)
plugins/sliverauth.py

index 8bb03a2..7b29dba 100644 (file)
@@ -24,7 +24,7 @@ def start(options, conf):
 
 def SetSliverTag(plc, slice, tagname, value):
     node_id = tools.node_id()
-    slivertags=plc.GetSliceTags({"name":slice,"node_id":node_id})
+    slivertags=plc.GetSliceTags({"name":slice,"node_id":node_id,"tagname":tagname})
     if len(slivertags)==0:
         slivertag_id=plc.AddSliceTag(slice,tagname,value,node_id)
     else: