]> git.proxmox.com Git - pve-common.git/log
pve-common.git
8 years agoAdd AbstractConfig base class
Fabian Grünbichler [Wed, 2 Mar 2016 12:56:26 +0000 (13:56 +0100)]
Add AbstractConfig base class

This class contains common code formerly duplicated in
PVE::LXC and PVE::QemuServer, as well as abstract methods
that must be implemented for LXC and Qemu seperately.

Currently implemented in PVE::LXC::Config, Qemu refactoring
will follow.

8 years agobump version to 4.0-50
Dietmar Maurer [Wed, 2 Mar 2016 05:23:40 +0000 (06:23 +0100)]
bump version to 4.0-50

8 years agoAdd since and until parameter to dump_journal
Thomas Lamprecht [Tue, 1 Mar 2016 15:32:34 +0000 (16:32 +0100)]
Add since and until parameter to dump_journal

journalctl can check their validness itself

8 years agopod: generate property string documentation
Wolfgang Bumiller [Thu, 25 Feb 2016 16:44:56 +0000 (17:44 +0100)]
pod: generate property string documentation

Generate the more detailed documentation with the
'description' property provided in the property-string
format schema for the '*.conf'(5) manpages.

8 years agobump version to 4.0-49
Dietmar Maurer [Thu, 18 Feb 2016 08:40:53 +0000 (09:40 +0100)]
bump version to 4.0-49

8 years agoschema: error on missing keys without default keys
Wolfgang Bumiller [Mon, 15 Feb 2016 14:35:35 +0000 (15:35 +0100)]
schema: error on missing keys without default keys

8 years agolimit vmid with JSON format
Dominik Csapak [Fri, 12 Feb 2016 10:43:23 +0000 (11:43 +0100)]
limit vmid with JSON format

if we do not do this, vmids < 100 (not really bad) and
vmids > 999999999 are possible, which can lead to vms which you can
only get rid of, if you delete the config files manually

also this makes the api consistent with the webgui for vmids

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
8 years agonetwork: get rid of ioctl.ph
Wolfgang Bumiller [Fri, 12 Feb 2016 09:42:54 +0000 (10:42 +0100)]
network: get rid of ioctl.ph

8 years agoschema: disable additional properties in property strings
Wolfgang Bumiller [Thu, 11 Feb 2016 10:21:00 +0000 (11:21 +0100)]
schema: disable additional properties in property strings

Changed the default additional_properties parameter when
verifying them from undefined (which defaults to 1) to 0.

parse_property_strings() now takes an optional
additional_properties parameter, too.

8 years agobump version to 4.0-48
Dietmar Maurer [Thu, 11 Feb 2016 10:25:02 +0000 (11:25 +0100)]
bump version to 4.0-48

8 years agoadded syncfs syscall and sync_mountpoint helper
Wolfgang Bumiller [Thu, 11 Feb 2016 08:26:29 +0000 (09:26 +0100)]
added syncfs syscall and sync_mountpoint helper

8 years agoupdate changelog
Dietmar Maurer [Wed, 10 Feb 2016 11:21:05 +0000 (12:21 +0100)]
update changelog

8 years agoFix #882: active state of interfaces depends on ipv6
Wolfgang Bumiller [Wed, 10 Feb 2016 09:59:07 +0000 (10:59 +0100)]
Fix #882: active state of interfaces depends on ipv6

read_etc_network_interfaces used the content of
/proc/net/if_inet6 to decide whether an interface's state is
"active", which means an interface is only active when it
has an ipv6 address, thus using net.ipv6.conf.*.disable_ipv6
on an interface will cause it to show as inactive in the web
interface.

We now filter the interfaces found in /proc/dev/net by their
IFF_UP flag read via an SIOCGIFFLAGS ioctl().

8 years agobump version to 4.0-47
Dietmar Maurer [Wed, 10 Feb 2016 10:14:06 +0000 (11:14 +0100)]
bump version to 4.0-47

8 years agoImplement refcounting for flocks
Fabian Grünbichler [Wed, 10 Feb 2016 07:25:23 +0000 (08:25 +0100)]
Implement refcounting for flocks

This was already implemented in PVE::LXC::lock_aquire() and
lock_release(). Enabling refcounting in the general
PVE::Tools::lock_file() and lock_file_full() methods allows
us to use one code base for flocking.

Furthermore, we could get rid of various xx_no_lock methods
that were required because the old non-refcounting version
did not support nested flocks (the inner most flock would
close the file handle and thus release the flock).

8 years agoCLIHandler: add missing use PVE::INotify
Wolfgang Bumiller [Wed, 10 Feb 2016 08:38:43 +0000 (09:38 +0100)]
CLIHandler: add missing use PVE::INotify

It uses PVE::INotify::inotify_init() in run_cli_handler().

8 years agobump version to 4.0-46
Dietmar Maurer [Wed, 27 Jan 2016 15:56:00 +0000 (16:56 +0100)]
bump version to 4.0-46

8 years agoadd upid_wait method
Thomas Lamprecht [Wed, 27 Jan 2016 12:15:05 +0000 (13:15 +0100)]
add upid_wait method

Waits for a process identified by a UPID to end by busy waiting
and is intended for long running workers.

waitfunc gets called every wait cycle after min $sleep_interval
seconds and can be used for outputting/logging something or timing
out the wait.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoSectionConfig: disable duplicate plugin registration
Dietmar Maurer [Tue, 26 Jan 2016 12:16:19 +0000 (13:16 +0100)]
SectionConfig: disable duplicate plugin registration

8 years agoTools: add setns system call
Wolfgang Bumiller [Fri, 22 Jan 2016 10:55:27 +0000 (11:55 +0100)]
Tools: add setns system call

8 years agobump version to 4.0-45
Dietmar Maurer [Mon, 18 Jan 2016 15:54:30 +0000 (16:54 +0100)]
bump version to 4.0-45

8 years agonetwork: fix uninitialized value error
Wolfgang Bumiller [Mon, 18 Jan 2016 08:17:23 +0000 (09:17 +0100)]
network: fix uninitialized value error

8 years agobump version to 4.0-44
Dietmar Maurer [Fri, 15 Jan 2016 16:26:22 +0000 (17:26 +0100)]
bump version to 4.0-44

8 years agonetwork : add trunks support
Alexandre Derumier [Fri, 15 Jan 2016 02:15:36 +0000 (03:15 +0100)]
network : add trunks support

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-43
Dietmar Maurer [Fri, 8 Jan 2016 11:51:16 +0000 (12:51 +0100)]
bump version to 4.0-43

8 years agoFix #861: use safer sprintf formatting
Wolfgang Bumiller [Fri, 8 Jan 2016 11:43:58 +0000 (12:43 +0100)]
Fix #861: use safer sprintf formatting

8 years agoimprove asciidoc markup
Dietmar Maurer [Tue, 29 Dec 2015 17:43:12 +0000 (18:43 +0100)]
improve asciidoc markup

8 years agoadd experimental 'asciidoc' generator
Dietmar Maurer [Tue, 29 Dec 2015 16:02:00 +0000 (17:02 +0100)]
add experimental 'asciidoc' generator

useful to generate manual pages using asciidoc.

8 years agobump version to 4.0-42
Dietmar Maurer [Sat, 19 Dec 2015 08:06:41 +0000 (09:06 +0100)]
bump version to 4.0-42

8 years agoOutput also lockname if it cannot be acquired
Thomas Lamprecht [Wed, 16 Dec 2015 09:38:20 +0000 (10:38 +0100)]
Output also lockname if it cannot be acquired

If we can't acquire the lock in lock_file_full and get interrupted
by a signal inqeual to EINTR (e.g. SIGTERM), output also it's name
in the error message to allow better debugging.

Also fix a typo.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoallow fall back to default completion
Thomas Lamprecht [Wed, 16 Dec 2015 09:38:19 +0000 (10:38 +0100)]
allow fall back to default completion

This allows a fall back to the default completion, which completes
possible paths/files, if nothing can be generated from the PVE
completion handler ($print_bash_completion) or if the user starts
to entry a path.
This is especially useful for restore or create commands which can
take an archive file as argument.

The bash-completions get generated at each package build through the
respective Makefile, so to let this change come in effect the package
needs to be rebuild and installed (and the respective file from
/usr/share/bash-completion/completions/<pve cli tool> needs to be
sourced again (or simply open a new terminal))

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 4.0-41
Dietmar Maurer [Mon, 7 Dec 2015 10:17:56 +0000 (11:17 +0100)]
bump version to 4.0-41

8 years agoDaemon: don't clear CLOEXEC on daemon sockets
Wolfgang Bumiller [Mon, 7 Dec 2015 09:41:24 +0000 (10:41 +0100)]
Daemon: don't clear CLOEXEC on daemon sockets

They were leaking into processes blocking full restarts of
the daemons.

Note that perl's fcntl doesn't work on numeric
filedescriptors (neither does POSIX::fcntl, which even stays
silent about it and returns EBADF without ever trying to
actually perform the fcntl syscall), so the socket handles
need to be stored ($daemon_sockets).
The flag is added back when the socket gets reopened.

8 years agobump version to 4.0-40
Dietmar Maurer [Mon, 30 Nov 2015 12:00:41 +0000 (13:00 +0100)]
bump version to 4.0-40

8 years agorun_command: return exit code and add noerr
Thomas Lamprecht [Mon, 30 Nov 2015 08:25:20 +0000 (09:25 +0100)]
run_command: return exit code and add noerr

Allow to return the exit code of the executed command.
And as we do not reach the return of the exit code if it was not 0,
a noerr parameter is also needed so we can suppress the 'command
failed' die in case of an exit code unequal to 0.

This is required as some programs return another value than 0 when
they succeed, For example `systemctl list-jobs` returns  a value
>= 0 on a successful execution, normally 1.
Without this patch a run_command call to `systemctl list-jobs` gets
marked as failed although it was successful.

This does not break current behaviour in any way as setting the
noerr parameter is required to return something other than 0 or
undef, which are equal in a boolean comparison.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agoprint_property_string: skip keys early
Wolfgang Bumiller [Wed, 25 Nov 2015 14:18:19 +0000 (15:18 +0100)]
print_property_string: skip keys early

Keys in the skip-list don't need to be valid schema keys.
This was overly strict before which makes it harder to
include temporary internal keys in a such an object.

8 years agobump version to 4.0-39
Dietmar Maurer [Thu, 26 Nov 2015 07:09:44 +0000 (08:09 +0100)]
bump version to 4.0-39

8 years agoadd function file_copy
Wolfgang Link [Wed, 25 Nov 2015 09:18:17 +0000 (10:18 +0100)]
add function file_copy

to have a save copy.

8 years agobump version to 4.0-38
Dietmar Maurer [Thu, 19 Nov 2015 05:25:36 +0000 (06:25 +0100)]
bump version to 4.0-38

8 years agoavoid access to undefinded var $tag
Dietmar Maurer [Thu, 19 Nov 2015 05:23:12 +0000 (06:23 +0100)]
avoid access to undefinded var $tag

8 years agobump version to 4.0-37
Dietmar Maurer [Fri, 13 Nov 2015 10:16:48 +0000 (11:16 +0100)]
bump version to 4.0-37

8 years agoProcFSTools: implement conforming parse_mounts
Wolfgang Bumiller [Thu, 12 Nov 2015 10:23:39 +0000 (11:23 +0100)]
ProcFSTools: implement conforming parse_mounts

There are a few places where we grep over /proc/mounts
without taking the encoding into acount.
ProcFSTools::parse_mounts parses mount data and decodes all
the special character the kernel might encode into it.

Shortcut: parse_proc_mounts to do
parse_mounts(read_proc_mounts()).
is_mounted() updated to parse mounts correctly.

8 years agoupdate changelog
Dietmar Maurer [Fri, 30 Oct 2015 10:05:49 +0000 (11:05 +0100)]
update changelog

8 years agofix CLONE constant declaration
Wolfgang Bumiller [Fri, 30 Oct 2015 09:31:01 +0000 (10:31 +0100)]
fix CLONE constant declaration

8 years agoTools: make unshare behave like other perl syscalls
Wolfgang Bumiller [Fri, 30 Oct 2015 09:31:00 +0000 (10:31 +0100)]
Tools: make unshare behave like other perl syscalls

Most syscall wrappers in perl return 1 on success and our
current use of Tools::unshare isn't using the return value
(yet), so let's fix this while we can.

Also it seems to make sense to use prototyping on syscalls
to add some compile-time argument checking.

8 years agobump version to 4.0-36
Dietmar Maurer [Fri, 30 Oct 2015 06:04:08 +0000 (07:04 +0100)]
bump version to 4.0-36

8 years agoprint_property_string: skip undefined values
Wolfgang Bumiller [Thu, 29 Oct 2015 13:56:58 +0000 (14:56 +0100)]
print_property_string: skip undefined values

8 years agoTools::df: fork and use Filesys::Df
Wolfgang Bumiller [Thu, 29 Oct 2015 13:16:59 +0000 (14:16 +0100)]
Tools::df: fork and use Filesys::Df

Instead of depending on the 'df' commandline tool do a
fork() to create a killable process and run Filesys::Df,
returning the data over a pipe.

8 years agobump version to 4.0-35
Dietmar Maurer [Fri, 23 Oct 2015 11:08:22 +0000 (13:08 +0200)]
bump version to 4.0-35

8 years agoread_prox_net_ipv6_route fixup
Wolfgang Bumiller [Thu, 22 Oct 2015 13:45:24 +0000 (15:45 +0200)]
read_prox_net_ipv6_route fixup

- read_v6addr used the wrong $_
- All values in the file are hex and possibly prefixed with
zeroes so we need to make sure they don't get interpreted as
octal.

8 years agobump version to 4.0-34
Dietmar Maurer [Mon, 19 Oct 2015 09:14:35 +0000 (11:14 +0200)]
bump version to 4.0-34

8 years agohalf-revert: remove autostart property from bridge ports
Wolfgang Bumiller [Mon, 19 Oct 2015 08:50:23 +0000 (10:50 +0200)]
half-revert: remove autostart property from bridge ports

In commit 21d32c95cd autostart was removed from all bridge
ports but should have only been removed from ovs bridge ports.

8 years agonetwork: IP_from_cidr and is_ip_in_cidr helpers
Wolfgang Bumiller [Fri, 16 Oct 2015 13:53:49 +0000 (15:53 +0200)]
network: IP_from_cidr and is_ip_in_cidr helpers

8 years agobump version to 4.0-33
Dietmar Maurer [Fri, 16 Oct 2015 07:54:07 +0000 (09:54 +0200)]
bump version to 4.0-33

8 years agoallow /32 ipv4 cidrs
Wolfgang Bumiller [Fri, 16 Oct 2015 07:28:07 +0000 (09:28 +0200)]
allow /32 ipv4 cidrs

8 years agosupport aliases in property strings
Wolfgang Bumiller [Thu, 15 Oct 2015 10:35:18 +0000 (12:35 +0200)]
support aliases in property strings

In qemu the 'volume' key maps to 'file', both can be used,
so to support this case in the comma-separated property
list parser we need a way to alias keys to one another.
This allows declaring a key like:

  volume => {
      alias => 'file'
  }
  file => {
      type => 'string',
      format => 'pve-volume-id',
      default_key => 1,
      format_description => 'volume'
  }

With this the following property strings are equivalent and
result in the same datastructure being returned from
parse_property_string:

  local:disk.raw
  file=local:disk.raw
  volume=local:disk.raw

8 years agobump version tio 4.0-32
Dietmar Maurer [Thu, 15 Oct 2015 10:22:59 +0000 (12:22 +0200)]
bump version tio 4.0-32

8 years agoprint_property_string: disk-size is a format, not a type
Wolfgang Bumiller [Thu, 15 Oct 2015 10:12:31 +0000 (12:12 +0200)]
print_property_string: disk-size is a format, not a type

8 years agorandom_ether_addr: code cleanups
Dietmar Maurer [Fri, 9 Oct 2015 09:48:25 +0000 (11:48 +0200)]
random_ether_addr: code cleanups

8 years agoShorter implementation of random_ether_addr().
Philipp Marek [Wed, 7 Oct 2015 09:09:00 +0000 (11:09 +0200)]
Shorter implementation of random_ether_addr().

8 years agobump version to 4.0-31
Dietmar Maurer [Fri, 9 Oct 2015 06:43:54 +0000 (08:43 +0200)]
bump version to 4.0-31

8 years agoparse_property_string: add newline to error strings
Dietmar Maurer [Fri, 9 Oct 2015 06:38:37 +0000 (08:38 +0200)]
parse_property_string: add newline to error strings

to prevent perl from adding 'at line xxx'

8 years agodon't reorder unknown interface types
Wolfgang Bumiller [Wed, 7 Oct 2015 08:42:17 +0000 (10:42 +0200)]
don't reorder unknown interface types

Giving unknown interfaces an order-id of 0 caused them to
always be on top of the interfaces file. This is often
undesired. Instead we now only take type-ordering into
account when both interfaces which are being compared have a
known type, and otherwise only use the priority attribute.
This should result in a more stable modification of
interfaces.

Fixes #747

8 years agobump version to 4.0-30
Dietmar Maurer [Wed, 7 Oct 2015 06:57:24 +0000 (08:57 +0200)]
bump version to 4.0-30

8 years agoapi_clone_schema: use Clone::clone instead of Storable::dclone
Dietmar Maurer [Wed, 7 Oct 2015 06:55:42 +0000 (08:55 +0200)]
api_clone_schema: use Clone::clone instead of Storable::dclone

This works with CODE refs like 'completion' helpers.

8 years agodepend on libclone-perl
Dietmar Maurer [Wed, 7 Oct 2015 06:54:25 +0000 (08:54 +0200)]
depend on libclone-perl

8 years agobump version to 4.0-29
Dietmar Maurer [Mon, 5 Oct 2015 10:32:13 +0000 (12:32 +0200)]
bump version to 4.0-29

8 years agoTools::IPV4OCTET: move longer alternatives forward
Wolfgang Bumiller [Mon, 5 Oct 2015 07:30:57 +0000 (09:30 +0200)]
Tools::IPV4OCTET: move longer alternatives forward

In an alternation /a|b|c/ the first match matches, so while
'1.1.1.121' matches /^$IPV4RE$/ (note the ^ and $ anchors),
parsing a line like /nameserver ($IPV4RE)/ would only
extract '1.1.1.12', ignoring the last '1' due to the /[1-9]/
alternative matching before the /1[0-9]/ one.

8 years agoINotify::read_etc_resolv_conf: ipv6 support
Wolfgang Bumiller [Mon, 5 Oct 2015 07:30:56 +0000 (09:30 +0200)]
INotify::read_etc_resolv_conf: ipv6 support

8 years agobump version to 4.0-28
Dietmar Maurer [Fri, 2 Oct 2015 11:42:53 +0000 (13:42 +0200)]
bump version to 4.0-28

8 years agorun_cli_handler: add no_init for lxc mount hook
Dietmar Maurer [Fri, 2 Oct 2015 11:41:15 +0000 (13:41 +0200)]
run_cli_handler: add no_init for lxc mount hook

8 years agorun_cli_handler: use paramenter name 'prepare' instead of 'preparefunc'
Dietmar Maurer [Fri, 2 Oct 2015 09:30:11 +0000 (11:30 +0200)]
run_cli_handler: use paramenter name 'prepare' instead of 'preparefunc'

8 years agorun_cli_handler: test for unknown parameters
Dietmar Maurer [Fri, 2 Oct 2015 09:24:43 +0000 (11:24 +0200)]
run_cli_handler: test for unknown parameters

8 years agoprint_simple_pod_manpage: fix test for "not initialized"
Dietmar Maurer [Fri, 2 Oct 2015 09:02:49 +0000 (11:02 +0200)]
print_simple_pod_manpage: fix test for "not initialized"

8 years agobump version to 4.0-27
Dietmar Maurer [Fri, 2 Oct 2015 08:43:39 +0000 (10:43 +0200)]
bump version to 4.0-27

8 years agoCLIHandler: make read_password an optional class method
Dietmar Maurer [Fri, 2 Oct 2015 08:37:50 +0000 (10:37 +0200)]
CLIHandler: make read_password an optional class method

And correctly hide password option when generation man pages.
I also define a new method run_cli_handler() meant to replace
the old run_cli() code, using named parameters.

8 years agobump version to 4.0-26
Dietmar Maurer [Thu, 1 Oct 2015 09:26:27 +0000 (11:26 +0200)]
bump version to 4.0-26

8 years agoadded JSONSchema::print_property_string
Wolfgang Bumiller [Thu, 1 Oct 2015 08:36:29 +0000 (10:36 +0200)]
added JSONSchema::print_property_string

This will be used to format comma-separated property list
strings.

8 years agoJSONSchema: added disk-size format
Wolfgang Bumiller [Thu, 1 Oct 2015 08:36:28 +0000 (10:36 +0200)]
JSONSchema: added disk-size format

It's a special case in some output functions as it needs
to use format_size(), so it'll be its own type and handled
in the upcoming print_property_string() function.

8 years agoAdded PVE::JSONSchema::parse_size/format_size
Wolfgang Bumiller [Thu, 1 Oct 2015 08:36:27 +0000 (10:36 +0200)]
Added PVE::JSONSchema::parse_size/format_size

8 years agoSupport named formats in typetext generation
Wolfgang Bumiller [Thu, 1 Oct 2015 08:36:26 +0000 (10:36 +0200)]
Support named formats in typetext generation

Now that generate_typetext doesn't need to be accessed
anymore it made sense to move it to PodParser.pm as this is
the only place that uses it now.
PodParser now needs access to JSONSchema's $format_list, so
a JSONSchema::get_format was added.

8 years agobump version to 4.0-25
Dietmar Maurer [Fri, 25 Sep 2015 05:04:53 +0000 (07:04 +0200)]
bump version to 4.0-25

8 years agoread|write network interfaces : add support for vlan interfaces
Alexandre Derumier [Tue, 22 Sep 2015 06:26:58 +0000 (08:26 +0200)]
read|write network interfaces : add support for vlan interfaces

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 years agobump version to 4.0-24
Dietmar Maurer [Wed, 23 Sep 2015 06:22:15 +0000 (08:22 +0200)]
bump version to 4.0-24

8 years agoPodParser: use generate_typetext
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:44 +0000 (13:45 +0200)]
PodParser: use generate_typetext

8 years agoJSONSchema::generate_typetext: default_key support
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:43 +0000 (13:45 +0200)]
JSONSchema::generate_typetext: default_key support

8 years agoJSONSchema: verify comma-separated property strings
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:42 +0000 (13:45 +0200)]
JSONSchema: verify comma-separated property strings

8 years agoAdded JSONSchema::parse_property_string
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:41 +0000 (13:45 +0200)]
Added JSONSchema::parse_property_string

8 years agogenerate_typetext: better handling of only-optional cases
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:40 +0000 (13:45 +0200)]
generate_typetext: better handling of only-optional cases

8 years agoJSONSchema::generate_typetext: raw typetext support
Wolfgang Bumiller [Tue, 22 Sep 2015 11:45:39 +0000 (13:45 +0200)]
JSONSchema::generate_typetext: raw typetext support

Instead of a format_description which ends up in the
documentation as 'key=<$desc>', a typetext can now be used
for an as-is string. (Eg. for when the key isn't required,
like for volumes in mountpoints, typetext can be set to
[volume=]volume)

8 years agoJSONSchema: pve-ipv4/6-config and CIDR split
Wolfgang Bumiller [Mon, 21 Sep 2015 10:11:08 +0000 (12:11 +0200)]
JSONSchema: pve-ipv4/6-config and CIDR split

Split CIDR schema into CIDRv4 and CIDRv6 and added
pve-ipv4-config and pve-ipv6-config formats.

8 years agoJSONSchema::check_object_warn
Wolfgang Bumiller [Mon, 21 Sep 2015 10:11:07 +0000 (12:11 +0200)]
JSONSchema::check_object_warn

A version of check_object that warns and returns true or
false.

8 years agoJSONSchema: format_description + generate_typetext
Wolfgang Bumiller [Mon, 21 Sep 2015 10:11:05 +0000 (12:11 +0200)]
JSONSchema: format_description + generate_typetext

Helper to generate schema-based typetext properties for
comma separated list configuration strings (like -net0 and -ip)
using a 'format_description' schema property.

8 years agobump version to 4.0-23
Dietmar Maurer [Mon, 21 Sep 2015 10:11:36 +0000 (12:11 +0200)]
bump version to 4.0-23

8 years agosupport QinQ / vlan stacking
Stefan Priebe [Sat, 14 Feb 2015 08:41:50 +0000 (09:41 +0100)]
support QinQ / vlan stacking

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
8 years agoSectionConfig: protect against newline injection
Dietmar Maurer [Sun, 20 Sep 2015 08:34:04 +0000 (10:34 +0200)]
SectionConfig: protect against newline injection

8 years agoprint_bash_completion: handle special case passing $arg_param as string
Dietmar Maurer [Sat, 19 Sep 2015 08:39:20 +0000 (10:39 +0200)]
print_bash_completion: handle special case passing $arg_param as string

8 years agocreateSchema: include type property
Dietmar Maurer [Fri, 18 Sep 2015 06:51:09 +0000 (08:51 +0200)]
createSchema: include type property

8 years agobug fix: PVE::Tools::split_args returns a reference
Dietmar Maurer [Fri, 18 Sep 2015 06:37:48 +0000 (08:37 +0200)]
bug fix: PVE::Tools::split_args returns a reference

8 years agopass whole command line to bash completion function
Dietmar Maurer [Fri, 18 Sep 2015 05:46:56 +0000 (07:46 +0200)]
pass whole command line to bash completion function