2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.rib.impl.spi;
10 import java.util.List;
12 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.open.BgpParameters;
16 * DTO for BGP Session preferences, that contains BGP Open message.
18 public final class BGPSessionPreferences {
22 private final int hold;
24 private final Ipv4Address bgpId;
26 private final List<BgpParameters> params;
29 * Creates a new DTO for Open message.
31 * @param prefs BGP Open message
33 public BGPSessionPreferences(final int as, final int hold, final Ipv4Address bgpId, final List<BgpParameters> params) {
41 * Returns my AS number.
45 public int getMyAs() {
50 * Returns initial value of HoldTimer.
52 * @return initial value of HoldTimer
54 public int getHoldTime() {
59 * Returns my BGP Identifier.
61 * @return BGP identifier
63 public Ipv4Address getBgpId() {
67 public List<BgpParameters> getParams() {