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.AsNumber;
13 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.open.BgpParameters;
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<BgpParameters> params;
30 * Creates a new DTO for Open message.
32 * @param as local AS number
33 * @param hold preferred hold timer value, in seconds
34 * @param bgpId local BGP Identifier
35 * @param param advertized parameters
37 public BGPSessionPreferences(final AsNumber as, final int hold, final Ipv4Address bgpId, final List<BgpParameters> params) {
45 * Returns my AS number.
49 public AsNumber getMyAs() {
54 * Returns initial value of HoldTimer.
56 * @return initial value of HoldTimer
58 public int getHoldTime() {
63 * Returns my BGP Identifier.
65 * @return BGP identifier
67 public Ipv4Address getBgpId() {
71 public List<BgpParameters> getParams() {