From 49165bd333502f655a6ac6b5cf6ae205c4072d82 Mon Sep 17 00:00:00 2001 From: "soltesz@opentechinstitute.org" Date: Wed, 20 Feb 2013 17:25:18 -0500 Subject: [PATCH] adding some common, default slice & interface tagtypes for new installations --- db-config.d/010-slice_tags | 4 ++++ db-config.d/030-interface_tags | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 db-config.d/030-interface_tags diff --git a/db-config.d/010-slice_tags b/db-config.d/010-slice_tags index 4aabfd23..f304f8bd 100644 --- a/db-config.d/010-slice_tags +++ b/db-config.d/010-slice_tags @@ -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 index 00000000..282c7aa8 --- /dev/null +++ b/db-config.d/030-interface_tags @@ -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']) -- 2.47.0