Skip to content

Commit

Permalink
do not query staticroute_set
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyuyureka committed Jul 4, 2024
1 parent f431f77 commit e9eb7d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cosmo/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,9 @@ def serialize(self):

routing_options = {}

rib = self._get_vrf_rib(self.device["staticroute_set"], None)
if len(rib) > 0:
routing_options["rib"] = rib
#rib = self._get_vrf_rib(self.device["staticroute_set"], None)
#if len(rib) > 0:
# routing_options["rib"] = rib

if len(routing_options) > 0:
device_stub[f"routing_options"] = routing_options
Expand Down Expand Up @@ -540,9 +540,9 @@ def serialize(self):
rd = None

routing_options = {}
rib = self._get_vrf_rib(self.device["staticroute_set"], l3vpn["name"])
if len(rib) > 0:
routing_options["rib"] = rib
#rib = self._get_vrf_rib(self.device["staticroute_set"], l3vpn["name"])
#if len(rib) > 0:
# routing_options["rib"] = rib

routing_instances[l3vpn["name"]] = {
"interfaces": l3vpn["interfaces"],
Expand Down

0 comments on commit e9eb7d5

Please sign in to comment.