Correct Bugs in Path Manager
Some major bugs are corrected with this patch:
- METRIC Object is not sent to PCC during creation or Update
due to a redundant setting in yang model. The patch suppress
the 'routing-method' and deduce the type of metric from what
metric has been set in constraint (like for Algorithm)
- After closing ODL, previous updated configuration on delegated
LSP are considered as Initiated LSP letting the possibility
to delete LSP while it is not initiated. The patch overwrites
the LSP type with one provided by the PcReport if there is
mismatch between Initiated type
- Saved Managed TE Path are not applied to PCCi at startup.
Indeed, saved configuration are read before the Graph is
available. Thus, no valid paths are computed and Managed TE
Paths are marked with NO_PATH. Give a chance to compute a
valid path when PCC goes in SYNC to validate configured LSP
and thus applied modification on PCC.
- Change the HashMap of Managed TE Node to store the TE Managed
Path to a ConcurrentHashMap. This is mandatory when removing
the Managed TE Node in order to safetly loop other all Managed
TE Paths attached to this Managed TE Node.
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Change-Id: Ie737cafe7938e6ec0886c75d9f76f9f00f7163a9