Classifier: remove access to uninitialized variable

Change-Id: Id24876292b51846db9f025343816ed659155bdc5
Related-Bug: #1706051
This commit is contained in:
Dima Kuznetsov 2017-07-31 11:11:55 +03:00
parent 3ef296d3a5
commit f3bc952175
1 changed files with 2 additions and 1 deletions

View File

@ -104,7 +104,8 @@ class ClassifierApp(df_base_app.DFlowApp):
try:
ofport, port_key = self._ofport_unique_key_map.pop(ovs_port.id)
except KeyError:
LOG.debug("Unknown classification/dispatch for ofport %s", ofport)
# OvsPort not present in lookup, was either not added, or removed
# by a previous update. In both cases irrelevant.
return
self._del_ingress_dispatch_flow(port_key)
self._del_ingress_classification_flow(ofport)