use of org.opendaylight.yang.gen.v1.urn.ericsson.params.xml.ns.yang.ebgp.rev150901.tcp.security.option.grouping.tcp.security.option.TcpMd5SignatureOption in project netvirt by opendaylight.
the class BgpConfigurationManager method extractMd5Secret.
private static String extractMd5Secret(final Neighbors val) {
String md5Secret = null;
TcpSecurityOption tcpSecOpt = val.getTcpSecurityOption();
if (tcpSecOpt != null) {
if (tcpSecOpt instanceof TcpMd5SignatureOption) {
md5Secret = ((TcpMd5SignatureOption) tcpSecOpt).getTcpMd5SignaturePassword().getValue();
} else {
// unknown TcpSecurityOption
LOG.debug("neighbors Ignored unknown tcp-security-option of peer {}", val.getAddress().getValue());
}
}
return md5Secret;
}
Aggregations