← Back to team overview

openstack team mailing list archive

--network vs --fixed_range in nova-manage

 

In nova-manage, we have a 'network modify' command that takes --network but 'network delete' takes --fixed_range.  The flag was renamed (some while ago) for the 'network delete' case.  Was it intentional to leave the 'network modify' case alone?  That appears inconsistent.

Thanks,

Ewan.


    @args('--fixed_range', dest="fixed_range", metavar='<x.x.x.x/yy>',
            help='Network to delete')
...
    def delete(self, fixed_range=None, uuid=None):


    @args('--network', dest="fixed_range", metavar='<x.x.x.x/yy>',
            help='Network to modify')
...
    def modify(self, fixed_range, project=None, host=None,
               dis_project=None, dis_host=None):



commit c32258c77d365534ac7b70bccbadb60a6ea4be1e
Author: Brad Hall <brad@xxxxxxxxxx>
Date:   Sun Oct 2 08:20:50 2011 -0700

    Change network delete to delete by uuid or cidr

    With melange it will be possible to have overlapping cidrs so it would be
    better to specify the uuid of the network to delete.

    Change-Id: I6781225d587952cbab3387cd40164d8ac77c58d6

Follow ups