@decorator.decorator
def validate_network_plugin(f, *args, **kwargs):
 if utils.is_neutron():
  print(_('ERROR: Network commands are not supported when using the Neutron API.  Use python-neutronclient instead.'))
  return 2
 return f(*args, **kwargs)

@ decorator . decorator def validate_network_plugin ( f , * args , ** kwargs ) : if utils . is_neutron ( ) : print ( _ ( 'ERROR: Network commands are not supported when using the Neutron API.  Use python-neutronclient instead.' ) ) return 2 return f ( * args , ** kwargs )
decorator to validate the network plugin .