bug fix: searched switch pnic, s.b. host pnic 85/39985/1
authoryayogev <yaronyogev@gmail.com>
Wed, 23 Aug 2017 12:40:56 +0000 (15:40 +0300)
committeryayogev <yaronyogev@gmail.com>
Wed, 23 Aug 2017 12:40:56 +0000 (15:40 +0300)
Change-Id: I2007813174982c2fb08e80754c1e7b456bc10d8e
Signed-off-by: yayogev <yaronyogev@gmail.com>
app/discover/fetchers/db/db_fetch_vedges_ovs.py

index f2b1db6..838ccb9 100644 (file)
@@ -167,7 +167,7 @@ class DbFetchVedgesOvs(DbAccess, CliAccess, metaclass=Singleton):
         # add port ID to pNIC
         pnic = self.inv.find_items({
             "environment": self.get_env(),
-            "type": "switch_pnic",
+            "type": "host_pnic",
             "host": doc["host"],
             "name": interface
         }, get_single=True)