Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2017-present Open Networking Foundation |
Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 3 | * |
| 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 | */ |
| 16 | package org.onosproject.net.pi.runtime; |
| 17 | |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 18 | import org.onosproject.net.pi.model.PiActionProfileId; |
| 19 | |
Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 20 | /** |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 21 | * Constants for Pi* unit tests. |
Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 22 | */ |
| 23 | public final class PiConstantsTest { |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 24 | |
| 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 Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 29 | public static final String DROP = "drop"; |
| 30 | |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 31 | 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 Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 34 | |
| 35 | public static final String ETH_TYPE = "etherType"; |
| 36 | public static final String DST_ADDR = "dstAddr"; |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 37 | static final String SRC_ADDR = "srcAddr"; |
| 38 | static final String VID = "vid"; |
Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 39 | public static final String PORT = "port"; |
Frank Wang | 4e84804 | 2017-08-03 19:48:11 +0800 | [diff] [blame] | 40 | |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 41 | static final String EGRESS_PORT = "egress_port"; |
| 42 | static final String INGRESS_PORT = "ingress_port"; |
Yi Tseng | 82512da | 2017-08-16 19:46:36 -0700 | [diff] [blame] | 43 | |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 44 | static final PiActionProfileId ACTION_PROF_ID = |
Yi Tseng | 82512da | 2017-08-16 19:46:36 -0700 | [diff] [blame] | 45 | PiActionProfileId.of("Test action profile"); |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 46 | |
| 47 | private PiConstantsTest() { |
| 48 | // Hides constructor. |
| 49 | } |
Frank Wang | e33e4ed | 2017-06-28 10:01:07 +0800 | [diff] [blame] | 50 | } |