18876529 Ip_interface mistakenly validates name s11-update
authorDrew Fisher <drew.fisher@oracle.com>
Mon, 02 Jun 2014 07:30:37 -0700
branchs11-update
changeset 3154 77d40455aa09
parent 3153 4e19b18b0bbd
child 3155 f6fa9fb3be92
18876529 Ip_interface mistakenly validates name
components/puppet/files/solaris/lib/puppet/type/ip_interface.rb
--- a/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb	Sun Jun 01 20:39:57 2014 -0700
+++ b/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb	Mon Jun 02 07:30:37 2014 -0700
@@ -31,13 +31,6 @@
     newparam(:name) do
         desc "The name of the IP interface"
         isnamevar
-
-        validate do |name|
-            cmd = Array["/usr/sbin/dladm", "show-link", "-p", "-o", "link"]
-            output = Puppet::Util::Execution.execute(cmd).split("\n")
-            raise Puppet::Error, "Invalid IP interface name: #{name}" \
-                if not output.include?(name)
-        end
     end
 
     newparam(:temporary)  do