mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +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) \
 | 
					        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[1] is not None) \
 | 
				
			||||||
            and (self.vr_profile.vr_eid[2] is not None):
 | 
					            and (self.vr_profile.vr_eid[2] is not None):
 | 
				
			||||||
            data = {
 | 
					            self.vr_profile.cleanup(debug=self.debug)
 | 
				
			||||||
                "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)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (self.vr_name is not None) \
 | 
					        if (self.vr_name is not None) \
 | 
				
			||||||
            and (self.vr_name[1] is not None) \
 | 
					            and (self.vr_name[1] is not None) \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user