mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	l3_cxprofile: Fix redundant parentheses
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		| @@ -135,7 +135,7 @@ class L3CXProfile(LFCliBase): | |||||||
|  |  | ||||||
|             if (duration_sec is None) or (duration_sec <= 1): |             if (duration_sec is None) or (duration_sec <= 1): | ||||||
|                 raise ValueError("L3CXProfile::monitor wants duration_sec > 1 second") |                 raise ValueError("L3CXProfile::monitor wants duration_sec > 1 second") | ||||||
|             if (duration_sec <= monitor_interval_ms): |             if duration_sec <= monitor_interval_ms: | ||||||
|                 raise ValueError("L3CXProfile::monitor wants duration_sec > monitor_interval") |                 raise ValueError("L3CXProfile::monitor wants duration_sec > monitor_interval") | ||||||
|         if report_file is None: |         if report_file is None: | ||||||
|             raise ValueError("Monitor requires an output file to be defined") |             raise ValueError("Monitor requires an output file to be defined") | ||||||
| @@ -370,7 +370,7 @@ class L3CXProfile(LFCliBase): | |||||||
|         print("Starting CXs...") |         print("Starting CXs...") | ||||||
|         for cx_name in self.created_cx.keys(): |         for cx_name in self.created_cx.keys(): | ||||||
|             if self.debug: |             if self.debug: | ||||||
|                 print("cx-name: %s" % (cx_name)) |                 print("cx-name: %s" % cx_name) | ||||||
|             self.json_post("/cli-json/set_cx_state", { |             self.json_post("/cli-json/set_cx_state", { | ||||||
|                 "test_mgr": "default_tm", |                 "test_mgr": "default_tm", | ||||||
|                 "cx_name": cx_name, |                 "cx_name": cx_name, | ||||||
| @@ -396,13 +396,13 @@ class L3CXProfile(LFCliBase): | |||||||
|         if len(self.created_cx) != 0: |         if len(self.created_cx) != 0: | ||||||
|             for cx_name in self.created_cx.keys(): |             for cx_name in self.created_cx.keys(): | ||||||
|                 if self.debug: |                 if self.debug: | ||||||
|                     print("Cleaning cx: %s" % (cx_name)) |                     print("Cleaning cx: %s" % cx_name) | ||||||
|                 self.local_realm.rm_cx(cx_name) |                 self.local_realm.rm_cx(cx_name) | ||||||
|  |  | ||||||
|                 for side in range(len(self.created_cx[cx_name])): |                 for side in range(len(self.created_cx[cx_name])): | ||||||
|                     ename = self.created_cx[cx_name][side] |                     ename = self.created_cx[cx_name][side] | ||||||
|                     if self.debug: |                     if self.debug: | ||||||
|                         print("Cleaning endpoint: %s" % (ename)) |                         print("Cleaning endpoint: %s" % ename) | ||||||
|                     self.local_realm.rm_endp(self.created_cx[cx_name][side]) |                     self.local_realm.rm_endp(self.created_cx[cx_name][side]) | ||||||
|  |  | ||||||
|         self.clean_cx_lists() |         self.clean_cx_lists() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew Stidham
					Matthew Stidham