Remove links from topology when port goes down 32/3932/3
authorEd Warnicke <eaw@cisco.com>
Thu, 26 Dec 2013 04:01:45 +0000 (20:01 -0800)
committerEd Warnicke <eaw@cisco.com>
Mon, 30 Dec 2013 22:43:50 +0000 (14:43 -0800)
Change-Id: Ib1fb74f6257f2048a38e4b5e2801ad85a62dacf2
Signed-off-by: Ed Warnicke <eaw@cisco.com>
opendaylight/md-sal/topology-manager/src/main/java/org/opendaylight/md/controller/topology/manager/FlowCapableTopologyExporter.xtend

index de61daeae3380f35fee50acf43aeebc766416c5c..92a2277b4c613abdf858ca28a3dbebb4c3a429f9 100644 (file)
@@ -95,6 +95,9 @@ OpendaylightInventoryListener //
     
             val it = dataService.beginTransaction
             putOperationalData(path, point);
+            if((fcncu.state != null && fcncu.state.linkDown) || (fcncu.configuration != null && fcncu.configuration.PORTDOWN)) {
+                removeAffectedLinks(it,point.tpId)
+            }
             commit()     
        }
     }