Revision 74aa41ba include/VirtualNetwork.h

View differences:

include/VirtualNetwork.h
73 73
     */
74 74
    bool is_public()
75 75
    {
76
        return public_vnet;
76
        return (public_vnet == 1);
77 77
    };
78 78

  
79 79
    /**
......
144 144
     */
145 145
    string& to_xml(string& xml) const;
146 146

  
147
    /**
148
     * Modifies the given nic attribute adding the following attributes:
149
     *  * IP:  leased from network
150
     *  * MAC: leased from network
151
     *  * BRIDGE: for this virtual network
152
     *  @param nic attribute for the VM template
153
     *  @param vid of the VM getting the lease
154
     *  @return 0 on success
155
     */
156
    int nic_attribute(VectorAttribute * nic, int vid);
157

  
147 158
private:
148 159

  
149 160
    // -------------------------------------------------------------------------

Also available in: Unified diff