Commit c79d37f4 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Add groups to meta.

parent 1ee68495
Pipeline #27591 passed with stages
in 15 minutes and 18 seconds
......@@ -64,10 +64,16 @@ class MetaApplicator(BaseApplicator):
yield "meta", "management", "vrf", "id", str(
yield "meta", "management", "vrf", "name", str(
# Client groups
if self.object.static_client_groups:
for group in ResourceGroup.objects.filter(id__in=self.object.static_client_groups):
yield "meta", "client-groups",, "id", str(
yield "meta", "client-groups",, "technology",
if self.object.static_client_groups or self.object.static_service_groups:
for group in ResourceGroup.objects.filter(
id__in=self.object.static_client_groups + self.object.static_service_groups
if str( in self.object.static_client_groups:
yield "meta", "client-groups",, "id", str(
yield "meta", "client-groups",, "technology",
yield "meta", "service-groups",, "id", str(
yield "meta", "service-groups",, "technology",
# meta tags
if self.object.tags:
for tag in self.object.tags:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment