public static base_response update(nitro_service client, route resource) throws Exception {
		route updateresource = new route();
		updateresource.network = resource.network;
		updateresource.netmask = resource.netmask;
		updateresource.gateway = resource.gateway;
		updateresource.td = resource.td;
		updateresource.distance = resource.distance;
		updateresource.cost1 = resource.cost1;
		updateresource.weight = resource.weight;
		updateresource.advertise = resource.advertise;
		updateresource.protocol = resource.protocol;
		updateresource.msr = resource.msr;
		updateresource.monitor = resource.monitor;
		return updateresource.update_resource(client);
	}
public static base_response update ( nitro_service client , route resource ) throws Exception { route updateresource = new route ( ) ; updateresource . network = resource . network ; updateresource . netmask = resource . netmask ; updateresource . gateway = resource . gateway ; updateresource . td = resource . td ; updateresource . distance = resource . distance ; updateresource . cost1 = resource . cost1 ; updateresource . weight = resource . weight ; updateresource . advertise = resource . advertise ; updateresource . protocol = resource . protocol ; updateresource . msr = resource . msr ; updateresource . monitor = resource . monitor ; return updateresource . update_resource ( client ) ; }
Use this API to update route.