~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to hooks/neutron_api_utils.py

  • Committer: David Ames
  • Date: 2015-09-28 17:45:40 UTC
  • mfrom: (145 trunk)
  • mto: This revision was merged to the branch mainline in revision 146.
  • Revision ID: david.ames@canonical.com-20150928174540-wx0t0d3uwgmlsotb
PullĀ inĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
        raise Exception("IPv6 is not supported in the charms for Ubuntu "
407
407
                        "versions less than Trusty 14.04")
408
408
 
409
 
    # NOTE(xianghui): Need to install haproxy(1.5.3) from trusty-backports
410
 
    # to support ipv6 address, so check is required to make sure not
411
 
    # breaking other versions, IPv6 only support for >= Trusty
412
 
    if ubuntu_rel == 'trusty':
413
 
        add_source('deb http://archive.ubuntu.com/ubuntu trusty-backports'
414
 
                   ' main')
 
409
    # Need haproxy >= 1.5.3 for ipv6 so for Trusty if we are <= Kilo we need to
 
410
    # use trusty-backports otherwise we can use the UCA.
 
411
    if ubuntu_rel == 'trusty' and os_release('neutron-server') < 'liberty':
 
412
        add_source('deb http://archive.ubuntu.com/ubuntu trusty-backports '
 
413
                   'main')
415
414
        apt_update()
416
415
        apt_install('haproxy/trusty-backports', fatal=True)
417
416