Setting tag plcapi-5.4-2
[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': u'interface/ovs', 
8      'description': u'Name of Open vSwitch bridge', 
9      'tagname': u'ovs_bridge'},
10
11     # Used by M-lab for IPv6 addresses
12     {'category': u'interface/config', 
13      'description': u'IPv6 gateway', 
14      'tagname': u'ipv6_defaultgw'},
15     {'category': u'interface/config', 
16      'description': u'IPv6 address for the interface',
17      'tagname': u'ipv6addr'},
18     {'category': u'interface/config',
19      'description': u'IPv6 slice addresses',  
20      'tagname': u'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'])