mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	create_vr.py: moves logic into profile cleanup method
Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
		| @@ -53,12 +53,7 @@ class CreateVR(Realm): | ||||
|         if (self.vr_profile.vr_eid is not None) \ | ||||
|             and (self.vr_profile.vr_eid[1] is not None) \ | ||||
|             and (self.vr_profile.vr_eid[2] is not None): | ||||
|             data = { | ||||
|                 "shelf": 1, | ||||
|                 "resource": self.vr_profile.vr_eid[1], | ||||
|                 "router_name": self.vr_profile.vr_eid[2] | ||||
|             } | ||||
|             self.json_post("/cli-json/rm_vr", data, debug_=self.debug) | ||||
|             self.vr_profile.cleanup(debug=self.debug) | ||||
|  | ||||
|         if (self.vr_name is not None) \ | ||||
|             and (self.vr_name[1] is not None) \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jed Reynolds
					Jed Reynolds