Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-50731

Allow --mac gw and len fields to be optional

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.5
    • rhel-9.5
    • virt-v2v
    • None
    • virt-v2v-2.5.6-3.el9
    • No
    • Moderate
    • ZStream
    • sst_virtualization
    • ssg_virtualization
    • 22
    • 24
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None

      In the virt-v2v --mac option, even if the gw and len options appear in the middle of the list, allow them to be empty.

      For example this is now permitted whereas previously it was an error:

      virt-v2v --mac <MAC>:ip:<ADDR>,,,nameserver
      

      (NB the ,,,)

      The affect of this is to omit the -DefaultGateway and/or -PrefixLength options of New-NetIPAddress in the powershell script that we insert into Windows guests.

      Upstream fix:
      https://github.com/libguestfs/virt-v2v/commit/159fda411d2f75b087106e7293d273ae142c9fbe

            rhn-eng-rjones Richard Jones
            rhn-eng-rjones Richard Jones
            virt-maint virt-maint
            Ming Xie Ming Xie
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: