Revision 508e9b20

b/doc/rapi.rst
190 190
      }
191 191
    }
192 192

  
193

  
194
``/2/redistribute-config``
195
++++++++++++++++++++++++++
196

  
197
Redistribute configuration to all nodes.
198

  
199
It supports the following commands: ``PUT``.
200

  
201
``PUT``
202
~~~~~~~
203

  
204
Redistribute configuration to all nodes. The result will be a job id.
205

  
206

  
193 207
``/2/instances``
194 208
++++++++++++++++
195 209

  
......
398 412
Add a set of tags.
399 413

  
400 414
The request as a list of strings should be ``PUT`` to this URI. The
401
result willl be a job id.
415
result will be a job id.
402 416

  
403 417
It supports the ``dry-run`` argument.
404 418

  
b/lib/rapi/connector.py
201 201
    "/2/tags": rlib2.R_2_tags,
202 202
    "/2/info": rlib2.R_2_info,
203 203
    "/2/os": rlib2.R_2_os,
204
    "/2/redistribute-config": rlib2.R_2_redist_config,
204 205
    }
205 206

  
206 207

  
b/lib/rapi/rlib2.py
116 116
    return [row[0] for row in diagnose_data if row[1]]
117 117

  
118 118

  
119
class R_2_redist_config(baserlib.R_Generic):
120
  """/2/redistribute-config resource.
121

  
122
  """
123
  def PUT(self):
124
    """Redistribute configuration to all nodes.
125

  
126
    """
127
    return baserlib.SubmitJob([opcodes.OpRedistributeConfig()])
128

  
129

  
119 130
class R_2_jobs(baserlib.R_Generic):
120 131
  """/2/jobs resource.
121 132

  

Also available in: Unified diff