From: yayogev Date: Mon, 14 Aug 2017 17:13:58 +0000 (+0300) Subject: US2853 fix creation of switch_pnic-switch_pnic links X-Git-Tag: opnfv-5.1.RC1~80^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=1429ae59d3210c76e8924be89f703fe5a8733c75;p=calipso.git US2853 fix creation of switch_pnic-switch_pnic links Change-Id: I8917d1218ad6b1d3b4eb708d8f8ffad95b2a0e41 Signed-off-by: yayogev --- diff --git a/app/discover/find_links_for_pnics.py b/app/discover/find_links_for_pnics.py index 3f3eb29..98d481c 100644 --- a/app/discover/find_links_for_pnics.py +++ b/app/discover/find_links_for_pnics.py @@ -36,7 +36,7 @@ class FindLinksForPnics(FindLinks): }) for pnic in pnics: self.add_switch_to_pnic_link(pnic) - if "role" == "uplink": + if pnic["role"] == "uplink": self.add_switch_pnic_to_switch_pnic_link(pnic) def add_pnic_network_links(self, pnic):