blob: 158baab688ed335b9b7758631cb36b22d20eb508 [file] [log] [blame]
Frank Wange33e4ed2017-06-28 10:01:07 +08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Frank Wange33e4ed2017-06-28 10:01:07 +08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.net.pi.runtime;
17
Carmelo Cascone87892e22017-11-13 16:01:29 -080018import org.onosproject.net.pi.model.PiActionProfileId;
19
Frank Wange33e4ed2017-06-28 10:01:07 +080020/**
Carmelo Cascone87892e22017-11-13 16:01:29 -080021 * Constants for Pi* unit tests.
Frank Wange33e4ed2017-06-28 10:01:07 +080022 */
23public final class PiConstantsTest {
Carmelo Cascone87892e22017-11-13 16:01:29 -080024
25 static final String DOT = ".";
26 static final String MOD_NW_DST = "mod_nw_dst";
27 static final String DEC_TTL = "dec_ttl";
28 static final String MOD_VLAN_VID = "mod_vlan_vid";
Frank Wange33e4ed2017-06-28 10:01:07 +080029 public static final String DROP = "drop";
30
Carmelo Cascone87892e22017-11-13 16:01:29 -080031 static final String IPV4_HEADER_NAME = "ipv4_t";
32 static final String ETH_HEADER_NAME = "ethernet_t";
33 static final String VLAN_HEADER_NAME = "vlan_tag_t";
Frank Wange33e4ed2017-06-28 10:01:07 +080034
35 public static final String ETH_TYPE = "etherType";
36 public static final String DST_ADDR = "dstAddr";
Carmelo Cascone87892e22017-11-13 16:01:29 -080037 static final String SRC_ADDR = "srcAddr";
38 static final String VID = "vid";
Frank Wange33e4ed2017-06-28 10:01:07 +080039 public static final String PORT = "port";
Frank Wang4e848042017-08-03 19:48:11 +080040
Carmelo Cascone87892e22017-11-13 16:01:29 -080041 static final String EGRESS_PORT = "egress_port";
42 static final String INGRESS_PORT = "ingress_port";
Yi Tseng82512da2017-08-16 19:46:36 -070043
Carmelo Cascone87892e22017-11-13 16:01:29 -080044 static final PiActionProfileId ACTION_PROF_ID =
Yi Tseng82512da2017-08-16 19:46:36 -070045 PiActionProfileId.of("Test action profile");
Carmelo Cascone87892e22017-11-13 16:01:29 -080046
47 private PiConstantsTest() {
48 // Hides constructor.
49 }
Frank Wange33e4ed2017-06-28 10:01:07 +080050}