Changeset 1684:f0b3faf49986

Show
Ignore:
Timestamp:
06/27/08 14:59:32 (2 months ago)
Author:
klai@…
Branch:
default
Message:

Accept IPv4Address:1 as a bid for any address

Location:
src/Tycoon
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/Tycoon/AuctioneerAllocator.py

    r1634 r1684  
    347347                continue 
    348348            pref.verify(False) 
    349             # Normalize resource requirements 
    350             #capacity = self.__resource_types[name[0]].get_capacity() 
    351             #pref.normalize(capacity) 
    352349 
    353350            # Rewrite the bid if the user specifies a wildcard 
    354             if name == "IPv4Address,0.0.0.0": 
     351            if name == "IPv4Address,0.0.0.0" or name == "IPv4Address": 
    355352                del bid.preferences[name] 
    356353                xml_pref = xml_bid['preferences'][name] 
  • src/Tycoon/CmdLineAuctioneerClient.py

    r1682 r1684  
    422422        tycoon host bid host1 1y TCPv4Port,8088:1:80 
    423423 
    424         The form of an IP address preference is IPv4Address,ip_address:weight. 
    425         The ip address is in the typical x.x.x.x form. This is an example of 
     424        The form of an IP address preference is IPv4Address:weight. This 
     425        will get you any available address on the remote host: 
     426 
     427        tycoon host bid host1 1y IPv4Address:1 
     428 
     429        You can also request a specify address by using the preference 
     430        IPv4Address,x.x.x.x:weight. This is an example of 
    426431        bidding for address 1.2.3.4: 
    427432