File no-routes.diff of Package python-neutronclient

Index: python-neutronclient-2.3.12/neutronclient/neutron/v2_0/router.py
===================================================================
--- python-neutronclient-2.3.12.orig/neutronclient/neutron/v2_0/router.py
+++ python-neutronclient-2.3.12/neutronclient/neutron/v2_0/router.py
@@ -94,8 +94,34 @@ class UpdateRouter(neutronV20.UpdateComm
     """Update router's information."""
 
     resource = 'router'
 
+    def add_known_arguments(self, parser):
+        routes_group = parser.add_mutually_exclusive_group()
+        routes_group.add_argument(
+            '--route', metavar='destination=CIDR,nexthop=IP_ADDR',
+            action='append', dest='routes',
+            type=utils.str2dict_type(required_keys=['destination', 'nexthop']),
+            help=_('Route to associate with the router.'
+                   ' You can repeat this option.'
+		   ' Does not yet work, use --routes type=dict list=true'))
+        routes_group.add_argument(
+            '--no-routes',
+            action='store_true',
+            help=_('Remove routes associated with the router.'))
+
+    def args2body(self, parsed_args):
+        body = {}
+        if hasattr(parsed_args, 'admin_state'):
+            body['admin_state_up'] = parsed_args.admin_state
+        neutronV20.update_dict(parsed_args, body,
+                               ['name', 'distributed', 'description'])
+        if parsed_args.no_routes:
+            body['routes'] = None
+        elif parsed_args.routes:
+            body['routes'] = parsed_args.routes
+        return {self.resource: body}
+
 
 class RouterInterfaceCommand(neutronV20.NeutronCommand):
     """Based class to Add/Remove router interface."""