xen-driver-add-ip-to-nic.patch

Tres Wong-Godfrey, 11/16/2010 11:42 PM

Download (845 Bytes)

View differences:

XenDriver.cc 2010-11-16 13:58:10.000000000 -0800
55 55

  
56 56
    string mac        = "";
57 57
    string bridge     = "";
58
       string ip                 = "";
58 59

  
59 60
    const VectorAttribute * graphics;
60 61

  
......
321 322

  
322 323
        mac    = nic->vector_value("MAC");
323 324
        bridge = nic->vector_value("BRIDGE");
325
               ip         = nic->vector_value("IP");
324 326

  
325 327
        if( !mac.empty() )
326 328
        {
327 329
            file << "mac=" << mac;
328 330
            pre_char = ',';
329 331
        }
332

  
333
               if( !ip.empty())
334
               {
335
                       file << "ip=" << ip;
336
                       pre_char = ',';
337
               }
330 338

  
331 339
        if( !bridge.empty() )
332 340
        {