2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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.netvirt.neutronvpn;
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;
16 public interface NeutronSecurityRuleConstants {
17 Class<DirectionEgress> DIRECTION_EGRESS = DirectionEgress.class;
18 Class<DirectionIngress> DIRECTION_INGRESS = DirectionIngress.class;
20 Short PROTOCOL_ICMP = 1;
21 Short PROTOCOL_TCP = 6;
22 Short PROTOCOL_UDP = 17;
23 Short PROTOCOL_ICMPV6 = 58;
25 Class<EthertypeV4> ETHERTYPE_IPV4 = EthertypeV4.class;
27 String IPV4_ALL_NETWORK = "0.0.0.0/0";
28 String IPV6_ALL_NETWORK = "::/0";
31 Class<? extends AclBase> ACLTYPE = Ipv4Acl.class;