Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tests: refactor vpp_object.py
[vpp.git]
/
test
/
vpp_bier.py
diff --git
a/test/vpp_bier.py
b/test/vpp_bier.py
index
f389ca1
..
8e27f25
100644
(file)
--- a/
test/vpp_bier.py
+++ b/
test/vpp_bier.py
@@
-97,9
+97,6
@@
class VppBierTable(VppObject):
self.mpls_label,
is_add=0)
self.mpls_label,
is_add=0)
- def __str__(self):
- return self.object_id()
-
def object_id(self):
return "bier-table;[%d:%d:%d]" % (self.id.set_id,
self.id.sub_domain_id,
def object_id(self):
return "bier-table;[%d:%d:%d]" % (self.id.set_id,
self.id.sub_domain_id,
@@
-198,9
+195,6
@@
class VppBierRoute(VppObject):
is_replace=1)
self.paths = []
is_replace=1)
self.paths = []
- def __str__(self):
- return self.object_id()
-
def object_id(self):
return "bier-route;[%d:%d:%d:%d]" % (self.tbl_id.set_id,
self.tbl_id.sub_domain_id,
def object_id(self):
return "bier-route;[%d:%d:%d:%d]" % (self.tbl_id.set_id,
self.tbl_id.sub_domain_id,
@@
-234,9
+228,6
@@
class VppBierImp(VppObject):
self._test.vapi.bier_imp_del(
self.bi_index)
self._test.vapi.bier_imp_del(
self.bi_index)
- def __str__(self):
- return self.object_id()
-
def object_id(self):
return "bier-imp;[%d:%d:%d:%d]" % (self.tbl_id.set_id,
self.tbl_id.sub_domain_id,
def object_id(self):
return "bier-imp;[%d:%d:%d:%d]" % (self.tbl_id.set_id,
self.tbl_id.sub_domain_id,
@@
-267,9
+258,6
@@
class VppBierDispTable(VppObject):
self.id,
is_add=0)
self.id,
is_add=0)
- def __str__(self):
- return self.object_id()
-
def object_id(self):
return "bier-disp-table;[%d]" % (self.id)
def object_id(self):
return "bier-disp-table;[%d]" % (self.id)
@@
-316,9
+304,6
@@
class VppBierDispEntry(VppObject):
self.rpf_id,
is_add=0)
self.rpf_id,
is_add=0)
- def __str__(self):
- return self.object_id()
-
def object_id(self):
return "bier-disp-entry;[%d:%d]" % (self.tbl_id,
self.bp)
def object_id(self):
return "bier-disp-entry;[%d:%d]" % (self.tbl_id,
self.bp)