- # incoming data (attributes) have a (name, value) pair
- # while PLC data (tags) have a (tagname, value) pair
- # we must be careful not to mix these up
- def verify_slice_attributes(self, slice, requested_slice_attributes, options=None, admin=False):
+ def verify_slice_tags(self, slice, requested_slice_attributes, options=None, admin=False):
+ """
+ This function deals with slice tags, and supports 3 modes described
+ in the 'pltags' option that can be either
+ (*) 'ignore' (default) - do nothing
+ (*) 'append' - only add incoming tags, that do not match an existing tag
+ (*) anything else - tries to do the plain wholesale thing,
+ i.e. to leave the db in sync with incoming tags
+ """