Skip to content

Commit

Permalink
Few fixes for docker-vs pytest.
Browse files Browse the repository at this point in the history
Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
  • Loading branch information
AkhileshSamineni committed Apr 5, 2021
1 parent ef257da commit 0baba1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ RouteOrch::RouteOrch(DBConnector *db, string tableName, SwitchOrch *switchOrch,

SWSS_LOG_NOTICE("Create IPv6 default route with packet action drop");

/* Add fe80::/10 subnet route to forward all link-local packets
* destined to us, to CPU */
IpPrefix default_link_local_prefix("fe80::/10");

addLinkLocalRouteToMe(gVirtualRouterId, default_link_local_prefix);
Expand Down
12 changes: 6 additions & 6 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create_vrf(self, vrf_name):
tbl = swsscommon.Table(self.cdb, "VRF")
fvs = swsscommon.FieldValuePairs([('empty', 'empty')])
tbl.set(vrf_name, fvs)
time.sleep(1)
time.sleep(2)

tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_VIRTUAL_ROUTER")
current_entries = set(tbl.getKeys())
Expand All @@ -46,7 +46,7 @@ def create_vrf(self, vrf_name):
def remove_vrf(self, vrf_name):
tbl = swsscommon.Table(self.cdb, "VRF")
tbl._del(vrf_name)
time.sleep(1)
time.sleep(2)

def create_l3_intf(self, interface, vrf_name):
if interface.startswith("PortChannel"):
Expand All @@ -63,7 +63,7 @@ def create_l3_intf(self, interface, vrf_name):
fvs = swsscommon.FieldValuePairs([("vrf_name", vrf_name)])
tbl = swsscommon.Table(self.cdb, tbl_name)
tbl.set(interface, fvs)
time.sleep(1)
time.sleep(2)

def remove_l3_intf(self, interface):
if interface.startswith("PortChannel"):
Expand All @@ -76,7 +76,7 @@ def remove_l3_intf(self, interface):
tbl_name = "INTERFACE"
tbl = swsscommon.Table(self.cdb, tbl_name)
tbl._del(interface)
time.sleep(1)
time.sleep(2)

def add_ip_address(self, interface, ip):
if interface.startswith("PortChannel"):
Expand All @@ -90,7 +90,7 @@ def add_ip_address(self, interface, ip):
tbl = swsscommon.Table(self.cdb, tbl_name)
fvs = swsscommon.FieldValuePairs([("NULL", "NULL")])
tbl.set(interface + "|" + ip, fvs)
time.sleep(1)
time.sleep(2)

def remove_ip_address(self, interface, ip):
if interface.startswith("PortChannel"):
Expand All @@ -103,7 +103,7 @@ def remove_ip_address(self, interface, ip):
tbl_name = "INTERFACE"
tbl = swsscommon.Table(self.cdb, tbl_name)
tbl._del(interface + "|" + ip)
time.sleep(1)
time.sleep(2)

def set_mtu(self, interface, mtu):
if interface.startswith("PortChannel"):
Expand Down

0 comments on commit 0baba1c

Please sign in to comment.