@staticmethod
    def remove_slivers(xml, hostnames):
        for hostname in hostnames:
            nodes = NITOSv1Node.get_nodes(xml, {'component_id': '*%s*' % hostname})
            for node in nodes:
                slivers = NITOSv1Sliver.get_slivers(node.element)
                for sliver in slivers:
                    node.element.remove(sliver.element)
dataset/ETHPy150Open fp7-ofelia/ocf/optin_manager/src/python/openflow/optin_manager/sfa/rspecs/elements/versions/nitosv1Node.py/NITOSv1Node.remove_slivers/original