Skip to content

Commit deb08b9

Browse files
Arista JenkinsNiraj Gupta
authored andcommitted
workspace.v1: support dependencies diffs
[GENERATED_COMMIT] Change-Id: Ie07c8994a83b2623acdb77717092bb2dc246ab1d
1 parent c04361c commit deb08b9

4 files changed

Lines changed: 62 additions & 55 deletions

File tree

arista/workspace/v1/workspace_pb2.py

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

arista/workspace/v1/workspace_pb2.pyi

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,8 @@ class _EntityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
719719
"""ENTITY_TYPE_PROCESSOR indicates the Processor entity type."""
720720
ENTITY_TYPE_NODE: _EntityType.ValueType # 13
721721
"""ENTITY_TYPE_NODE indicates the Node entity type."""
722+
ENTITY_TYPE_DEPENDENCIES: _EntityType.ValueType # 14
723+
"""ENTITY_TYPE_DEPENDENCIES indicates the dependencies entity type."""
722724

723725
class EntityType(_EntityType, metaclass=_EntityTypeEnumTypeWrapper):
724726
"""EntityType enumerates the different types of entities that can be
@@ -757,6 +759,8 @@ ENTITY_TYPE_PROCESSOR: EntityType.ValueType # 12
757759
"""ENTITY_TYPE_PROCESSOR indicates the Processor entity type."""
758760
ENTITY_TYPE_NODE: EntityType.ValueType # 13
759761
"""ENTITY_TYPE_NODE indicates the Node entity type."""
762+
ENTITY_TYPE_DEPENDENCIES: EntityType.ValueType # 14
763+
"""ENTITY_TYPE_DEPENDENCIES indicates the dependencies entity type."""
760764
global___EntityType = EntityType
761765

762766
class _DiffType:
@@ -2173,28 +2177,28 @@ class DiffKey(google.protobuf.message.Message):
21732177
by [key1, value1, key2, value2, ...]
21742178
studio_id are well known e.g studio-date-time
21752179
e.g entity_ids for entity types
2176-
studio, inputs, assigned tags: [“studio_id”, <id>]
2177-
buildhook: [“studio_id”, <id>, “hook_id”, <id>]
2178-
autofill: [“studio_id”, <id>, “input_field_id”, <id>]
2179-
configlet: [“configlet_id”, <id>]
2180-
configletassignment : [“configlet_assignment_id”, <id>]
2181-
tags:
2182-
element_type is one of "1" (device), "2" (interface)
2183-
["creator_type", "2", "element_type", <element_type>,
2184-
"element_sub_type", "1", "label", <label>, "value", <value>]
2185-
tag assignments:
2186-
For element_type = "1" (device)
2187-
["creator_type", "2", "element_type", "1", "element_sub_type", "1",
2188-
"label", <label>, "value", <value>, "device_id", <id>]
2189-
For element_type = "2" (interface)
2190-
["creator_type", "2", "element_type", "2", "element_sub_type", "1",
2191-
"label", <label>, "value", <value>, "device_id", <id>,
2192-
"interface_id", <id>]
2193-
hierarchy related entities:
2194-
node: ["node_id", <id>]
2195-
fixture_class: ["fixture_class_id", <id>]
2196-
fixture_instance: ["fixture_instance_id", <id>]
2197-
processor: ["processor_id", <id>]
2180+
studio, inputs, assigned tags, dependencies: [“studio_id”, <id>]
2181+
buildhook: [“studio_id”, <id>, “hook_id”, <id>]
2182+
autofill: [“studio_id”, <id>, “input_field_id”, <id>]
2183+
configlet: [“configlet_id”, <id>]
2184+
configletassignment: [“configlet_assignment_id”, <id>]
2185+
tags:
2186+
element_type is one of “1” (device), “2” (interface)
2187+
[“creator_type”, “2”, “element_type, <element_type>,
2188+
element_sub_type”, “1”, “label, <label>, value, <value>]
2189+
tag assignments:
2190+
For element_type = “1” (device)
2191+
[“creator_type”, “2”, “element_type”, “1”, “element_sub_type”, “1”,
2192+
label, <label>, value, <value>, device_id, <id>]
2193+
For element_type = “2” (interface)
2194+
[“creator_type”, “2”, “element_type”, “2”, “element_sub_type”, “1”,
2195+
label, <label>, value, <value>, device_id, <id>,
2196+
interface_id, <id>]
2197+
hierarchy related entities:
2198+
node: [node_id, <id>]
2199+
fixture_class: [fixture_class_id, <id>]
2200+
fixture_instance: [fixture_instance_id, <id>]
2201+
processor: [processor_id, <id>]
21982202
"""
21992203

22002204
def __init__(

cloudvision/api/arista/workspace/v1/__init__.py

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,9 @@ class EntityType(aristaproto.Enum):
676676
NODE = 13
677677
"""ENTITY_TYPE_NODE indicates the Node entity type."""
678678

679+
DEPENDENCIES = 14
680+
"""ENTITY_TYPE_DEPENDENCIES indicates the dependencies entity type."""
681+
679682

680683
class DiffType(aristaproto.Enum):
681684
"""DiffType enumerates types of diff."""
@@ -1440,28 +1443,28 @@ class DiffKey(aristaproto.Message):
14401443
by [key1, value1, key2, value2, ...]
14411444
studio_id are well known e.g studio-date-time
14421445
e.g entity_ids for entity types
1443-
studio, inputs, assigned tags: [“studio_id”, <id>]
1444-
buildhook: [“studio_id”, <id>, “hook_id”, <id>]
1445-
autofill: [“studio_id”, <id>, “input_field_id”, <id>]
1446-
configlet: [“configlet_id”, <id>]
1447-
configletassignment : [“configlet_assignment_id”, <id>]
1448-
tags:
1449-
element_type is one of \"1\" (device), \"2\" (interface)
1450-
[\"creator_type\", \"2\", \"element_type\", <element_type>,
1451-
\"element_sub_type\", \"1\", \"label\", <label>, \"value\", <value>]
1452-
tag assignments:
1453-
For element_type = \"1\" (device)
1454-
[\"creator_type\", \"2\", \"element_type\", \"1\", \"element_sub_type\", \"1\",
1455-
\"label\", <label>, \"value\", <value>, \"device_id\", <id>]
1456-
For element_type = \"2\" (interface)
1457-
[\"creator_type\", \"2\", \"element_type\", \"2\", \"element_sub_type\", \"1\",
1458-
\"label\", <label>, \"value\", <value>, \"device_id\", <id>,
1459-
\"interface_id\", <id>]
1460-
hierarchy related entities:
1461-
node: [\"node_id\", <id>]
1462-
fixture_class: [\"fixture_class_id\", <id>]
1463-
fixture_instance: [\"fixture_instance_id\", <id>]
1464-
processor: [\"processor_id\", <id>]
1446+
studio, inputs, assigned tags, dependencies: [“studio_id”, <id>]
1447+
buildhook: [“studio_id”, <id>, “hook_id”, <id>]
1448+
autofill: [“studio_id”, <id>, “input_field_id”, <id>]
1449+
configlet: [“configlet_id”, <id>]
1450+
configletassignment: [“configlet_assignment_id”, <id>]
1451+
tags:
1452+
element_type is one of “1” (device), “2” (interface)
1453+
[“creator_type”, “2”, “element_type, <element_type>,
1454+
element_sub_type”, “1”, “label, <label>, value, <value>]
1455+
tag assignments:
1456+
For element_type = “1” (device)
1457+
[“creator_type”, “2”, “element_type”, “1”, “element_sub_type”, “1”,
1458+
label, <label>, value, <value>, device_id, <id>]
1459+
For element_type = “2” (interface)
1460+
[“creator_type”, “2”, “element_type”, “2”, “element_sub_type”, “1”,
1461+
label, <label>, value, <value>, device_id, <id>,
1462+
interface_id, <id>]
1463+
hierarchy related entities:
1464+
node: [node_id, <id>]
1465+
fixture_class: [fixture_class_id, <id>]
1466+
fixture_instance: [fixture_instance_id, <id>]
1467+
processor: [processor_id, <id>]
14651468
"""
14661469

14671470

fmp/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (c) 2026 Arista Networks, Inc. All rights reserved.
22

3-
import fmp.pages_pb2 as pages
4-
import fmp.inet_pb2 as inet
5-
import fmp.extensions_pb2 as extensions
6-
import fmp.yang_pb2 as yang
7-
import fmp.deletes_pb2 as deletes
83
import fmp.wrappers_pb2 as wrappers
4+
import fmp.deletes_pb2 as deletes
5+
import fmp.yang_pb2 as yang
6+
import fmp.extensions_pb2 as extensions
7+
import fmp.inet_pb2 as inet
8+
import fmp.pages_pb2 as pages

0 commit comments

Comments
 (0)