-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman network create #3862
podman network create #3862
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: baude The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b51eaaf
to
36f4a33
Compare
Create a network with no options | ||
``` | ||
# podman network create | ||
/etc/cni/net.d/cni-podman-4.conflist |
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.
Why not just podman-4.conflist, I don't see a vailue in prefixing this with cni, since we are already in the /etc/cni subdir
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 was agreed with @mheon ...
) | ||
|
||
// LoadCNIConfsFromDir loads all the CNI configurations from a dir | ||
func LoadCNIConfsFromDir(dir string) ([]*libcni.NetworkConfigList, 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.
I feel like we might want to wrap this in a sync.Once so we don't repeatedly reread the configs
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.
?? lets talk on Monday
e4fa4cf
to
e02fd5d
Compare
LGTM |
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.
A couple of nits and comments below. Will start playing with the PR now.
One thing I noticed is a difference in the naming scheme:
I suggest following the exisiting convention of |
I tried using the generated network but it failed since it can't find a default network. Changing the |
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.
I tried using the generated network but it failed since it can't find a default network.
Changing the
"name"
from"cni-podman0"
to"podman"
in the generated config fixed it. Is this intended/expected?
the defaultnetwork needs to be documented in the conf file && actually honored. @mheon and i need to huddle on it once we merge this.
bbf4c48
to
3fd319f
Compare
☔ The latest upstream changes (presumably #3876) made this pull request unmergeable. Please resolve the merge conflicts. |
ad9a845
to
e5f6afd
Compare
@edsantiago do you understand whats going on with the gating failure? it was passing and i rebased and now fails. |
I guess the problem is the trailing dash in diff --git a/docs/podman-network-create.1.md b/docs/podman-network-create.1.md
index 45701bfc2f56..4c7cc7ef06d3 100644
--- a/docs/podman-network-create.1.md
+++ b/docs/podman-network-create.1.md
@@ -1,7 +1,7 @@
% podman-network-create(1)
## NAME
-podman\-network-create- Create a Podman CNI network
+podman\-network\-create - Create a CNI network for Podman
## SYNOPSIS
**podman network create** [*options*] name |
initial implementation of network create. we only support bridging networks with this first pass. Signed-off-by: baude <[email protected]>
LGTM |
/lgtm |
Will this be available in v1.5.2? Or v1.6.0? |
It will be available in v1.6.0. There won't be a 1.5.2. |
@AkihiroSuda Goal is to cut 1.6.0 on Friday. |
initial implementation of network create. we only support bridging
networks with this first pass.
Signed-off-by: baude [email protected]