Provision::Unix::VirtualOS::Xen::Config - perl interface to Xen configuration files
version 1.08
use Provision::Unix::VirtualOS::Xen::Config; my $xen_config = Provision::Unix::VirtualOS::Xen::Config->new(); $xen_config->read('/path/to/xen_conf.cfg'); print $xen_config->get('memory'), "\n"; $xen_config->set('memory' => 128); $xen_config->add_ip('192.168.0.23'); $xen_config->write(\*STDOUT);
Provision::Unix::VirtualOS::Xen::Config is an interface to reading and writing domU configuration files
This is used to instantiate a new configuration object.
This will open, and parse the xen configuration object $file.
This will read a configuration file from an open file handle.
This will parse a configuration file that has been loaded into a scalar.
This returns the value of the specified configuration variable. The value can be a scalar, an array ref, or a hash ref.
This will add an ip, (or list of IPs) to the configuration file. Currently this only adds IPs to vif0.
This will delete an ip, (or list of IPs) from the configuration file. Currently, this only deletes IPs from vif0.
This will delete all IPs from vif0.
None at the moment
Max Vohra <max@pyrodyne.biz>
Copyright (c) Max Vohra
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Matt Simerson <msimerson@cpan.org>
This software is copyright (c) 2015 by The Network People, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Provision::Unix, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Provision::Unix
CPAN shell
perl -MCPAN -e shell install Provision::Unix
For more information on module installation, please visit the detailed CPAN module installation guide.