components/puppet/files/solaris/lib/puppet/type/ip_interface.rb
branchs11-update
changeset 3151 0dbc999aeec2
parent 2771 8e4227dc2fc4
child 1928 dded85e478c9
--- a/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb	Fri May 30 02:46:27 2014 -0700
+++ b/components/puppet/files/solaris/lib/puppet/type/ip_interface.rb	Fri May 30 08:19:47 2014 -0700
@@ -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)