From 209b88f682ce91eb35037349b120aeeeeaccb9c8 Mon Sep 17 00:00:00 2001 From: Dipti Date: Tue, 2 Mar 2021 20:06:00 -0800 Subject: [PATCH] imports added for L3CXProfile2 Signed-off-by: Dipti --- py-json/realm.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/py-json/realm.py b/py-json/realm.py index 04883f1b..a1a5d6a6 100755 --- a/py-json/realm.py +++ b/py-json/realm.py @@ -14,7 +14,9 @@ from LANforge.lfcli_base import LFCliBase #from generic_cx import GenericCx from LANforge import add_monitor from LANforge.add_monitor import * +#Profile Imports from l3_cxprofile import L3CXProfile +from l3_cxprofile2 import L3CXProfile2 import os import datetime import base64 @@ -787,7 +789,14 @@ class Realm(LFCliBase): local_realm=self, debug_=self.debug, report_timer_=3000) - return cx_prof + elif ver == 2: + import l3_cxprofile2 + cx_prof = l3_cxprofile2.L3CXProfile2(self.lfclient_host, + self.lfclient_port, + local_realm=self, + debug_=self.debug, + report_timer_=3000) + return cx_prof def new_l4_cx_profile(self): cx_prof = L4CXProfile(self.lfclient_host, self.lfclient_port, local_realm=self, debug_=self.debug)