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

« back to all changes in this revision

Viewing changes to lib/exabgp/message/update/attribute/labels.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
labels.py
5
4
 
6
 
based on communities.py Created by Thomas Mangin on 2009-11-05.
7
 
Modified by Diego Garcia del Rio on 2010-01-05
8
 
Copyright (c) 2009-2011 Exa Networks. All rights reserved.
 
5
Created by Thomas Mangin on 2009-11-05.
 
6
Copyright (c) 2009-2012 Exa Networks. All rights reserved.
9
7
"""
10
8
 
11
9
from struct import pack
12
10
 
13
 
from exabgp.message.update.attribute import AttributeID,Flag,Attribute
 
11
#from exabgp.message.update.attribute import AttributeID,Flag,Attribute
14
12
 
15
13
# =================================================================== Community
16
14
 
17
15
class Label (object):
18
16
        def __init__ (self,label):
19
17
                self.label = label
20
 
        
 
18
 
21
19
        def pack (self):
22
20
                return pack('!L',self.label)
23
21