def __setAggregationRole(self, unixNetworking, aggregation): aggregationName = aggregation[0] aggregatedNames = aggregation[1] aggregationRole = AggregationRole() aggregatedInterfaces = filter(None, map(unixNetworking.getInterfaceByName, aggregatedNames)) map(aggregationRole.addInterface, aggregatedInterfaces) aggregatingInterface = unixNetworking.getInterfaceByName(aggregationName) if aggregatingInterface: aggregatingInterface._addRole(aggregationRole) for aggregatedInterface in aggregatedInterfaces: aggregatedRole = AggregatedRole() aggregatedRole.setAggregatingInterface(aggregatingInterface) aggregatedInterface._addRole(aggregatedRole)
def _build(self, containerOsh): '__osh -> None' AggregatedRole._build(self, containerOsh)