diff options
author | Tim Smith <tsmith@chef.io> | 2018-07-16 15:33:34 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-07-16 15:42:57 -0700 |
commit | b0df53274ec810178d260fe91f55a2928c3cc0ce (patch) | |
tree | 52906442201f4b400094b2db6f6f1f3c6094c7bf | |
parent | 03f38c0120732b5167547566d086350f82e83abe (diff) | |
download | chef-b0df53274ec810178d260fe91f55a2928c3cc0ce.tar.gz |
Remove the gateway property
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | lib/chef/resource/ifconfig.rb | 4 | ||||
-rw-r--r-- | spec/unit/provider/route_spec.rb | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/chef/resource/ifconfig.rb b/lib/chef/resource/ifconfig.rb index f6f9abedee..2ea0381991 100644 --- a/lib/chef/resource/ifconfig.rb +++ b/lib/chef/resource/ifconfig.rb @@ -96,10 +96,6 @@ class Chef property :vlan, String, introduced: "14.4", description: "The VLAN to assign the interface to." - - property :gateways, String, - introduced: "14.4", - description: "The gateway to assign the interface to." end end end diff --git a/spec/unit/provider/route_spec.rb b/spec/unit/provider/route_spec.rb index ea6ddffb81..977e5681bf 100644 --- a/spec/unit/provider/route_spec.rb +++ b/spec/unit/provider/route_spec.rb @@ -167,7 +167,7 @@ describe Chef::Provider::Route do expect(@provider.generate_command(:add).join(" ")).not_to match(/\svia\s#{Regexp.escape(@new_resource.gateway.to_s)}/) end - it "should use the gatway when target is default" do + it "should use the gateway when target is default" do @default_resource.gateway("10.0.0.10") expect(@default_provider.generate_command(:add).join(" ")).to match(/10.0.0.10/) end |