Revision 13162959

b/Makefile.am
233 233
	lib/ssh.py \
234 234
	lib/storage.py \
235 235
	lib/uidpool.py \
236
	lib/network.py \
236 237
	lib/workerpool.py
237 238

  
238 239
client_PYTHON = \
......
244 245
	lib/client/gnt_instance.py \
245 246
	lib/client/gnt_job.py \
246 247
	lib/client/gnt_node.py \
248
	lib/client/gnt_network.py \
247 249
	lib/client/gnt_os.py
248 250

  
249 251
hypervisor_PYTHON = \
......
481 483
	scripts/gnt-group \
482 484
	scripts/gnt-instance \
483 485
	scripts/gnt-job \
486
	scripts/gnt-network \
484 487
	scripts/gnt-node \
485 488
	scripts/gnt-os
486 489

  
......
688 691
	man/gnt-cluster.8 \
689 692
	man/gnt-debug.8 \
690 693
	man/gnt-group.8 \
694
	man/gnt-network.8 \
691 695
	man/gnt-instance.8 \
692 696
	man/gnt-job.8 \
693 697
	man/gnt-node.8 \
b/autotools/build-bash-completion
131 131
    sw.DecIndent()
132 132
  sw.Write("}")
133 133

  
134
  sw.Write("_ganeti_network() {")
135
  sw.IncIndent()
136
  try:
137
    networks_path = os.path.join(constants.DATA_DIR, "ssconf_networks")
138
    sw.Write("cat %s 2>/dev/null || :", utils.ShellQuote(networks_path))
139
  finally:
140
    sw.DecIndent()
141
  sw.Write("}")
142

  
134 143
  # Params: <offset> <options with values> <options without values>
135 144
  # Result variable: $first_arg_idx
136 145
  sw.Write("_ganeti_find_first_arg() {")
......
345 354
          WriteCompReply(sw, "-W \"$(_ganeti_iallocator)\"", cur=cur)
346 355
        elif suggest == cli.OPT_COMPL_ONE_NODEGROUP:
347 356
          WriteCompReply(sw, "-W \"$(_ganeti_nodegroup)\"", cur=cur)
357
        elif suggest == cli.OPT_COMPL_ONE_NETWORK:
358
          WriteCompReply(sw, "-W \"$(_ganeti_network)\"", cur=cur)
348 359
        elif suggest == cli.OPT_COMPL_INST_ADD_NODES:
349 360
          sw.Write("local tmp= node1= pfx= curvalue=\"${optcur#*:}\"")
350 361

  
......
442 453
          choices = "$(_ganeti_nodes)"
443 454
        elif isinstance(arg, cli.ArgGroup):
444 455
          choices = "$(_ganeti_nodegroup)"
456
        elif isinstance(arg, cli.ArgNetwork):
457
          choices = "$(_ganeti_network)"
445 458
        elif isinstance(arg, cli.ArgJobId):
446 459
          choices = "$(_ganeti_jobs)"
447 460
        elif isinstance(arg, cli.ArgOs):

Also available in: Unified diff