@Override protected HostNic addLinks(HostNic hostNic, String... subCollectionsToExclude) { if (hostNic.isSetVirtualFunctionsConfiguration()) { return super.addLinks(hostNic, subCollectionsToExclude); } else { final HostNic resultHostNic = super.addLinks(hostNic, ArrayUtils.concat(PF_SUB_COLLECTIONS, subCollectionsToExclude)); final Iterator<Link> linkIterator = resultHostNic.getActions().getLinks().iterator(); while (linkIterator.hasNext()) { final Link link = linkIterator.next(); if (link.getRel().equals(UPDATE_VFS_CONFIG_ACTION)) { linkIterator.remove(); } } if (isBond(resultHostNic)) { removeLldpLink(resultHostNic); } return resultHostNic; } }
to.setActions(adaptOut(from.getActions()));