Skip to content

Commit d963741

Browse files
committed
as defined in RFC 8664, Rename SR-ERO suboject from sid-type to nai-type
https://git.opendaylight.org/gerrit/gitweb?p=bgpcep.git;a=commit;h=5b4952979cb5107a3333027849fec04254385641 this is starting ODL Aluminium 13.0 https://git.opendaylight.org/gerrit/c/bgpcep/+/91507 Update to RFC 8664 (PCEP Segment Routing) As per RFC 8664, this commit introduces following changes: - Add Flags N & X to SR PCE Capability - Add Ipv6 Local Nai Type and rename SID Type to NAI Type (NT) in odl-pcep-segment-routing-yang - Change IANA type (=36) for SR-ERO and SR-RRO to be the default value in pcep-segment-routing-app-config.yang instead of Legacy Type values - Update yang model revision - Turn IANA Type as the defaut for Segement Routing parser registration - Mark deprecated all IANA Type configuration (this will be removed in next release after Aluminium) - Add extra verifications to AbstractSrSubobjectParser Java Class and support for Ipv6Local NAI - Update accordingly Segment Routing Junit Tests JIRA: BGPCEP-882
1 parent ffac184 commit d963741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pathman_sr.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225

226226
ero_sr_xml = '''<subobject>
227227
<loose>false</loose>
228-
<sid-type xmlns="urn:opendaylight:params:xml:ns:yang:pcep:segment:routing">ipv4-node-id</sid-type>
228+
<nai-type xmlns="urn:opendaylight:params:xml:ns:yang:pcep:segment:routing">ipv4-node-id</nai-type>
229229
<m-flag xmlns="urn:opendaylight:params:xml:ns:yang:pcep:segment:routing">true</m-flag>
230230
<sid xmlns="urn:opendaylight:params:xml:ns:yang:pcep:segment:routing">{sid}</sid>
231231
<ip-address xmlns="urn:opendaylight:params:xml:ns:yang:pcep:segment:routing">{hop}</ip-address>
@@ -804,11 +804,11 @@ def list_pcep_lsp(node_list, debug):
804804
for nexthop in route_obj:
805805
if 'ip-prefix' in nexthop.keys():
806806
ip_hoplist.append(nexthop['ip-prefix']['ip-prefix'])
807-
if 'odl-pcep-segment-routing:sid-type' in nexthop.keys():
808-
if nexthop['odl-pcep-segment-routing:sid-type'] == 'ipv4-node-id':
807+
if 'odl-pcep-segment-routing:nai-type' in nexthop.keys():
808+
if nexthop['odl-pcep-segment-routing:nai-type'] == 'ipv4-node-id':
809809
ip_hoplist.append(nexthop['odl-pcep-segment-routing:ip-address'])
810810
sid_list.append(nexthop['odl-pcep-segment-routing:sid'])
811-
elif nexthop['odl-pcep-segment-routing:sid-type'] == 'ipv4-adjacency':
811+
elif nexthop['odl-pcep-segment-routing:nai-type'] == 'ipv4-adjacency':
812812
ip_hoplist.append(nexthop['odl-pcep-segment-routing:remote-ip-address'])
813813
sid_list.append(nexthop['odl-pcep-segment-routing:sid'])
814814

0 commit comments

Comments
 (0)