Enhancements in BGP module
[netvirt.git] / bgpmanager / impl / src / main / java / org / opendaylight / netvirt / bgpmanager / PrefixWithdrawEvent.java
1 /*
2  * Copyright © 2015, 2017 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netvirt.bgpmanager;
9
10 import org.opendaylight.netvirt.bgpmanager.thrift.gen.protocol_type;
11
12 public class PrefixWithdrawEvent {
13     private protocol_type protocolType;
14     private String rd;
15     private String prefix;
16     private int plen;
17     private String nexthop;
18     private String macaddress;
19
20     public PrefixWithdrawEvent(protocol_type protocolType, String rd, String prefix, int plen, String nextHop,
21                                String macaddress) {
22
23         this.protocolType = protocolType;
24         this.rd = rd;
25         this.prefix = prefix;
26         this.plen = plen;
27         this.nexthop = nextHop;
28         this.macaddress = macaddress;
29
30     }
31
32     @Override
33     public String toString() {
34         return "PrefixWithdrawEvent{"
35                 + "protocolType=" + protocolType
36                 + ", rd='" + rd + '\''
37                 + ", prefix='" + prefix + '\''
38                 + ", plen=" + plen
39                 + ", nexthop='" + nexthop + '\''
40                 + ", macaddress='" + macaddress + '\''
41                 + '}';
42     }
43 }
44