Skip to content

Commit

Permalink
Update to vintage_net 0.8's required_ifnames
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed May 29, 2020
1 parent 43dd401 commit f942581
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/vintage_net_direct.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ defmodule VintageNetDirect do
ifname: ifname,
type: __MODULE__,
source_config: normalized_config,
child_specs: [
{OneDHCPD.Server, [ifname, []]}
]
required_ifnames: [ifname],
child_specs: [{OneDHCPD.Server, [ifname, []]}]
}
|> IPv4Config.add_config(ipv4_config, opts)
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule VintageNetDirect.MixProject do

defp deps do
[
{:vintage_net, "~> 0.7.9"},
{:vintage_net, "~> 0.8.0"},
{:one_dhcpd, "~> 0.2.3"},
{:credo, "~> 1.2", only: :test, runtime: false},
{:dialyxir, "~> 1.0.0", only: [:dev, :test], runtime: false},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm", "17ef63abde837ad30680ea7f857dd9e7ced9476cdd7b0394432af4bfc241b960"},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"},
"unicode_util_compat": {:hex, :unicode_util_compat, "0.5.0", "8516502659002cec19e244ebd90d312183064be95025a319a6c7e89f4bccd65b", [:rebar3], [], "hexpm", "d48d002e15f5cc105a696cf2f1bbb3fc72b4b770a184d8420c8db20da2674b38"},
"vintage_net": {:hex, :vintage_net, "0.7.9", "ce881508edfadd3f178189f957d1551aed2e25d825152cb8c21016c507701b0c", [:make, :mix], [{:busybox, "~> 0.1.4", [hex: :busybox, repo: "hexpm", optional: true]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:gen_state_machine, "~> 2.0.0 or ~> 2.1.0", [hex: :gen_state_machine, repo: "hexpm", optional: false]}, {:muontrap, "~> 0.5.1 or ~> 0.6.0", [hex: :muontrap, repo: "hexpm", optional: false]}], "hexpm", "4a76d93a7adbd15bb42579ae6dfe4602008c7cf097d0e0f648f44e0b38ad717a"},
"vintage_net": {:hex, :vintage_net, "0.8.0", "6d8788c3a6cfddb8b98bacd30d1c58edf29ddb61130667496828129577dca790", [:make, :mix], [{:busybox, "~> 0.1.5", [hex: :busybox, repo: "hexpm", optional: true]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:gen_state_machine, "~> 2.0.0 or ~> 2.1.0", [hex: :gen_state_machine, repo: "hexpm", optional: false]}, {:muontrap, "~> 0.5.1 or ~> 0.6.0", [hex: :muontrap, repo: "hexpm", optional: false]}], "hexpm", "492cdec21b8ee9c2a3bb0dfd6fa12d1f2aadb19875c1bf3f780dc5b899dde9eb"},
}
1 change: 1 addition & 0 deletions test/gadget_compatibility_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ defmodule GadgetCompatibilityTest do
ifname: "usb0",
type: VintageNetDirect,
source_config: normalized_input,
required_ifnames: ["usb0"],
child_specs: [
{OneDHCPD.Server, ["usb0", []]},
{VintageNet.Interface.LANConnectivityChecker, "usb0"}
Expand Down
1 change: 1 addition & 0 deletions test/vintage_net_direct_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ defmodule VintageNetDirectTest do
ifname: "usb0",
type: VintageNetDirect,
source_config: input,
required_ifnames: ["usb0"],
child_specs: [
{OneDHCPD.Server, ["usb0", []]},
{VintageNet.Interface.LANConnectivityChecker, "usb0"}
Expand Down

0 comments on commit f942581

Please sign in to comment.