Skip to content
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

Support dynamic ip address in interface test #630

Open
tomoyk opened this issue Oct 9, 2020 · 2 comments
Open

Support dynamic ip address in interface test #630

tomoyk opened this issue Oct 9, 2020 · 2 comments

Comments

@tomoyk
Copy link

tomoyk commented Oct 9, 2020

Describe the feature:

Currently, dynamic IP address testing is not supported in interface section.

Please support CIDR-based IP address testing.

Describe the solution you'd like

Example format:

interface:
  eth0:
    # required attributes
    exists: true
    # optional attributes
    addrs-range:
    - 172.17.0.0/16
    - 10.0.0.0/8
    mtu: 1500

Describe alternatives you've considered

It can also be expressed in the command section.

command:
  ipaddr:
    exit-status: 0
    exec: 'ip -f inet -o addr show eth0 | grep -o "inet 10.[0-9]\{1,3\}.[0-9]\{1,3\}.[0-9]\{1,3\}"'
    timeout: 10000 # in milliseconds
    skip: false
@aelsabbahy
Copy link
Member

I think this would be great once the #576 lands. At that point, there can be a custom matcher cidr-constraint or something like that.

@tomoyk
Copy link
Author

tomoyk commented Oct 24, 2020

Thank you for handling this issue 👍

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

No branches or pull requests

2 participants