Skip to content

Commit af17d80

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 https://git.opendaylight.org/gerrit/c/bgpcep/+/91372 Pcep Stateful & Initiated renaming This is the first part of compliancy to RFC8231 (Stateful) & RFC8281 (Initiated). It removes mention to old draft in various package name, class name, yange model name ... as follow: - Rename Stateful07 -> Stateful - Rename Initiated00 -> Initiated - CrabbeInitiated -> Initiated JIRA: BGPCEP-882
1 parent 115afd4 commit af17d80

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

pathman_sr.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
20161226, Niklas - ver 5.9h - Multi area/level fix for bgp-ls and sid bug.
5454
20170202, Niklas - ver 5.9i - Refactored sid_list to sid_saves to avoid duplicate use
5555
20171013, Niklas - ver 5.9j - Updated odl version lis and checks
56+
20212210, Abbed Sedkaoui - 5.9k - Rename odl module Stateful07 -> Stateful
5657
"""
5758
__author__ = 'niklas'
5859

@@ -791,10 +792,10 @@ def list_pcep_lsp(node_list, debug):
791792
name = path['name']
792793
ip_hoplist = []
793794
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':
795+
if 'odl-pcep-ietf-stateful:lsp' in path['path'][0].keys():
796+
if 'operational' in path['path'][0]['odl-pcep-ietf-stateful:lsp'].keys():
797+
oper = path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational']
798+
# if path['path'][0]['odl-pcep-ietf-stateful:lsp']['operational'] == 'up':
798799
if oper == 'up' or oper == 'active':
799800
if 'rro' in path['path'][0].keys():
800801
route_obj = path['path'][0]['rro']['subobject']
@@ -982,7 +983,7 @@ def get_pcep_type(debug):
982983
for node in my_pcep['topology'][0]['node']:
983984
loopback = node['network-topology-pcep:path-computation-client']['ip-address']
984985
pcc = node['node-id']
985-
if 'odl-pcep-ietf-stateful07:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
986+
if 'odl-pcep-ietf-stateful:stateful' in node['network-topology-pcep:path-computation-client']['stateful-tlv'].keys():
986987
pcep_type = '07'
987988
else:
988989
pcep_type = '02'

0 commit comments

Comments
 (0)