use a configurable address as the From: when sending a mail
[plcapi.git] / db-config.d / 030-interface_tags
1 # -*-python-*-
2 # interface tag types
3 # xxx this should move to PLC/Accessors
4
5 interfacetag_types = \
6     [
7         {'category': 'interface/ovs',
8          'description': 'Name of Open vSwitch bridge',
9          'tagname': 'ovs_bridge'},
10
11         # Used by M-lab for IPv6 addresses
12         {'category': 'interface/config',
13          'description': 'IPv6 gateway',
14          'tagname': 'ipv6_defaultgw'},
15         {'category': 'interface/config',
16          'description': 'IPv6 address for the interface',
17          'tagname': 'ipv6addr'},
18         {'category': 'interface/config',
19          'description': 'IPv6 slice addresses',
20          'tagname': 'ipv6addr_secondaries'},
21     ]
22
23 for interfacetag_type in interfacetag_types:
24     SetTagType(interfacetag_type)
25     AddRoleToTagType('admin', interfacetag_type['tagname'])
26     AddRoleToTagType('tech', interfacetag_type['tagname'])