address()
click to toggle source
def address
@attributes.occi_.networkinterface_.address
end
address=(address)
click to toggle source
def address=(address)
add_ipnetworkinterface_mixin
@attributes.occi!.networkinterface!.address = address
end
allocation()
click to toggle source
def allocation
@attributes.occi_.networkinterface_.allocation
end
allocation=(allocation)
click to toggle source
def allocation=(allocation)
add_ipnetworkinterface_mixin
@attributes.occi!.networkinterface!.allocation = allocation
end
gateway()
click to toggle source
def gateway
@attributes.occi_.networkinterface_.gateway
end
gateway=(gateway)
click to toggle source
def gateway=(gateway)
add_ipnetworkinterface_mixin
@attributes.occi!.networkinterface!.gateway = gateway
end
interface()
click to toggle source
def interface
@attributes.occi_.networkinterface_.interface
end
interface=(interface)
click to toggle source
def interface=(interface)
@attributes.occi!.networkinterface!.interface = interface
end
ipnetworkinterface(add = true)
click to toggle source
def ipnetworkinterface(add = true)
if add
Occi::Log.info "[#{self.class}] Adding mixin IPNetworkInterface"
@mixins << Occi::Infrastructure::Networkinterface::Ipnetworkinterface.mixin
else
Occi::Log.info "[#{self.class}] Removing mixin IPNetworkInterface"
@mixins.delete Occi::Infrastructure::Networkinterface::Ipnetworkinterface.mixin
end
end
mac()
click to toggle source
def mac
@attributes.occi_.networkinterface_.mac
end
mac=(mac)
click to toggle source
def mac=(mac)
@attributes.occi!.networkinterface!.mac = mac
end
state()
click to toggle source
def state
@attributes.occi_.networkinterface_.state
end
state=(state)
click to toggle source
def state=(state)
@attributes.occi!.networkinterface!.state = state
end