-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nat Network Support #18
base: main
Are you sure you want to change the base?
Conversation
@@ -18,6 +19,8 @@ const ( | |||
NICNetDisconnected = NICNetwork("null") | |||
// NICNetNAT when the NIC is NAT-ed to access the external network. | |||
NICNetNAT = NICNetwork("nat") | |||
// NICNetNATNetwork when the NIC is on an internal network, with NATed external access. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a potential go fmt
error. I have merged a change to update the linting on the CI. I think if you rebase this PR it should show up.
return nil | ||
} | ||
|
||
func (n *NATNet) Config() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config
sounds like a function which will return some configuration. I think making it a verb Configure
would portray the effect of this function better.
This PR contains the functionality in #13 and #11, rebased onto master and updated to use the
Mange().run
functions.I am using this functionality successfully with a patched version of the terraform provider, and a couple of other minor patches to this library (to be introduced in different PRs).