/* * Copyright (c) 2016, 2017 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.netvirt.elan.utils; import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Uri; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg; import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg7; import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId; import org.opendaylight.yangtools.yang.common.Uint64; public interface ElanConstants { String ELAN_SERVICE_NAME = "ELAN"; String LEAVES_POSTFIX = "_leaves"; String ELAN_ID_POOL_NAME = "elan.ids.pool"; long ELAN_ID_LOW_VALUE = 5000L; long ELAN_ID_HIGH_VALUE = 10000L; long DELAY_TIME_IN_MILLISECOND = 5000; int ELAN_GID_MIN = 200000; int ELAN_SERVICE_PRIORITY = 5; int ELAN_EOS_DELAY = 5; int STATIC_MAC_TIMEOUT = 0; int ELAN_TAG_LENGTH = 16; int INTERFACE_TAG_LENGTH = 20; int ELAN_TAG_ADDEND = 270000; Uint64 INVALID_DPN = Uint64.valueOf(0L); Uint64 COOKIE_ELAN_BASE_SMAC = Uint64.valueOf("8500000", 16).intern(); Uint64 COOKIE_ELAN_LEARNED_SMAC = Uint64.valueOf("8600000", 16).intern(); Uint64 COOKIE_ELAN_UNKNOWN_DMAC = Uint64.valueOf("8700000", 16).intern(); Uint64 COOKIE_ELAN_KNOWN_SMAC = Uint64.valueOf("8050000", 16).intern(); Uint64 COOKIE_ELAN_KNOWN_DMAC = Uint64.valueOf("8030000", 16).intern(); long DEFAULT_MAC_TIME_OUT = 300; Uint64 COOKIE_ELAN_FILTER_EQUALS = Uint64.valueOf("8800000", 16).intern(); Uint64 COOKIE_L2VNI_DEMUX = Uint64.valueOf("1080000", 16).intern(); String L2_CONTROL_PACKETS_DMAC = "01:80:C2:00:00:00"; String L2_CONTROL_PACKETS_DMAC_MASK = "FF:FF:FF:FF:FF:F0"; int LLDP_ETH_TYPE = 0x88CC; String LLDP_DST_1 = "01:80:C2:00:00:00"; String LLDP_DST_2 = "01:80:C2:00:00:03"; String LLDP_DST_3 = "01:80:C2:00:00:0E"; String L2GATEWAY_DS_JOB_NAME = "L2GW"; String UNKNOWN_DMAC = "00:00:00:00:00:00"; int JOB_MAX_RETRIES = 6; TopologyId OVSDB_TOPOLOGY_ID = new TopologyId(new Uri("ovsdb:1")); String OVSDB_BRIDGE_URI_PREFIX = "bridge"; Class ELAN_REG_ID = NxmNxReg7.class; }