~ubuntu-branches/ubuntu/trusty/maas/trusty-security

« back to all changes in this revision

Viewing changes to src/metadataserver/address.py

  • Committer: Package Import Robot
  • Author(s): Greg Lutostanski, Greg Lutostanski, Gavin Panella, Diogo Matsubara, Raphaël Badin
  • Date: 2014-08-29 13:27:34 UTC
  • mfrom: (1.2.34)
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: package-import@ubuntu.com-20140829132734-1yaitdu9h4zlgci0
Tags: 1.5.4+bzr2294-0ubuntu1
* New upstream bug fix release:
  - Change supported releases for install to Precise, Saucy, Trusty, Utopic
    (Add Utopic; Remove Quantal/Raring) -- will still only be able to install
    releases with streams available to maas (LP: #1337437)
  - Package fails to install when the default route is through an
    aliased/tagged interface (LP: #1350235)
  - ERROR Nonce already used (LP: #1190986)
  - Add MAAS arm64/xgene support (LP: #1338851)
  - API documentation for nodegroup op=details missing parameter
    (LP: #1331982)
  - Reduce number of celery tasks emitted when updating a cluster controller
    (LP: #1324944)
  - Fix VirshSSH template which was referencing invalid attributes
    (LP: #1324966)
  - Fix a start up problems where a database lock was being taken outside of
    a transaction (LP: #1325640, LP: #1325759)
  - Reformat badly formatted Architecture error message (LP: #1301465)
  - Final changes to support ppc64el (now known as PowerNV) (LP: #1315154)
  - UI tweak to make navigation elements visible for documentation

[ Greg Lutostanski ]
 * debian/control:
  - maas-provisioningserver not maas-cluster-controller depends on
    python-pexpect (LP: #1352273)

[ Gavin Panella ]
 * debian/maas-cluster-controller.postinst
  - Allow maas-pserv to bind to all IPv6 addresses too. (LP: #1342302) 

[ Diogo Matsubara ]
 * debian/control:
  - python-maas-provisioningserver depends on python-paramiko (LP: #1334401)

[ Raphaël Badin ]
 * debian/extras/99-maas-sudoers:
  - Add rule 'maas-dhcp-server stop' job.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
    """
64
64
    route_lines = list(ip_route_output)
65
65
    for line in route_lines:
66
 
        match = re.match('default\s+.*\sdev\s+(\w+)', line)
 
66
        match = re.match('default\s+.*\sdev\s+([^\s]+)', line)
67
67
        if match is not None:
68
68
            return match.groups()[0]
69
69
 
70
70
    # Still nothing?  Try the first recognizable interface in the list.
71
71
    for line in route_lines:
72
 
        match = re.match('\s*(?:\S+\s+)*dev\s+(\w+)', line)
 
72
        match = re.match('\s*(?:\S+\s+)*dev\s+([^\s]+)', line)
73
73
        if match is not None:
74
74
            return match.groups()[0]
75
75
    return None