mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:26:36 +00:00
topotest: minor doc, lutil, sharpd not compiled changes (#5675)
topotest: minor doc, lutil, sharpd not compiled changes
This commit is contained in:
commit
42440fcfa6
@ -79,6 +79,7 @@ If you prefer to manually build FRR, then use the following suggested config:
|
|||||||
--sysconfdir=/etc/frr \
|
--sysconfdir=/etc/frr \
|
||||||
--enable-vtysh \
|
--enable-vtysh \
|
||||||
--enable-pimd \
|
--enable-pimd \
|
||||||
|
--enable-sharpd \
|
||||||
--enable-multipath=64 \
|
--enable-multipath=64 \
|
||||||
--enable-user=frr \
|
--enable-user=frr \
|
||||||
--enable-group=frr \
|
--enable-group=frr \
|
||||||
|
@ -23,15 +23,16 @@ for rtr in rtrs:
|
|||||||
mem_z[rtr] = {'value': int(found.group(1)), 'units': found.group(2)}
|
mem_z[rtr] = {'value': int(found.group(1)), 'units': found.group(2)}
|
||||||
mem_b[rtr] = {'value': int(found.group(3)), 'units': found.group(4)}
|
mem_b[rtr] = {'value': int(found.group(3)), 'units': found.group(4)}
|
||||||
|
|
||||||
luCommand('ce1', 'vtysh -c "sharp data nexthop"', 'sharpd is not running', 'none','check if sharpd running')
|
luCommand('ce1', 'vtysh -c "show mem"', 'qmem sharpd', 'none','check if sharpd running')
|
||||||
doSharp = True
|
doSharp = False
|
||||||
found = luLast()
|
found = luLast()
|
||||||
if ret != False and found != None:
|
if ret != False and found != None:
|
||||||
if len(found.group()):
|
if len(found.group()):
|
||||||
luCommand('ce1', 'vtysh -c "sharp data nexthop"', 'sharpd is not running', 'pass','sharpd NOT running, skipping test')
|
doSharp = True
|
||||||
doSharp = False
|
|
||||||
|
|
||||||
if doSharp == True:
|
if doSharp != True:
|
||||||
|
luCommand('ce1', 'vtysh -c "sharp data nexthop"', '.', 'pass','sharpd NOT running, skipping test')
|
||||||
|
else:
|
||||||
luCommand('ce1', 'vtysh -c "sharp install routes 10.0.0.0 nexthop 99.0.0.1 {}"'.format(num),'','pass','Adding {} routes'.format(num))
|
luCommand('ce1', 'vtysh -c "sharp install routes 10.0.0.0 nexthop 99.0.0.1 {}"'.format(num),'','pass','Adding {} routes'.format(num))
|
||||||
luCommand('ce2', 'vtysh -c "sharp install routes 10.0.0.0 nexthop 99.0.0.2 {}"'.format(num),'','pass','Adding {} routes'.format(num))
|
luCommand('ce2', 'vtysh -c "sharp install routes 10.0.0.0 nexthop 99.0.0.2 {}"'.format(num),'','pass','Adding {} routes'.format(num))
|
||||||
rtrs = ['ce1', 'ce2', 'ce3']
|
rtrs = ['ce1', 'ce2', 'ce3']
|
||||||
|
@ -134,6 +134,7 @@ def teardown_module(mod):
|
|||||||
tgen = get_topogen()
|
tgen = get_topogen()
|
||||||
|
|
||||||
if _lt != None and _lt.scriptdir != None and _lt.prestarthooksuccess == True:
|
if _lt != None and _lt.scriptdir != None and _lt.prestarthooksuccess == True:
|
||||||
|
luShowResults(logger.info)
|
||||||
print(luFinish())
|
print(luFinish())
|
||||||
|
|
||||||
# This function tears down the whole topology.
|
# This function tears down the whole topology.
|
||||||
|
@ -336,6 +336,14 @@ def luNumPass():
|
|||||||
def luResult(target, success, str, logstr=None):
|
def luResult(target, success, str, logstr=None):
|
||||||
return LUtil.result(target, success, str, logstr)
|
return LUtil.result(target, success, str, logstr)
|
||||||
|
|
||||||
|
def luShowResults(prFunction):
|
||||||
|
printed = 0
|
||||||
|
sf = open(LUtil.fsum_name, 'r')
|
||||||
|
for line in sf:
|
||||||
|
printed+=1
|
||||||
|
prFunction(line.rstrip())
|
||||||
|
sf.close()
|
||||||
|
|
||||||
def luShowFail():
|
def luShowFail():
|
||||||
printed = 0
|
printed = 0
|
||||||
sf = open(LUtil.fsum_name, 'r')
|
sf = open(LUtil.fsum_name, 'r')
|
||||||
|
Loading…
Reference in New Issue
Block a user