Example #1
0
    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)
Example #2
0
 def _build(self, containerOsh):
     '__osh -> None'
     AggregatedRole._build(self, containerOsh)
Example #3
0
 def _build(self, containerOsh):
     '__osh -> None'
     AggregatedRole._build(self, containerOsh)