NAME
App::Manoc::DB::Result::Device - A model object for logical devices
VERSION
version 2.99.2
METHODS
rack
Get/set associated rack. Updates associated hardware asset if defined.
mng_address
Getter/setter for mng_address column. Both string values and App::Manoc::IPAddress::IPv4 are supported
get_mng_url
Return mng_address formatted using mng_url_format
get_config_date
Return the date of the last saved config, undef if there isn't any
update_config( $config_text, [ $timestamp ] )
Create or update the related DeviceConfig object. Check if configuration has changed before rotating the stored one. Return 1 if the config object has been refreshed, undef otherwise.
decommission([$timestamp])
Set decommissioned to true, update timestamp and deassociate nwinfo if needed.
restore
Set decommissioned to false and reset timestamp.
AUTHORS
Gabriele Mambrini <gmambro@cpan.org>
Enrico Liguori
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Gabriele Mambrini.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.