@@ -132,11 +132,7 @@ func (l *switchPortLinker) GetABLinks(lsNode *graph.Node) (edges []*graph.Edge)
132132 ports , _ := l .probe .ovndbapi .LSPList (name )
133133 for _ , lp := range ports {
134134 if lpNode , _ := probe .lspIndexer .GetNode (lp .UUID ); lpNode != nil {
135- link , err := topology .NewLink (probe .graph , lsNode , lpNode , topology .OwnershipLink , nil )
136- if err != nil {
137- logging .GetLogger ().Error (err )
138- continue
139- }
135+ link := topology .NewLink (probe .graph , lsNode , lpNode , topology .OwnershipLink , nil )
140136 edges = append (edges , link )
141137 }
142138 }
@@ -153,11 +149,7 @@ func (l *switchPortLinker) GetBALinks(lpNode *graph.Node) (edges []*graph.Edge)
153149 for _ , lp := range ports {
154150 if lp .UUID == uuid {
155151 if lsNode , _ := probe .lsIndexer .GetNode (ls .UUID ); lsNode != nil {
156- link , err := topology .NewLink (probe .graph , lsNode , lpNode , topology .OwnershipLink , nil )
157- if err != nil {
158- logging .GetLogger ().Error (link )
159- continue
160- }
152+ link := topology .NewLink (probe .graph , lsNode , lpNode , topology .OwnershipLink , nil )
161153 edges = append (edges , link )
162154 }
163155 }
@@ -177,11 +169,7 @@ func (l *routerPortLinker) GetABLinks(lrNode *graph.Node) (edges []*graph.Edge)
177169 ports , _ := l .probe .ovndbapi .LRPList (name )
178170 for _ , lp := range ports {
179171 if lrpNode , _ := probe .lrpIndexer .GetNode (lp .UUID ); lrpNode != nil {
180- link , err := topology .NewLink (probe .graph , lrNode , lrpNode , topology .OwnershipLink , nil )
181- if err != nil {
182- logging .GetLogger ().Error (err )
183- continue
184- }
172+ link := topology .NewLink (probe .graph , lrNode , lrpNode , topology .OwnershipLink , nil )
185173 edges = append (edges , link )
186174 }
187175 }
@@ -198,11 +186,7 @@ func (l *routerPortLinker) GetBALinks(lrpNode *graph.Node) (edges []*graph.Edge)
198186 for _ , lp := range ports {
199187 if lp .UUID == uuid {
200188 if lrNode , _ := probe .lrIndexer .GetNode (lr .UUID ); lrNode != nil {
201- link , err := topology .NewLink (probe .graph , lrNode , lrpNode , topology .OwnershipLink , nil )
202- if err != nil {
203- logging .GetLogger ().Error (link )
204- continue
205- }
189+ link := topology .NewLink (probe .graph , lrNode , lrpNode , topology .OwnershipLink , nil )
206190 edges = append (edges , link )
207191 }
208192 }
@@ -221,9 +205,8 @@ func (l *aclLinker) GetABLinks(lsNode *graph.Node) (edges []*graph.Edge) {
221205 acls , _ := l .probe .ovndbapi .ACLList (name )
222206 for _ , acl := range acls {
223207 if aclNode , _ := l .probe .aclIndexer .GetNode (acl .UUID ); aclNode != nil {
224- if link , _ := topology .NewLink (l .probe .graph , lsNode , aclNode , topology .OwnershipLink , nil ); link != nil {
225- edges = append (edges , link )
226- }
208+ link := topology .NewLink (l .probe .graph , lsNode , aclNode , topology .OwnershipLink , nil )
209+ edges = append (edges , link )
227210 }
228211 }
229212 return edges
@@ -238,11 +221,7 @@ func (l *aclLinker) GetBALinks(aclNode *graph.Node) (edges []*graph.Edge) {
238221 for _ , acl := range acls {
239222 if acl .UUID == uuid {
240223 if lsNode , _ := l .probe .lsIndexer .GetNode (ls .UUID ); lsNode != nil {
241- link , err := topology .NewLink (l .probe .graph , lsNode , aclNode , topology .OwnershipLink , nil )
242- if err != nil {
243- logging .GetLogger ().Error (link )
244- continue
245- }
224+ link := topology .NewLink (l .probe .graph , lsNode , aclNode , topology .OwnershipLink , nil )
246225 edges = append (edges , link )
247226 }
248227 }
0 commit comments