get out of mirroring once known
@@ -407,22 +407,29 @@ class Monitor(object):
if next_state == 'MIRRORING':
self.logger.debug(
- 'updating:{0}:{1}->{2}'.format(endpoint_hash, current_state, next_state))
+ 'updating:{0}:{1}->{2}'.format(endpoint_hash,
+ current_state,
+ next_state))
self.logger.debug('*********** U NOTIFY VENT ***********')
self.start_vent_collector(endpoint_hash)
self.logger.debug('*********** U MIRROR PORT ***********')
self.uss.mirror_endpoint(endpoint_hash)
if next_state == 'REINVESTIGATING':
self.logger.debug(
- 'updating:{0}:{1}->{2}'.format(endpoint_hash, current_state, next_state))
+ 'updating:{0}:{1}->{2}'.format(endpoint_hash,
+ current_state,
+ next_state))
self.logger.debug('*********** R NOTIFY VENT ***********')
self.start_vent_collector(endpoint_hash)
self.logger.debug('*********** R MIRROR PORT ***********')
self.uss.mirror_endpoint(endpoint_hash)
if next_state == 'KNOWN':
- if current_state == 'REINVESTIGATING':
+ if (current_state == 'REINVESTIGATING' or
+ current_state == 'MIRRORING'):
self.logger.debug(
- '*********** R UN-MIRROR PORT ***********')
+ '*********** ' +
+ current_state[0] +
+ ' UN-MIRROR PORT ***********')
self.uss.unmirror_endpoint(endpoint_hash)
eps.change_endpoint_state(endpoint_hash)
if current_state == 'UNKNOWN':
