Revision a5a15eba
b/snf-cyclades-app/synnefo/api/management/commands/ip-list.py | ||
---|---|---|
47 | 47 |
make_option( |
48 | 48 |
'--address', |
49 | 49 |
dest='address', |
50 |
help="Get logs about a specif IP"),
|
|
50 |
help="Display IP history only for this address"),
|
|
51 | 51 |
make_option( |
52 | 52 |
'--server', |
53 | 53 |
dest='server', |
54 |
help="Get logs about a specif server"), |
|
54 |
help="Display IP history only for this server"), |
|
55 |
make_option( |
|
56 |
'--active', |
|
57 |
dest="active", |
|
58 |
action="store_true", |
|
59 |
default=False, |
|
60 |
help="Display only IPs that are currently in use") |
|
55 | 61 |
) |
56 | 62 |
|
57 | 63 |
object_class = IPAddressLog |
... | ... | |
73 | 79 |
self.filters["address"] = options["address"] |
74 | 80 |
if options["server"]: |
75 | 81 |
self.filters["server_id"] = options["server"] |
82 |
if options["active"]: |
|
83 |
self.filters["active"] = True |
Also available in: Unified diff