Fix Path Computation Crashes 91/91091/4
authorOlivier Dugeon <olivier.dugeon@orange.com>
Fri, 10 Jul 2020 12:28:57 +0000 (14:28 +0200)
committerRobert Varga <nite@hq.sk>
Fri, 17 Jul 2020 12:10:19 +0000 (12:10 +0000)
commit028f0a01960212523c63c77dc452b56fe099b84d
treeadf91c91e652a993114890ec010b50ee917c0c80
parentbc57522a4a53f181c9f1be7865a79b35103887c2
Fix Path Computation Crashes

If Path Computation is called with unknown graph, PCEP session crashes
due to path computation creation error. This patch checks that path
computation is valid and reply with PcErr message for PcReq or PcError
for RPC call.

JIRA: BGPCEP-911
Change-Id: I5fa6919db058c97ada4b69077630101d6f02c4f7
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
pcep/server/server-provider/src/main/java/org/opendaylight/bgpcep/pcep/server/provider/PathComputationImpl.java
pcep/server/server-provider/src/main/java/org/opendaylight/bgpcep/pcep/server/provider/PceServerFactory.java
pcep/topology/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListener.java