Skip to content

Commit

Permalink
update/inventory.v1: Add IPV6 Field in ProvisionedDevice
Browse files Browse the repository at this point in the history
Added Ipv6 address field under ProvisionedDevice message in
inventory proto file.
This is to support ipv6 addresses support within inventory
service.

[GENERATED_COMMIT]

Change-Id: I3593c574301bb88e932d3f08eace424e2218a5d6
  • Loading branch information
Arista-Jenkins authored and Ali Hussain Khan committed Mar 5, 2025
1 parent e2c97fb commit e7536b5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
20 changes: 10 additions & 10 deletions arista/inventory/v1/inventory_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions arista/inventory/v1/inventory_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ class DeviceDecommissioningConfig(google.protobuf.message.Message):
and tracking the status of the decommissioning attempt.
4. The user may do a GetOne or Subscribe on DeviceDecommissioning using the
same UUID to see the status of the request.
NOTE: this operation does not remove references to the decommissioned device from
Studios and Tags. See `DecommissionConfig` in `arista.studio_topology.v1`.
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down Expand Up @@ -557,6 +560,7 @@ class ProvisionedDevice(google.protobuf.message.Message):
ZTP_MODE_FIELD_NUMBER: builtins.int
IP_ADDRESS_FIELD_NUMBER: builtins.int
PROVISIONING_GROUP_NAME_FIELD_NUMBER: builtins.int
IPV6_ADDRESS_FIELD_NUMBER: builtins.int
status: global___ProvisioningStatus.ValueType
"""status describes the onboarded device's provisioning status."""
@property
Expand Down Expand Up @@ -585,6 +589,10 @@ class ProvisionedDevice(google.protobuf.message.Message):
a user may set it to an existing group.
"""

@property
def ipv6_address(self) -> fmp.inet_pb2.IPAddress:
"""ipv6_address is the IPV6 address of the device."""

def __init__(
self,
*,
Expand All @@ -594,8 +602,9 @@ class ProvisionedDevice(google.protobuf.message.Message):
ztp_mode: google.protobuf.wrappers_pb2.BoolValue | None = ...,
ip_address: fmp.inet_pb2.IPAddress | None = ...,
provisioning_group_name: google.protobuf.wrappers_pb2.StringValue | None = ...,
ipv6_address: fmp.inet_pb2.IPAddress | None = ...,
) -> None: ...
def HasField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "ztp_mode", b"ztp_mode"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "status", b"status", "ztp_mode", b"ztp_mode"]) -> None: ...
def HasField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "ipv6_address", b"ipv6_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "ztp_mode", b"ztp_mode"]) -> builtins.bool: ...
def ClearField(self, field_name: typing.Literal["error", b"error", "ip_address", b"ip_address", "ipv6_address", b"ipv6_address", "key", b"key", "provisioning_group_name", b"provisioning_group_name", "status", b"status", "ztp_mode", b"ztp_mode"]) -> None: ...

global___ProvisionedDevice = ProvisionedDevice

0 comments on commit e7536b5

Please sign in to comment.