Skip to content

Commit

Permalink
Changes due to recent PCEPlib API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brady Johnson authored and bradyallenjohnson committed Jun 29, 2020
1 parent d84157d commit f30ad66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions pathd/path_pcep_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,6 @@ const char *pcep_ro_type_name(enum pcep_ro_subobj_types ro_type)
return "ASN";
case RO_SUBOBJ_TYPE_SR:
return "SR";
case RO_SUBOBJ_TYPE_SR_DRAFT07:
return "SR_DRAFT07";
default:
return "UNKNOWN";
}
Expand Down Expand Up @@ -1402,7 +1400,6 @@ void _format_pcep_object_ro_details(int ps, struct pcep_object_ro_subobj *ro)
_format_pcep_object_ro_ipv4(ps,
(struct pcep_ro_subobj_ipv4 *)ro);
break;
case RO_SUBOBJ_TYPE_SR_DRAFT07:
case RO_SUBOBJ_TYPE_SR:
_format_pcep_object_ro_sr(ps, (struct pcep_ro_subobj_sr *)ro);
break;
Expand Down
3 changes: 1 addition & 2 deletions pathd/path_pcep_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ struct pcep_message *pcep_lib_format_request(uint32_t reqid, struct ipaddr *src,
setup_type_tlv = pcep_tlv_create_path_setup_type(SR_TE_PST);
dll_append(rp_tlvs, setup_type_tlv);

rp = pcep_obj_create_rp(0, false, false, false, reqid, rp_tlvs);
rp = pcep_obj_create_rp(0, false, false, false, false, reqid, rp_tlvs);
rp->header.flag_p = true;
if (IS_IPADDR_V6(src)) {
endpoints_ipv6 = pcep_obj_create_endpoint_ipv6(&src->ipaddr_v6,
Expand Down Expand Up @@ -839,7 +839,6 @@ void pcep_lib_parse_ero(struct path *path, struct pcep_object_ro *ero)
for (node = objs->tail; node != NULL; node = node->prev_node) {
obj = (struct pcep_object_ro_subobj *)node->data;
switch (obj->ro_subobj_type) {
case RO_SUBOBJ_TYPE_SR_DRAFT07:
case RO_SUBOBJ_TYPE_SR:
hop = pcep_lib_parse_ero_sr(
hop, (struct pcep_ro_subobj_sr *)obj);
Expand Down

0 comments on commit f30ad66

Please sign in to comment.