mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	lf_cisco_power.py : xlsx file name in title
This commit is contained in:
		@@ -1390,8 +1390,8 @@ def main():
 | 
				
			|||||||
                               for email_dict in email_dicts: 
 | 
					                               for email_dict in email_dicts: 
 | 
				
			||||||
                                   try:
 | 
					                                   try:
 | 
				
			||||||
                                      logg.info("Sending Email ")
 | 
					                                      logg.info("Sending Email ")
 | 
				
			||||||
                                      subject = "Lanforge Failure"
 | 
					                                      subject = "Lanforge: Failure Found {}".format(outfile_xlsx)
 | 
				
			||||||
                                      body    = "Lanforeg Failure: AP: {} Channel: {} NSS: {} BW: {} TX-Power {}, pfs: {} time_stamp: {}".format(args.ap,ch, n, bw, tx, pfs, time_stamp)
 | 
					                                      body    = "Lanforge: Failure Found:  AP: {} Channel: {} NSS: {} BW: {} TX-Power {}, pfs: {} time_stamp: {} {}".format(args.ap,ch, n, bw, tx, pfs, time_stamp,outfile_xlsx)
 | 
				
			||||||
                                      email_out =subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
					                                      email_out =subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
				
			||||||
                                         "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
					                                         "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
				
			||||||
                                      pss = email_out.stdout.decode('utf-8','ignore')
 | 
					                                      pss = email_out.stdout.decode('utf-8','ignore')
 | 
				
			||||||
@@ -1407,8 +1407,8 @@ def main():
 | 
				
			|||||||
                               for email_dict in email_dicts:
 | 
					                               for email_dict in email_dicts:
 | 
				
			||||||
                                  try:
 | 
					                                  try:
 | 
				
			||||||
                                     logg.info("Sending Email ")
 | 
					                                     logg.info("Sending Email ")
 | 
				
			||||||
                                     subject = "Lanforge Error"
 | 
					                                     subject = "Lanforge: Error {}".format(outfile_xlsx)
 | 
				
			||||||
                                     body    = "Lanforeg Error: AP: {} Channel: {} NSS: {} BW: {} TX-Power {}, pfs: {} time_stamp: {}".format(args.ap, ch, n, bw, tx, pfs, time_stamp)
 | 
					                                     body    = "Lanforeg: Error: AP: {} Channel: {} NSS: {} BW: {} TX-Power {}, pfs: {} time_stamp: {}  {}".format(args.ap, ch, n, bw, tx, pfs, time_stamp, outfile_xlsx)
 | 
				
			||||||
                                     email_out = subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
					                                     email_out = subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
				
			||||||
                                       "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
					                                       "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
				
			||||||
                                     pss = email_out.stdout.decode('utf-8','ignore')
 | 
					                                     pss = email_out.stdout.decode('utf-8','ignore')
 | 
				
			||||||
@@ -1422,8 +1422,8 @@ def main():
 | 
				
			|||||||
       for email_dict in email_dicts:
 | 
					       for email_dict in email_dicts:
 | 
				
			||||||
           try:
 | 
					           try:
 | 
				
			||||||
               logg.info("Sending Email ")
 | 
					               logg.info("Sending Email ")
 | 
				
			||||||
               subject = "Lanforge Test Compete"
 | 
					               subject = "Lanforge Test Compete {}".format(outfile_xlsx)
 | 
				
			||||||
               body    = "Lanforeg Test Complete : AP: {} time_stamp: {}".format(args.ap, time_stamp)
 | 
					               body    = "Lanforeg Test Complete : AP: {} time_stamp: {}  {}".format(args.ap, time_stamp, outfile_xlsx)
 | 
				
			||||||
               email_out = subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
					               email_out = subprocess.run(["./lf_mail.py", "--user", email_dict['user'] , "--passwd", email_dict['passwd'], "--to",email_dict['to'] , 
 | 
				
			||||||
               "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
					               "--subject", subject, "--body", body , "--smtp", email_dict['smtp'], "--port", email_dict['port'] ], capture_output=cap_ctl_out, check=True)
 | 
				
			||||||
               pss = email_out.stdout.decode('utf-8','ignore')
 | 
					               pss = email_out.stdout.decode('utf-8','ignore')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user