OSDN Git Service
(root)
/
ti2
/
ti2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add LinuxVlanAgent
[ti2/ti2.git]
/
linkpair
/
port.py
1
# vim: tabstop=4 shiftwidth=4 softtabstop=4
2
# -*- coding: utf-8 -*-
3
#
4
5
__version__ = '1.1'
6
7
from linkobject import LinkObject
8
9
10
class Port(LinkObject):
11
DEFAULT_TYPE = 1
12
13
def __init__(self, label, type=DEFAULT_TYPE, metadata={}):
14
self.label = label
15
self.type = type
16
self.metadata = metadata