コード例 #1
0
ファイル: linux_networking.py プロジェクト: deezeesms/dd-git
    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)
コード例 #2
0
 def _build(self, containerOsh):
     '__osh -> None'
     AggregatedRole._build(self, containerOsh)
コード例 #3
0
ファイル: aix_networking.py プロジェクト: ddonnelly19/dd-git
 def _build(self, containerOsh):
     '__osh -> None'
     AggregatedRole._build(self, containerOsh)