Add verigraph code base
[parser.git] / verigraph / service / src / tests / j-verigraph-generator / config.py
1 #!/usr/bin/python
2
3 ##############################################################################
4 # Copyright (c) 2017 Politecnico di Torino and others.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11
12 devices_to_classes = {  "webclient" : "PolitoWebClient",
13                         "webserver" : "PolitoWebServer",
14                         "cache" : "PolitoCache",
15                         "nat" : "PolitoNat",
16                         "firewall" : "AclFirewall",
17                         "mailclient" : "PolitoMailClient",
18                         "mailserver" : "PolitoMailServer",
19                         "antispam" : "PolitoAntispam",
20                         "endpoint": "EndHost",
21                         "dpi": "PolitoIDS",
22                         "endhost": "PolitoEndHost",
23                         "vpnaccess":"PolitoVpnAccess",
24                         "vpnexit":"PolitoVpnExit",
25                         "fieldmodifier":"PolitoFieldModifier"
26                      }
27 devices_to_configuration_methods = {"webclient" : "",
28                                     "webserver" : "",
29                                     "cache" : "installCache",
30                                     "nat" : "setInternalAddress",
31                                     "firewall" : "addAcls",
32                                     "mailclient" : "",
33                                     "mailserver" : "",
34                                     "antispam" : "",
35                                     "endpoint": "",
36                                     "dpi": "installIDS",
37                                     "endhost": "installEndHost",
38                                     "vpnaccess":"vpnAccessModel",
39                                     "vpnexit":"vpnAccessModel",
40                                     "fieldmodifier":"installFieldModifier"
41                                     }
42 devices_initialization = {  "webclient" : ["webserver"],
43                             "webserver" : [],
44                             "cache" : [],
45                             "nat" : [],
46                             "firewall" : [],
47                             "mailclient" : ["mailserver"],
48                             "mailserver" : [],
49                             "antispam" : [],
50                             "endpoint": [],
51                             "dpi":[] ,
52                             "endhost":[],
53                             "vpnaccess":[],
54                             "vpnexit":[],
55                             "fieldmodifier":[]
56                           }
57
58 convert_configuration_property_to_ip = {    "webclient" : ["value"],
59                                             "webserver" : [],
60                                             "cache" : ["value"],
61                                             "nat" : ["value"],
62                                             "firewall" : ["key", "value"],
63                                             "mailclient" : ["value"],
64                                             "mailserver" : [],
65                                             "antispam" : [],
66                                             "endpoint": [],
67                                             "dpi": [],
68                                             "endhost": [],
69                                             "vpnaccess": ["value"],
70                                             "vpnexit": ["value"],
71                                             "fieldmodifier": []
72                                         }
73
74 devices_configuration_fields = {    "webclient" : "",
75                                     "webserver" : "",
76                                     "cache" : "cached address",
77                                     "nat" : "natted address",
78                                     "firewall" : "acl entry",
79                                     "mailclient" : "",
80                                     "mailserver" : "",
81                                     "antispam" : "",
82                                     "endpoint": "",
83                                     "dpi":"words blacklist",
84                                     "endhost":"",
85                                     "vpnaccess":"vpn access",
86                                     "vpnexit":"vpn exit",
87                                     "fieldmodifier":"field modifier"
88                                  }