~ubuntu-branches/ubuntu/trusty/exabgp/trusty

« back to all changes in this revision

Viewing changes to lib/exabgp/message/update/attribute/localpref.py

  • Committer: Package Import Robot
  • Author(s): Henry-Nicolas Tourneur
  • Date: 2012-03-22 12:00:00 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120322120000-v4aj8h69mhpmgbjq
Tags: 2.0.7-1

* New upstream release
* Fix bad clean target for build/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
1
# encoding: utf-8
3
2
"""
4
3
attributes.py
5
4
 
6
5
Created by Thomas Mangin on 2009-11-05.
7
 
Copyright (c) 2009-2011 Exa Networks. All rights reserved.
 
6
Copyright (c) 2009-2012 Exa Networks. All rights reserved.
8
7
"""
9
8
 
10
9
from struct import pack
14
13
# =================================================================== Local Preference (5)
15
14
 
16
15
class LocalPreference (Attribute):
17
 
        ID = AttributeID.LOCAL_PREF 
 
16
        ID = AttributeID.LOCAL_PREF
18
17
        FLAG = Flag.TRANSITIVE
19
18
        MULTIPLE = False
20
19
 
26
25
 
27
26
        def __len__ (self):
28
27
                return 4
29
 
        
 
28
 
30
29
        def __str__ (self):
31
30
                return str(self.localpref)
32
31