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 require 'puppet/property/list' |
26 require 'puppet/property/list' |
27 |
27 |
28 Puppet::Type.newtype(:link_aggregation) do |
28 Puppet::Type.newtype(:link_aggregation) do |
35 isnamevar |
35 isnamevar |
36 end |
36 end |
37 |
37 |
38 newparam(:temporary) do |
38 newparam(:temporary) do |
39 desc "Optional parameter that specifies that the aggreation is |
39 desc "Optional parameter that specifies that the aggreation is |
40 temporary. Temporary aggreation links last until the next |
40 temporary. Temporary aggregation links last until the next |
41 reboot." |
41 reboot." |
42 newvalues(:true, :false) |
42 newvalues(:true, :false) |
43 end |
43 end |
44 |
44 |
45 newproperty(:lower_links, :parent => Puppet::Property::List) do |
45 newproperty(:lower_links, :parent => Puppet::Property::List) do |
61 end |
61 end |
62 |
62 |
63 end |
63 end |
64 |
64 |
65 newproperty(:mode) do |
65 newproperty(:mode) do |
66 desc "Specifies which mode to set. Valid values are trunk or dlmp. |
66 desc "Specifies which mode to set." |
67 Defaults to :trunk" |
|
68 newvalues(:trunk, :dlmp) |
67 newvalues(:trunk, :dlmp) |
69 end |
68 end |
70 |
69 |
71 newproperty(:policy) do |
70 newproperty(:policy) do |
72 desc "Specifies the port selection policy to use for load spreading |
71 desc "Specifies the port selection policy to use for load spreading |