-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1", 'vtysh -c "show bgp next"', "99.0.0.. valid", "wait", "See CE static NH"
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand("ce1", "ping 192.168.1.1 -c 1", " 0. packet loss", "pass", "CE->PE ping")
luCommand("ce2", "ping 192.168.1.1 -c 1", " 0. packet loss", "pass", "CE->PE ping")
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"ce1",
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1", 'vtysh -c "add vrf r1-cust1 prefix 99.0.0.1/32"', ".", "none", "IP Address"
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand("ce1", 'vtysh -c "show bgp summary"', " 00:0", "wait", "Adjacencies up", 180)
luCommand("ce2", 'vtysh -c "show bgp summary"', " 00:0", "wait", "Adjacencies up", 180)
-from lutil import luCommand, luLast
+from lib.lutil import luCommand, luLast
from lib import topotest
ret = luCommand(
-from lutil import luCommand
+from lib.lutil import luCommand
from customize import l3mdev_accept
l3mdev_rtrs = ["r1", "r3", "r4", "ce4"]
-from lutil import luCommand
-from bgprib import bgpribRequireVpnRoutes, bgpribRequireUnicastRoutes
+from lib.lutil import luCommand
+from lib.bgprib import bgpribRequireVpnRoutes, bgpribRequireUnicastRoutes
########################################################################
# CE routers: contain routes they originate
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
rtrs = ["ce1", "ce2", "ce3", "r1", "r2", "r3", "r4"]
for rtr in rtrs:
-from lutil import luCommand
+from lib.lutil import luCommand
ret = luCommand(
"ce1",
-from lutil import luCommand
+from lib.lutil import luCommand
num = 50000
b = int(num / (256 * 256))
-from lutil import luCommand
+from lib.lutil import luCommand
holddownFactorSet = luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
holddownFactorSet = luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand("r1", 'vtysh -c "show bgp ipv4 vpn"', "", "none", "VPN SAFI")
luCommand("r2", 'vtysh -c "show bgp ipv4 vpn"', "", "none", "VPN SAFI")
-from lutil import luCommand
+from lib.lutil import luCommand
holddownFactorSet = luCommand(
"r1",
-from lutil import luCommand
+from lib.lutil import luCommand
luCommand(
"r1",
import datetime
import json
import math
-from topolog import logger
+from lib.topolog import logger
from mininet.net import Mininet