Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pyuci
pyuci
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Turris
  • pyucipyuci
  • Merge Requests
  • !7

Merged
Opened Jul 15, 2020 by Štěpán Henek@shenek🐻Developer

euci: add support for ip address parsing

  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 2

Note that user can use dtype=IPv6Address or dtype=IPv4Address the result will be IPv4Address or IPv6Address regardless of dtype settings.

Perhaps it would be better to change the api of the dtype to match standard python's argparse.

parser.add_argument(..., type=int)  # type is typing.Callable[[typing.Any],typing.Any]

So user could write his own convertor functions.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: turris/pyuci!7
Source branch: network-type

Revert this commit

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.