equal
deleted
inserted
replaced
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 |
25 |
26 Puppet::Type.type(:link_aggregation).provide(:link_aggregation) do |
26 Puppet::Type.type(:link_aggregation).provide(:link_aggregation) do |
27 desc "Provider for creating Oracle Solaris link aggregations" |
27 desc "Provider for creating Oracle Solaris link aggregations" |
28 confine :operatingsystem => [:solaris] |
28 confine :operatingsystem => [:solaris] |
35 "\n").collect do |line| |
35 "\n").collect do |line| |
36 link, mode, policy, addrpolicy, lacpactivity, lacptimer = \ |
36 link, mode, policy, addrpolicy, lacpactivity, lacptimer = \ |
37 line.split(":") |
37 line.split(":") |
38 |
38 |
39 links = [] |
39 links = [] |
40 dladm("show-aggr", "-x", "-p", "-o", "port").split( |
40 dladm("show-aggr", "-x", "-p", "-o", "port", "link").split( |
41 "\n").each do |portline| |
41 "\n").each do |portline| |
42 next if portline.strip() == "" |
42 next if portline.strip() == "" |
43 links << portline.strip() |
43 links << portline.strip() |
44 end |
44 end |
45 |
45 |