Network: Modify IP properties to include NotAllowed error
There is no need to support IP properties update.
return NotAllowed error on update,we have done this through
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-networkd/+/22337
This commit is modify interface to handle errors
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
Change-Id: I242f0a92696ab20f32bc66b662f86e5e2ffbf01e
diff --git a/xyz/openbmc_project/Network/IP.interface.yaml b/xyz/openbmc_project/Network/IP.interface.yaml
index 565dcd6..5091ac9 100644
--- a/xyz/openbmc_project/Network/IP.interface.yaml
+++ b/xyz/openbmc_project/Network/IP.interface.yaml
@@ -10,22 +10,36 @@
description: >
The value of this property shall be an IP address assigned to
the ethernet interface.
+ errors:
+ - xyz::openbmc_project.Common.Error.NotAllowed
+
- name: PrefixLength
type: byte
description: >
This is the number of network bits in the ipaddress.
+ errors:
+ - xyz::openbmc_project.Common.Error.NotAllowed
+
- name: Origin
type: enum[self.AddressOrigin]
description: >
This indicates how the address was determined.
+ errors:
+ - xyz::openbmc_project.Common.Error.NotAllowed
+
- name: Gateway
type: string
description: >
This is the IP gateway for this address.
+ errors:
+ - xyz::openbmc_project.Common.Error.NotAllowed
+
- name: Type
type: enum[self.Protocol]
description: >
IP protocol type which can be IPv4 or IPv6 etc.
+ errors:
+ - xyz::openbmc_project.Common.Error.NotAllowed
enumerations:
- name: Protocol