Revision aef3fa1f

b/kamaki/cli/commands/__init__.py
340 340
        id_suff=ValueArgument(
341 341
            'filter by id suffix (case insensitive)', '--id-suffix'),
342 342
        id_like=ValueArgument(
343
            'print only if id contains this (case insensitive)',
344
            '--id-like')
343
            'print only if id contains this (case insensitive)', '--id-like')
345 344
    )
346 345

  
347 346
    def _non_exact_id_filter(self, items):
b/kamaki/cli/commands/networking.py
151 151
    @errors.cyclades.connection
152 152
    def _run(self, name):
153 153
        #  admin_state_up is not used in Cyclades
154
        print self.client.create_network
155 154
        net = self.client.create_network(
156 155
            name, admin_state_up=True, shared=self['shared'])
157 156
        self._print(net, self.print_dict)
......
159 158
    def main(self, name):
160 159
        super(self.__class__, self)._run()
161 160
        self._run(name=name)
161

  
162

  
163
@command(network_cmds)
164
class network_delete(_init_networking, _optional_output_cmd):
165
    """Delete a network"""
166

  
167
    @errors.generic.all
168
    @errors.cyclades.connection
169
    def _run(self, network_id):
170
        r = self.client.delete_network(network_id)
171
        self._optional_output(r)
172

  
173
    def main(self, network_id):
174
        super(self.__class__, self)._run()
175
        self._run(network_id=network_id)

Also available in: Unified diff