Changeset 1684:f0b3faf49986
- Timestamp:
- 06/27/08 14:59:32 (4 months ago)
- Author:
- klai@…
- Branch:
- default
- Message:
-
Accept IPv4Address:1 as a bid for any address
- Location:
- src/Tycoon
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1634
|
r1684
|
|
| 347 | 347 | continue |
| 348 | 348 | pref.verify(False) |
| 349 | | # Normalize resource requirements |
| 350 | | #capacity = self.__resource_types[name[0]].get_capacity() |
| 351 | | #pref.normalize(capacity) |
| 352 | 349 | |
| 353 | 350 | # 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": |
| 355 | 352 | del bid.preferences[name] |
| 356 | 353 | xml_pref = xml_bid['preferences'][name] |
-
|
r1682
|
r1684
|
|
| 422 | 422 | tycoon host bid host1 1y TCPv4Port,8088:1:80 |
| 423 | 423 | |
| 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 |
| 426 | 431 | bidding for address 1.2.3.4: |
| 427 | 432 | |