moby / moby/libnetwork

gateway ip options are None in swarm mode

Open
#1,702 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
2.2k
Forks
875
PR merge metrics
No merged PRs in 30d

Description

Hi Team,

When I use lagency libnetwork remote plugin, for example, I created a network with gateway ip as follow:
docker network create --driver kuryr --ipam-driver kuryr --subnet 10.225.17.0/24 --gateway 10.225.17.1 --ip-range 10.225.17.0/24 limao_swarm_kuryr

When libnetwork call kuryr ipam driver "/IpamDriver.RequestAddress" request address for gateway ip, it will have Options {"RequestAddressType": "com.docker.network.gateway"}.

But when I use docker swarm mode in 1.13.1, it do not has this Options.

Is this by design or a bug?

Thanks for your help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided network creation and gateway-address requests in regular and Swarm mode, comparing the RequestAddress Options payloads. Trace the libnetwork IPAM request path to determine whether the missing com.docker.network.gateway option is intentional, then verify the expected behavior with regression coverage or documented rationale.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.