Dpdk in VM: Increase num_mbufs
[csit.git] / resources / libraries / python / CoreDumpUtil.py
index 3d40ffa..e1c7b65 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2019 Cisco and/or its affiliates.
+# Copyright (c) 2020 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -112,8 +112,8 @@ class CoreDumpUtil:
         :param node: DUT Node in the topology.
         :type node: dict
         """
-        if node['type'] == NodeType.DUT and self.is_core_limit_enabled():
-            vpp_pid = DUTSetup.get_vpp_pid(node)
+        if node[u"type"] == NodeType.DUT and self.is_core_limit_enabled():
+            vpp_pid = DUTSetup.get_pid(node, u"vpp")
             self.enable_coredump_limit(node, vpp_pid)
 
     def enable_coredump_limit_vpp_on_all_duts(self, nodes):
@@ -150,6 +150,6 @@ class CoreDumpUtil:
                     if disable_on_success:
                         self.set_core_limit_disabled()
                 except RuntimeError:
-                    # If compress was not successful ignore error and skip further
-                    # processing.
+                    # If compress was not successful ignore error and skip
+                    # further processing.
                     continue