-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adding removal of zonecfg provisional network after startup
- Loading branch information
1 parent
38c2bf2
commit 8885044
Showing
5 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'log4r' | ||
require 'securerandom' | ||
require 'digest/md5' | ||
|
||
module VagrantPlugins | ||
module ProviderZone | ||
module Action | ||
# This is use to define the network | ||
class NetworkingCleanup | ||
def initialize(app, _env) | ||
@logger = Log4r::Logger.new('vagrant_zones::action::import') | ||
@app = app | ||
end | ||
|
||
def call(env) | ||
@machine = env[:machine] | ||
@driver = @machine.provider.driver | ||
@driver.network(env[:ui], 'delete_provisional') | ||
@app.call(env) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters