Change naming on some of the API functions for consistency
Change-Id: I5937850a5b562e6ddb8741f2b8b9a6720da0dd83
This commit is contained in:
parent
45b62c5a34
commit
27c192c61e
@ -22,7 +22,7 @@ class PacketTraceECMPResolution():
|
||||
def getPort(self):
|
||||
return self._port
|
||||
|
||||
def getECMPLINKResolution(self):
|
||||
def getECMPLinkResolution(self):
|
||||
return self._ecmplinkresolution
|
||||
|
||||
def __repr__(self):
|
||||
|
@ -22,9 +22,12 @@ class PacketTraceLAGResolution():
|
||||
def getPort(self):
|
||||
return self._port
|
||||
|
||||
def getLAGLINKResolution(self):
|
||||
def getLAGLinkResolution(self):
|
||||
return self._laglinkresolution
|
||||
|
||||
def __repr__(self):
|
||||
return "packet-trace-lag-resolution"
|
||||
|
||||
def parse(self, data, port=None):
|
||||
if port == None:
|
||||
ret = False
|
||||
|
@ -28,10 +28,10 @@ class PacketTraceProfileEntry():
|
||||
def getPort(self):
|
||||
return self._port
|
||||
|
||||
def getLAGLINKResolution(self):
|
||||
def getLAGLinkResolution(self):
|
||||
return self._laglinkresolution
|
||||
|
||||
def getECMPLINKResolution(self):
|
||||
def getECMPLinkResolution(self):
|
||||
return self._ecmplinkresolution
|
||||
|
||||
class PacketTraceProfile():
|
||||
|
@ -1734,7 +1734,7 @@ class TestParser(unittest.TestCase):
|
||||
val = rep.getPacketTraceLAGResolution()
|
||||
|
||||
for m in val:
|
||||
llr = m.getLAGLINKResolution()
|
||||
llr = m.getLAGLinkResolution()
|
||||
if m.getPort() == "1":
|
||||
self.assertEqual(llr.getLAGID(), "1")
|
||||
|
||||
@ -1801,7 +1801,7 @@ class TestParser(unittest.TestCase):
|
||||
val = rep.getPacketTraceECMPResolution()
|
||||
|
||||
for m in val:
|
||||
llr = m.getECMPLINKResolution()
|
||||
llr = m.getECMPLinkResolution()
|
||||
if m.getPort() == "1":
|
||||
for x in llr:
|
||||
if x.getECMPGroupID() == "200256":
|
||||
@ -2124,7 +2124,7 @@ class TestParser(unittest.TestCase):
|
||||
for m in n:
|
||||
realm = m.getRealm()
|
||||
if realm == "lag-link-resolution":
|
||||
llr = m.getLAGLINKResolution()
|
||||
llr = m.getLAGLinkResolution()
|
||||
if m.getPort() == "1":
|
||||
self.assertEqual(llr.getLAGID(), "2")
|
||||
|
||||
@ -2150,7 +2150,7 @@ class TestParser(unittest.TestCase):
|
||||
else:
|
||||
self.assertEqual("unexpected port {}".format(llr.getPort()), True)
|
||||
elif realm == "ecmp-link-resolution":
|
||||
elr = m.getECMPLINKResolution()
|
||||
elr = m.getECMPLinkResolution()
|
||||
|
||||
if m.getPort() == "1":
|
||||
for x in elr:
|
||||
|
Loading…
x
Reference in New Issue
Block a user