We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf1c95 commit 1185bccCopy full SHA for 1185bcc
ip_pool/cli.py
@@ -16,6 +16,11 @@ def parse_args():
16
metavar="HOSTNAME",
17
help="Allocate next unused address to HOSTNAME",
18
)
19
+ parser.add_argument(
20
+ "--release-address",
21
+ metavar="HOSTNAME",
22
+ help="Release address for HOSTNAME and return it to the pool",
23
+ )
24
parsed = parser.parse_args()
25
return parsed
26
@@ -26,6 +31,10 @@ def ip_pool_main():
31
if options.initialize:
27
32
pool.initialize(options.initialize)
28
33
34
+ if options.release_address:
35
+ hostname = options.release_address
36
+ pool.release_address(hostname)
37
+
29
38
if options.new_address:
30
39
hostname = options.new_address
40
addr = pool.new_address(hostname)
0 commit comments