summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/common_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/lib/common_config.py')
-rw-r--r--tests/topotests/lib/common_config.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py
index 0b97637c1e..5a5c7e3df4 100644
--- a/tests/topotests/lib/common_config.py
+++ b/tests/topotests/lib/common_config.py
@@ -1186,12 +1186,14 @@ def add_interfaces_to_vlan(tgen, input_dict):
interface, vlan_intf, vlan
)
logger.info("[DUT: %s]: Running command: %s", dut, cmd)
- rnode.run(cmd)
+ result = rnode.run(cmd)
+ logger.info("result %s", result)
# Bringing interface up
cmd = "ip link set {} up".format(vlan_intf)
logger.info("[DUT: %s]: Running command: %s", dut, cmd)
- rnode.run(cmd)
+ result = rnode.run(cmd)
+ logger.info("result %s", result)
# Assigning IP address
ifaddr = ipaddress.ip_interface(
@@ -1204,7 +1206,8 @@ def add_interfaces_to_vlan(tgen, input_dict):
ifaddr.version, vlan_intf, ifaddr
)
logger.info("[DUT: %s]: Running command: %s", dut, cmd)
- rnode.run(cmd)
+ result = rnode.run(cmd)
+ logger.info("result %s", result)
def tcpdump_capture_start(
@@ -2928,7 +2931,7 @@ def addKernelRoute(
Parameters:
-----------
* `tgen` : Topogen object
- * `router`: router for which kernal routes needs to be added
+ * `router`: router for which kernel routes needs to be added
* `intf`: interface name, for which kernel routes needs to be added
* `bindToAddress`: bind to <host>, an interface or multicast
address
@@ -2969,7 +2972,7 @@ def addKernelRoute(
output = rnode.run(cmd)
def check_in_kernel(rnode, verify_cmd, grp_addr, router):
- # Verifying if ip route added to kernal
+ # Verifying if ip route added to kernel
errormsg = None
result = rnode.run(verify_cmd)
logger.debug("{}\n{}".format(verify_cmd, result))
@@ -4207,7 +4210,7 @@ def verify_bgp_community(tgen, addr_type, router, network, input_dict=None):
def get_ipv6_linklocal_address(topo, node, intf):
"""
- API to get the link local ipv6 address of a perticular interface
+ API to get the link local ipv6 address of a particular interface
Parameters
----------