Add support for external ids
This commit is contained in:
parent
eb07d77499
commit
59d11d4207
@ -19,6 +19,7 @@ Puppet::Type.type(:vs_bridge).provide(:ovs) do
|
||||
|
||||
def _split(string, splitter="\n")
|
||||
return Hash[string.split(splitter).map{|i| i.split("=")}]
|
||||
end
|
||||
|
||||
def external_ids
|
||||
result = vsctl("br-get-external-id", @resource[:bridge])
|
||||
|
@ -11,7 +11,7 @@ module Puppet
|
||||
desc "The bridge to configure"
|
||||
end
|
||||
|
||||
newparam(:external_ids) do
|
||||
newproperty(:external_ids) do
|
||||
desc "External IDs for the bridge"
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,10 @@
|
||||
class vswitch::bridge (
|
||||
$ensure
|
||||
$name,
|
||||
$external_ids = "",
|
||||
$ensure = "present"
|
||||
) {
|
||||
vs_bridge { $br_name:
|
||||
vs_bridge { $name:
|
||||
external_ids => $external_ids,
|
||||
ensure => $ensure
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user