[Bug 1862935] Re: the subnet commands shows the dns server in lexical order instead of dns contact order

James Page james.page at ubuntu.com
Mon Mar 30 15:05:16 UTC 2020


This is the function used to sort the dns_nameservers attribute of a
subnet:

def format_list(data, separator=', '):
    """Return a formatted strings

    :param data: a list of strings
    :param separator: the separator to use between strings (default: ', ')
    :rtype: a string formatted based on separator
    """
    if data is None:
        return None

    return separator.join(sorted(data))

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1862935

Title:
  the subnet commands shows the dns server in lexical order instead of
  dns contact order

Status in python-openstackclient package in Ubuntu:
  Won't Fix

Bug description:
  When printing informations about a subnet with the following command:

  openstack subnet list --long

  the values printed in the "Name Servers" column are in lexical order
  by IP, e.g.

  10.10.10.1 10.20.10.1

  without sensing about the effective order of the DNS servers applied
  to the subnet which should be instead

  10.20.10.1 10.10.10.1

  Note that the servers list is ok when accessing the web gui, so I
  believe that the wrong print order is caused by the cli code.

  Actually i'm using python-openstackclient 4.0.0 and it seems the
  latest release available.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1862935/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list