Merge "Add desc fields for neutron_router_interface"
This commit is contained in:
commit
82e6a1d4fa
@ -11,29 +11,37 @@ Puppet::Type.newtype(:neutron_router_interface) do
|
|||||||
ensurable
|
ensurable
|
||||||
|
|
||||||
newparam(:name, :namevar => true) do
|
newparam(:name, :namevar => true) do
|
||||||
|
desc <<-EOT
|
||||||
|
The name is used to derive the names of the subnet and router,
|
||||||
|
using the format RouterName:SubnetName, for example to attach
|
||||||
|
Subnet1 to Router1 you should name this resource Router1:Subnet1
|
||||||
|
EOT
|
||||||
newvalues(/^\S+:\S+$/)
|
newvalues(/^\S+:\S+$/)
|
||||||
end
|
end
|
||||||
|
|
||||||
newproperty(:id) do
|
newproperty(:id) do
|
||||||
|
desc 'interface id. Read Only.'
|
||||||
validate do |v|
|
validate do |v|
|
||||||
raise(Puppet::Error, 'This is a read only property')
|
raise(Puppet::Error, 'This is a read only property')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
newproperty(:router_name) do
|
newproperty(:router_name) do
|
||||||
|
desc 'router to which to attach this interface. Read Only. set with the name'
|
||||||
validate do |v|
|
validate do |v|
|
||||||
raise(Puppet::Error, 'This is a read only property')
|
raise(Puppet::Error, 'This is a read only property')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
newproperty(:subnet_name) do
|
newproperty(:subnet_name) do
|
||||||
|
desc 'subnet to which to attach this interface. Read Only. set with the name'
|
||||||
validate do |v|
|
validate do |v|
|
||||||
raise(Puppet::Error, 'This is a read only property')
|
raise(Puppet::Error, 'This is a read only property')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
newproperty(:port) do
|
newproperty(:port) do
|
||||||
desc 'An existing neutron port to which a rounter interface should be assigned'
|
desc 'An existing neutron port to which a router interface should be assigned'
|
||||||
end
|
end
|
||||||
|
|
||||||
autorequire(:service) do
|
autorequire(:service) do
|
||||||
|
Loading…
Reference in New Issue
Block a user