Skip to content

Commit

Permalink
odl-pcep-ietf-stateful07 updated to odl-pcep-ietf-stateful
Browse files Browse the repository at this point in the history
  • Loading branch information
abbedsedk committed Oct 22, 2021
1 parent 115afd4 commit ffac184
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pathman_sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,10 +791,10 @@ def list_pcep_lsp(node_list, debug):
name = path['name']
ip_hoplist = []
sid_list = []
if 'odl-pcep-ietf-stateful07:lsp' in path['path'][0].keys():
if 'operational' in path['path'][0]['odl-pcep-ietf-stateful07:lsp'].keys():
oper = path['path'][0]['odl-pcep-ietf-stateful07:lsp']['operational']
# if path['path'][0]['odl-pcep-ietf-stateful07:lsp']['operational'] == 'up':
if 'odl-pcep-ietf-stateful:lsp' in path['path'][0].keys():
if 'operational' in path['path'][0]['odl-pcep-ietf-stateful:lsp'].keys():
oper = path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational']
# if path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational'] == 'up':
if oper == 'up' or oper == 'active':
if 'rro' in path['path'][0].keys():
route_obj = path['path'][0]['rro']['subobject']
Expand Down Expand Up @@ -982,7 +982,7 @@ def get_pcep_type(debug):
for node in my_pcep['topology'][0]['node']:
loopback = node['network-topology-pcep:path-computation-client']['ip-address']
pcc = node['node-id']
if 'odl-pcep-ietf-stateful07:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
if 'odl-pcep-ietf-stateful:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
pcep_type = '07'
else:
pcep_type = '02'
Expand Down

0 comments on commit ffac184

Please sign in to comment.