mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_attenmod: self.atten_idx can also be all
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -72,7 +72,7 @@ class ATTENUATORProfile(LFCliBase):
 | 
			
		||||
    def create(self):
 | 
			
		||||
        if int(self.atten_val) > 955:
 | 
			
		||||
            raise ValueError("Attenuation ddB value must be 955 or less")
 | 
			
		||||
        if int(self.atten_idx) > 7:
 | 
			
		||||
        if int(self.atten_idx) > 7 or self.atten_idx == 'all':
 | 
			
		||||
            raise ValueError("Attenuation ddB value must be 7 or less")
 | 
			
		||||
        print("Setting Attenuator...")
 | 
			
		||||
        self.set_command_param("set_attenuator", "serno", self.atten_serno)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user