diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-07-06 15:36:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 15:36:46 -0400 |
| commit | 40eb7a27c1328bd9ff62943c7a29e7dd73f702a4 (patch) | |
| tree | 4c38310aa5d938710d723682a6ce1114e4d394e7 /pathd/path_pcep_config.c | |
| parent | e15106149fda3b3c915d14a2fc6b749598a73b6c (diff) | |
| parent | c9daf7efc6cbf812c1a737c28027227570f1297d (diff) | |
Merge pull request #8938 from volta-networks/fix_no_path_retries
pathd : Better RFC complain for two cases, no_path answer and srp_id handle
Diffstat (limited to 'pathd/path_pcep_config.c')
| -rw-r--r-- | pathd/path_pcep_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pathd/path_pcep_config.c b/pathd/path_pcep_config.c index 0349618304..4c16b83948 100644 --- a/pathd/path_pcep_config.c +++ b/pathd/path_pcep_config.c @@ -332,6 +332,7 @@ int path_pcep_config_initiate_path(struct path *path) candidate = srte_candidate_add( policy, path->nbkey.preference, SRTE_ORIGIN_PCEP, path->originator); + candidate->policy->srp_id = path->srp_id; strlcpy(candidate->name, path->name, sizeof(candidate->name)); SET_FLAG(candidate->flags, F_CANDIDATE_NEW); @@ -387,6 +388,7 @@ int path_pcep_config_update_path(struct path *path) if (!candidate) return 0; + candidate->policy->srp_id = path->srp_id; // first clean up old segment list if present if (candidate->lsp->segment_list) { SET_FLAG(candidate->lsp->segment_list->flags, |
