Skip to content

Commit

Permalink
[minigraph.py] Convert ipv6 addresses into lower case parsing cpg (#1460
Browse files Browse the repository at this point in the history
)

* [minigraph.py] Convert ipv6 addresses into lower case parsing cpg
  • Loading branch information
taoyl-ms authored Mar 6, 2018
1 parent 7639cc1 commit f250fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,18 @@ def parse_cpg(cpg, hname):
keepalive = 60
nhopself = 1 if session.find(str(QName(ns, "NextHopSelf"))) is not None else 0
if end_router == hname:
bgp_sessions[start_peer] = {
bgp_sessions[start_peer.lower()] = {
'name': start_router,
'local_addr': end_peer,
'local_addr': end_peer.lower(),
'rrclient': rrclient,
'holdtime': holdtime,
'keepalive': keepalive,
'nhopself': nhopself
}
else:
bgp_sessions[end_peer] = {
bgp_sessions[end_peer.lower()] = {
'name': end_router,
'local_addr': start_peer,
'local_addr': start_peer.lower(),
'rrclient': rrclient,
'holdtime': holdtime,
'keepalive': keepalive,
Expand Down
2 changes: 1 addition & 1 deletion src/sonic-utilities

0 comments on commit f250fe7

Please sign in to comment.