neutronvpn: send alarm upon extra route configuration fault using BGPVPN
[netvirt.git] / vpnservice / neutronvpn / neutronvpn-impl / src / main / java / org / opendaylight / netvirt / neutronvpn / NeutronSecurityRuleConstants.java
1 /*
2  * Copyright (c) 2016 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.neutronvpn;
9
10 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.AclBase;
11 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.Ipv4Acl;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.DirectionEgress;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.netvirt.aclservice.rev160608.DirectionIngress;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.constants.rev150712.EthertypeV4;
15
16 public interface NeutronSecurityRuleConstants {
17     Class<DirectionEgress> DIRECTION_EGRESS = DirectionEgress.class;
18     Class<DirectionIngress> DIRECTION_INGRESS = DirectionIngress.class;
19
20     Short PROTOCOL_ICMP = 1;
21     Short PROTOCOL_TCP = 6;
22     Short PROTOCOL_UDP = 17;
23     Short PROTOCOL_ICMPV6 = 58;
24
25     Class<EthertypeV4> ETHERTYPE_IPV4 = EthertypeV4.class;
26
27     String IPV4_ALL_NETWORK = "0.0.0.0/0";
28     String IPV6_ALL_NETWORK = "::/0";
29
30     // default acp type
31     Class<? extends AclBase> ACLTYPE = Ipv4Acl.class;
32
33 }