Skip to content

cephadm: add unwrap_ipv6 helper method#36360

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
matthewoliver:cephadm_add_ipv6_unwrap
Jul 31, 2020
Merged

cephadm: add unwrap_ipv6 helper method#36360
sebastian-philipp merged 1 commit intoceph:masterfrom
matthewoliver:cephadm_add_ipv6_unwrap

Conversation

@matthewoliver
Copy link
Contributor

When we pass in a mon-ip that is ipv6 we want it wrapped, this is so it
can be properly inserted into the mon_addrv address.
But there are times we need to unwrap it to test it's a valid ipv6
address.

This patch adds a helper method unwrap_ipv6 which takes a string and
returns it either unwrapped or as it is, so it's harmless to other types
of ips.

This allows us to check a wrapped ipv6 base_ip with the networks on the
host.

Signed-off-by: Matthew Oliver moliver@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

When we pass in a mon-ip that is ipv6 we want it wrapped, this is so it
can be properly inserted into the mon_addrv address.
But there are times we need to unwrap it to test it's a valid ipv6
address.

This patch adds a helper method `unwrap_ipv6` which takes a string and
returns it either unwrapped or as it is, so it's harmless to other types
of ips.

This allows us to check a wrapped ipv6 base_ip with the networks on the
host.

Signed-off-by: Matthew Oliver <moliver@suse.com>
@matthewoliver matthewoliver requested a review from a team as a code owner July 30, 2020 03:31
@matthewoliver matthewoliver mentioned this pull request Jul 30, 2020
8 tasks
@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label Jul 30, 2020
@sebastian-philipp
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants