- manage_hmac (plc, sliver)
- manage_sshkey (plc, sliver)
+ system_slice = False
+ for chunk in sliver['attributes']:
+ if chunk['tagname'] == "system":
+ if chunk['value'] in (True, 1, '1') or chunk['value'].lower() == "true":
+ system_slice = True
+
+ for chunk in sliver['attributes']:
+ if chunk['tagname']=='enable_hmac' and not system_slice:
+ manage_hmac (plc, sliver)
+
+ if chunk['tagname']=='omf_control':
+ manage_sshkey (plc, sliver)