Revision 4b66f92b src/vm/VirtualMachine.cc

View differences:

src/vm/VirtualMachine.cc
787 787
static void parse_context_network(const char* vars[][2], int num_vars,
788 788
        VectorAttribute * context, VectorAttribute * nic)
789 789
{
790
    string name   = nic->vector_value("NETWORK");
791 790
    string nic_id = nic->vector_value("NIC_ID");
792 791

  
793 792
    for (int i=0; i < num_vars; i++)
......
810 809
        {
811 810
            ostringstream cval_ss;
812 811

  
813
            cval_ss << "$NETWORK["<< vars[i][1] <<", NETWORK=\""<< name <<"\"]";
812
            cval_ss << "$NETWORK["<< vars[i][1] <<", NIC_ID=\""<< nic_id <<"\"]";
814 813
            cval = cval_ss.str();
815 814
        }
816 815

  

Also available in: Unified diff