Initial commit
This commit is contained in:
		
							
								
								
									
										15
									
								
								validator/bridgedomain.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								validator/bridgedomain.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
import logging
 | 
			
		||||
 | 
			
		||||
class NullHandler(logging.Handler):
 | 
			
		||||
    def emit(self, record):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def bridgedomain(args, yaml):
 | 
			
		||||
    result = True
 | 
			
		||||
    msgs = []
 | 
			
		||||
    logger = logging.getLogger('vppcfg.validator')
 | 
			
		||||
    logger.addHandler(NullHandler())
 | 
			
		||||
 | 
			
		||||
    logger.debug("Validating bridgedomains...")
 | 
			
		||||
    return result, msgs
 | 
			
		||||
		Reference in New Issue
	
	Block a user