source port detail cannot delete when the port chain deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-sfc |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Hi,
I face a problem that the source port detail cannot delete when i delete the port chain.
In the source code(networking
i know when the length of path_nodes of port detail is 1, the port detail will be deleted. The logical code segment show below:
pds = self.get_
if pds:
for pd in pds:
But when i delete the port chain, i log to the sql database to check the "sfc_portpair_
detail still exists. So i add the LOG.debug("pd info:%s", pd) to check the port detail information. And the result show below:
{'ingress': u'2e0bafbc-
From the result above, the "path_nodes" give the empty list('[]').
Could you help to check this is a bug? Thank a lot!
This is a bug