Skip to content

Commit

Permalink
fix bad json generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jun 9, 2024
1 parent 08cb336 commit 713b823
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/exabgp/bgp/message/update/nlri/mup/dsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ def json(self, compact=None):
content += '"code": %d, ' % self.CODE
content += '"raw": "%s", ' % self._raw()
content += '"name": "%s", ' % self.NAME
content += '"rd": "%s", ' % self.rd.json()
content += self.rd.json() + ', '
content += '"ip": "%s"' % str(self.ip)
return '{ %s }' % content
2 changes: 1 addition & 1 deletion src/exabgp/bgp/message/update/nlri/mup/isd.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def json(self, compact=None):
content += '"code": %d, ' % self.CODE
content += '"raw": "%s", ' % self._raw()
content += '"name": "%s", ' % self.NAME
content += '"rd": "%s", ' % self.rd.json()
content += self.rd.json() + ', '
content += '"ipprefix_len": %d, ' % self.ipprefix_len
content += '"ipprefix": "%s"' % str(self.ipprefix)
return '{ %s }' % content
2 changes: 1 addition & 1 deletion src/exabgp/bgp/message/update/nlri/mup/t1st.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def json(self, compact=None):
content += '"code": %d, ' % self.CODE
content += '"raw": "%s", ' % self._raw()
content += '"name": "%s", ' % self.NAME
content += '"rd": "%s", ' % self.rd.json()
content += self.rd.json() + ', '
content += '"ipprefix_len": %d, ' % self.ipprefix_len
content += '"ipprefix": "%s", ' % str(self.ipprefix)
content += '"teid": "%s", ' % str(self.teid)
Expand Down
2 changes: 1 addition & 1 deletion src/exabgp/bgp/message/update/nlri/mup/t2st.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def json(self, compact=None):
content += '"code": %d, ' % self.CODE
content += '"raw": "%s", ' % self._raw()
content += '"name": "%s", ' % self.NAME
content += '"rd": "%s", ' % self.rd.json()
content += self.rd.json() + ', '
content += '"endpoint_len": %d, ' % self.endpoint_len
content += '"endpoint_ip": "%s", ' % str(self.endpoint_ip)
content += '"teid": "%s"' % str(self.teid)
Expand Down

0 comments on commit 713b823

Please sign in to comment.