Skip to content

Commit ffac184

Browse files
committed
odl-pcep-ietf-stateful07 updated to odl-pcep-ietf-stateful
as of Opendaylight Aluminium 13.0 new module replacing it module https://mvnrepository.com/artifact/org.opendaylight.bgpcep/pcep-ietf-stateful07 replaced by https://mvnrepository.com/artifact/org.opendaylight.bgpcep/pcep-ietf-stateful
1 parent 115afd4 commit ffac184

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pathman_sr.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,10 @@ def list_pcep_lsp(node_list, debug):
791791
name = path['name']
792792
ip_hoplist = []
793793
sid_list = []
794-
if 'odl-pcep-ietf-stateful07:lsp' in path['path'][0].keys():
795-
if 'operational' in path['path'][0]['odl-pcep-ietf-stateful07:lsp'].keys():
796-
oper = path['path'][0]['odl-pcep-ietf-stateful07:lsp']['operational']
797-
# if path['path'][0]['odl-pcep-ietf-stateful07:lsp']['operational'] == 'up':
794+
if 'odl-pcep-ietf-stateful:lsp' in path['path'][0].keys():
795+
if 'operational' in path['path'][0]['odl-pcep-ietf-stateful:lsp'].keys():
796+
oper = path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational']
797+
# if path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational'] == 'up':
798798
if oper == 'up' or oper == 'active':
799799
if 'rro' in path['path'][0].keys():
800800
route_obj = path['path'][0]['rro']['subobject']
@@ -982,7 +982,7 @@ def get_pcep_type(debug):
982982
for node in my_pcep['topology'][0]['node']:
983983
loopback = node['network-topology-pcep:path-computation-client']['ip-address']
984984
pcc = node['node-id']
985-
if 'odl-pcep-ietf-stateful07:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
985+
if 'odl-pcep-ietf-stateful:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
986986
pcep_type = '07'
987987
else:
988988
pcep_type = '02'

0 commit comments

Comments
 (0)