parameters: (self, line)
docstring: disable-network <network-id>
  
            Disable a provisioned network.
docstring_summary: disable-network <network-id>
docstring_tokens: disable - network <network - id >
function: def do_disablenetwork(self, line):
          """
            disable-network <network-id>
  
            Disable a provisioned network.
          """
  
          args = shlex.split(line)
  
          if (len(args) == 0):
              print("Usage:")
              self.do_help('disable-network')
              return
  
          if (len(args) < 1):
              print("Please specify a network id")
              return
  
          if (len(args) > 1):
              print("Unexpected argument: " + args[1])
              return
  
          networkId = self.parseNetworkId(args[0])
          if (networkId == None):
              return
  
          self.lastNetworkId = networkId
  
          try:
              self.devMgr.DisableNetwork(networkId)
          except WeaveStack.WeaveStackException as ex:
              print(str(ex))
              return
  
          print("Disable network complete")
function_tokens: def do_disablenetwork ( self , line ) : args = shlex . split ( line ) if ( len ( args ) == 0 ) : print ( "Usage:" ) self . do_help ( 'disable-network' ) return if ( len ( args ) < 1 ) : print ( "Please specify a network id" ) return if ( len ( args ) > 1 ) : print ( "Unexpected argument: " + args [ 1 ] ) return networkId = self . parseNetworkId ( args [ 0 ] ) if ( networkId == None ) : return self . lastNetworkId = networkId try : self . devMgr . DisableNetwork ( networkId ) except WeaveStack . WeaveStackException as ex : print ( str ( ex ) ) return print ( "Disable network complete" )