Revision 4e4b6b7a
b/Makefile.am | ||
---|---|---|
263 | 263 |
lib/storage.py \ |
264 | 264 |
lib/uidpool.py \ |
265 | 265 |
lib/vcluster.py \ |
266 |
lib/network.py \ |
|
266 | 267 |
lib/workerpool.py |
267 | 268 |
|
268 | 269 |
client_PYTHON = \ |
... | ... | |
274 | 275 |
lib/client/gnt_instance.py \ |
275 | 276 |
lib/client/gnt_job.py \ |
276 | 277 |
lib/client/gnt_node.py \ |
278 |
lib/client/gnt_network.py \ |
|
277 | 279 |
lib/client/gnt_os.py |
278 | 280 |
|
279 | 281 |
hypervisor_PYTHON = \ |
... | ... | |
591 | 593 |
scripts/gnt-group \ |
592 | 594 |
scripts/gnt-instance \ |
593 | 595 |
scripts/gnt-job \ |
596 |
scripts/gnt-network \ |
|
594 | 597 |
scripts/gnt-node \ |
595 | 598 |
scripts/gnt-os |
596 | 599 |
|
... | ... | |
796 | 799 |
man/gnt-cluster.8 \ |
797 | 800 |
man/gnt-debug.8 \ |
798 | 801 |
man/gnt-group.8 \ |
802 |
man/gnt-network.8 \ |
|
799 | 803 |
man/gnt-instance.8 \ |
800 | 804 |
man/gnt-job.8 \ |
801 | 805 |
man/gnt-node.8 \ |
b/autotools/build-bash-completion | ||
---|---|---|
135 | 135 |
sw.DecIndent() |
136 | 136 |
sw.Write("}") |
137 | 137 |
|
138 |
sw.Write("_ganeti_network() {") |
|
139 |
sw.IncIndent() |
|
140 |
try: |
|
141 |
networks_path = os.path.join(pathutils.DATA_DIR, "ssconf_networks") |
|
142 |
sw.Write("cat %s 2>/dev/null || :", utils.ShellQuote(networks_path)) |
|
143 |
finally: |
|
144 |
sw.DecIndent() |
|
145 |
sw.Write("}") |
|
146 |
|
|
138 | 147 |
# Params: <offset> <options with values> <options without values> |
139 | 148 |
# Result variable: $first_arg_idx |
140 | 149 |
sw.Write("_ganeti_find_first_arg() {") |
... | ... | |
352 | 361 |
WriteCompReply(sw, "-W \"$(_ganeti_iallocator)\"", cur=cur) |
353 | 362 |
elif suggest == cli.OPT_COMPL_ONE_NODEGROUP: |
354 | 363 |
WriteCompReply(sw, "-W \"$(_ganeti_nodegroup)\"", cur=cur) |
364 |
elif suggest == cli.OPT_COMPL_ONE_NETWORK: |
|
365 |
WriteCompReply(sw, "-W \"$(_ganeti_network)\"", cur=cur) |
|
355 | 366 |
elif suggest == cli.OPT_COMPL_INST_ADD_NODES: |
356 | 367 |
sw.Write("local tmp= node1= pfx= curvalue=\"${optcur#*:}\"") |
357 | 368 |
|
... | ... | |
450 | 461 |
choices = "$(_ganeti_nodes)" |
451 | 462 |
elif isinstance(arg, cli.ArgGroup): |
452 | 463 |
choices = "$(_ganeti_nodegroup)" |
464 |
elif isinstance(arg, cli.ArgNetwork): |
|
465 |
choices = "$(_ganeti_network)" |
|
453 | 466 |
elif isinstance(arg, cli.ArgJobId): |
454 | 467 |
choices = "$(_ganeti_jobs)" |
455 | 468 |
elif isinstance(arg, cli.ArgOs): |
Also available in: Unified diff