Revision 6329d8b3 src/oca/ruby/OpenNebula/VirtualNetwork.rb

View differences:

src/oca/ruby/OpenNebula/VirtualNetwork.rb
111 111
            return rc
112 112
        end
113 113

  
114
        # ---------------------------------------------------------------------
115
        # Helpers to get VirtualNetwork information
116
        # ---------------------------------------------------------------------
117

  
118
        # Returns the group identifier
119
        # [return] _Integer_ the element's group ID
120
        def gid
121
            self['GID'].to_i
122
        end
123

  
114 124
    private
115 125
        def set_publish(published)
116 126
            return Error.new('ID not defined') if !@pe_id

Also available in: Unified diff