mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	Check to make sure an NFS file share is mounted
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
		@@ -712,9 +712,14 @@ Generic command layout:
 | 
				
			|||||||
            dhcp = False
 | 
					            dhcp = False
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        dhcp = True
 | 
					        dhcp = True
 | 
				
			||||||
    # print(port_list)
 | 
					    if 'nfs' in args.fs_type:
 | 
				
			||||||
 | 
					        if [[ $(mount -l | grep nfs) ]]; then
 | 
				
			||||||
 | 
					            pass
 | 
				
			||||||
 | 
					        else:
 | 
				
			||||||
 | 
					            raise ValueError("No nfs share is mounted")
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # exit(1)
 | 
					 | 
				
			||||||
    ip_test = FileIOTest(args.mgr,
 | 
					    ip_test = FileIOTest(args.mgr,
 | 
				
			||||||
                         args.mgr_port,
 | 
					                         args.mgr_port,
 | 
				
			||||||
                         ssid=args.ssid,
 | 
					                         ssid=args.ssid,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user