adding some common, default slice & interface tagtypes for new installations
authorsoltesz@opentechinstitute.org <soltesz@opentechinstitute.org>
Wed, 20 Feb 2013 22:25:18 +0000 (17:25 -0500)
committersoltesz@opentechinstitute.org <soltesz@opentechinstitute.org>
Wed, 20 Feb 2013 22:25:18 +0000 (17:25 -0500)
db-config.d/010-slice_tags
db-config.d/030-interface_tags [new file with mode: 0644]

index 4aabfd2..f304f8b 100644 (file)
@@ -129,6 +129,10 @@ for virtual devices involved in topologies, e.g. 192.168.100.0/24""",
      'description': "Is a default Distributed Rate Limiting slice (1) or not (0 or unset)",
      'category' : 'slice/general'},
 
+    {'tagname' : 'interface',
+     'description' : 'The interface tag holds network configuraiton information until VirtualInterface objects are in PLCAPI',
+     'category' : 'slice/network'},
+
 ]
 
 import resource
diff --git a/db-config.d/030-interface_tags b/db-config.d/030-interface_tags
new file mode 100644 (file)
index 0000000..282c7aa
--- /dev/null
@@ -0,0 +1,26 @@
+# -*-python-*-
+#################### interface tag types
+# xxx this should move to PLC/Accessors
+
+interfacegag_types = \
+[
+    {'category': u'interface/ovs', 
+     'description': u'Name of Open vSwitch bridge', 
+     'tagname': u'ovs_bridge'},
+
+    # Used by M-lab for IPv6 addresses
+    {'category': u'interface/config', 
+     'description': u'IPv6 gateway', 
+     'tagname': u'ipv6_defaultgw'},
+    {'category': u'interface/config', 
+     'description': u'IPv6 address for the interface',
+     'tagname': u'ipv6addr'},
+    {'category': u'interface/config',
+     'description': u'IPv6 slice addresses',  
+     'tagname': u'ipv6addr_secondaries'},
+]
+
+for interfacetag_type in interfacetag_types:
+    SetTagType(interfacetag_type)
+    AddRoleToTagType('admin', interfacetag_type['tagname'])
+    AddRoleToTagType('tech', interfacetag_type['tagname'])