Project

General

Profile

« Previous | Next » 

Revision 1ac4e6ae

Added by Chris Buechler over 9 years ago

Add config upgrade code to remove L7 config pieces, and file a notice where found. Ticket #5508

View differences:

src/etc/inc/upgrade_config.inc
4269 4269
		$config['syslog']['nolognginx'] = true;
4270 4270
	}
4271 4271
}
4272

  
4273
function upgrade_135_to_136() {
4274
	global $config;
4275

  
4276
	if (isset($config['l7shaper'])) {
4277
		file_notice("L7shaper", "Layer 7 shaping is no longer supported. Its configuration has been removed.");
4278
		unset($config['l7shaper']);
4279
		if (is_array($config['filter']['rule'])) {
4280
			foreach ($config['filter']['rule'] as $idx => $rule) {
4281
				if (isset($rule['l7container'])) {
4282
					unset($config['filter']['rule'][$idx]['l7container']);
4283
				}
4284
			}
4285
		}
4286
	}
4287
}
4272 4288
?>

Also available in: Unified diff