code: def open_config(self,type="shared"):
          
          try:
              #attempt to open a configuration
              output = self.dev.rpc("<open-configuration><{0}/></open-configuration>".format(type))
          except Exception as err:
              #output an error if the configuration is not availble
              print err
docs: Opens the configuration of the currently connected device
  
          Args:
              :type: The type of configuration you want to open. Any string can be provided, however the standard supported options are: **exclusive**, **private**, and **shared**. The default mode is **shared**.
  
          Examples:
  
          .. code-block:: python
  
              #Open shared config
  
              from pyJunosManager import JunosDevice
  
              dev = JunosDevice(host="1.2.3.4",username="root",password="Juniper")
              dev.open()
              dev.open_config()
              dev.close_config()
              dev.close()
  
              #Open private config
  
              from pyJunosManager import JunosDevice
  
              dev = JunosDevice(host="1.2.3.4",username="root",password="Juniper")
              dev.open()
              dev.open_config("private")
              dev.close_config()
              dev.close()