title: How to use variable in send command of Paramiko modules
body: <p>I want to use variable in the command send to the shell</p>
  
  <p>Here is the snippet of code </p>
  
  <pre><code>vlans= ["2150"]
  def fn():
      client1=paramiko.SSHClient()
      #add missing client key
      client1.set_missing_host_key_policy(paramiko.AutoAddPolicy())
      #connect to switch
      client1.connect(HOST,username=USER,password=PASS,port=PORT)
      print "SSH connection to %s established" %HOST
  
      remote_conn = client1.invoke_shell()
      for i in vlans:
        remote_conn.send("\n")
        remote_conn.send("configure \n")
        remote_conn.send("no ManagedElement=1,Transport=1,Bridge=0-26,Vlan=$vlans\n")
        time.sleep(1)
        output = remote_conn.recv(10000)
        print output
      client1.close()
  
  fn()
  </code></pre>
  
  <p>How can I use the variable <strong>vlans</strong> in below line: </p>
  
  <p>remote_conn.send("no ManagedElement=1,Transport=1,Bridge=0-26,Vlan=$vlans\n")</p>