aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/force_actions.conf
blob: 61732c4aca3b1e28ed5eff77f90c5e5afb80b250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
force_actions {
	rules {
    	FORCE_REJECT_TO_ADD_HEADER {
        	action = "add header";
        	expression = "UBER_REJECT";
        	require_action = ["reject"];
    	}
    	FORCE_REJECT_TO_NO_ACTION {
        	action = "no action";
        	expression = "UBER_REJECT2";
        	require_action = ["reject"];
		}
		FORCE_NO_ACTION_TO_REJECT {
        	action = "reject";
        	expression = "UBER_HAM";
        	require_action = ["no action"];
		}
		FORCE_NO_ACTION_TO_ADD_HEADER {
        	action = "add header";
        	expression = "UBER_HAM2";
        	require_action = ["no action"];
		}
    	FORCE_ADD_HEADER_TO_NO_ACTION {
        	action = "no action";
        	expression = "UBER_ADD_HEADER";
        	require_action = ["add header"];
		}
		FORCE_ADD_HEADER_TO_REJECT {
        	action = "reject";
        	expression = "UBER_ADD_HEADER2";
        	require_action = ["add header"];
		}
	}
}


settings {
  	id_reject {
    id = "id_reject";
    apply {
    	symbols {
    		UBER_REJECT = 100500.0;
    		}
    	}
	}
	id_reject_no_action {
    id = "id_reject_no_action";
    apply {
    	symbols {
    		UBER_REJECT2 = 100500.0;
    		}
    	}
	}
	id_no_action {
    id = "id_no_action";
    apply {
    	symbols {
    		UBER_HAM = 1.0;
    		}
    	}
	}
	id_no_action_to_add_header {
    id = "id_no_action_to_add_header";
    apply {
    	symbols {
    		UBER_HAM2 = 1.0;
    		}
    	}
	}
	id_add_header {
    id = "id_add_header";
    apply {
    	symbols {
    		UBER_ADD_HEADER = 50500.0;
    		}
    	}
	}
	id_add_header_to_reject {
    id = "id_add_header_to_reject";
    apply {
    	symbols {
    		UBER_ADD_HEADER2 = 50500.0;
    		}
    	}
	}
}