--- a/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb Wed May 28 11:14:55 2014 -0700
+++ b/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb Thu May 29 15:59:20 2014 -0600
@@ -20,7 +20,7 @@
#
#
-# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
#
Puppet::Type.newtype(:ip_interface) do
@@ -33,7 +33,7 @@
isnamevar
validate do |name|
- cmd = Array["/usr/sbin/dladm", "show-phys", "-p", "-o", "link"]
+ 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)