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.protocol.bgp.parser.BGPParameter;
13 import org.opendaylight.protocol.concepts.ASNumber;
14 import org.opendaylight.protocol.concepts.IPv4Address;
17 * DTO for BGP Session preferences, that contains BGP Open message.
19 public final class BGPSessionPreferences {
21 private final ASNumber as;
23 private final int hold;
25 private final IPv4Address bgpId;
27 private final List<BGPParameter> params;
30 * Creates a new DTO for Open message.
32 * @param prefs BGP Open message
34 public BGPSessionPreferences(final ASNumber as, final int hold, final IPv4Address bgpId, final List<BGPParameter> params) {
42 * Returns my AS number.
46 public ASNumber getMyAs() {
51 * Returns initial value of HoldTimer.
53 * @return initial value of HoldTimer
55 public int getHoldTime() {
60 * Returns my BGP Identifier.
62 * @return BGP identifier
64 public IPv4Address getBgpId() {
68 public List<BGPParameter> getParams() {