aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java')
-rw-r--r--vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java
new file mode 100644
index 000000000..0f2332397
--- /dev/null
+++ b/vid-automation/src/main/java/org/opencomp/simulator/presetGenerator/presets/aai/PresetAAIGetPortMirroringSourcePortsError.java
@@ -0,0 +1,18 @@
+package org.opencomp.simulator.presetGenerator.presets.aai;
+
+public class PresetAAIGetPortMirroringSourcePortsError extends PresetAAIGetPortMirroringSourcePorts {
+
+ public PresetAAIGetPortMirroringSourcePortsError(String configurationId, String interfaceId, String interfaceName, boolean isPortMirrored) {
+ super(configurationId, interfaceId, interfaceName, isPortMirrored);
+ }
+
+ @Override
+ public int getResponseCode() {
+ return 503;
+ }
+
+ @Override
+ public Object getResponseBody() {
+ return "You are not allowed to do things";
+ }
+}