File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -791,10 +791,10 @@ def list_pcep_lsp(node_list, debug):
791
791
name = path ['name' ]
792
792
ip_hoplist = []
793
793
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':
798
798
if oper == 'up' or oper == 'active' :
799
799
if 'rro' in path ['path' ][0 ].keys ():
800
800
route_obj = path ['path' ][0 ]['rro' ]['subobject' ]
@@ -982,7 +982,7 @@ def get_pcep_type(debug):
982
982
for node in my_pcep ['topology' ][0 ]['node' ]:
983
983
loopback = node ['network-topology-pcep:path-computation-client' ]['ip-address' ]
984
984
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 ():
986
986
pcep_type = '07'
987
987
else :
988
988
pcep_type = '02'
You can’t perform that action at this time.
0 commit comments