Post by ratagupt on Jul 23, 2019 1:44:45 GMT
Hi Mike/Jeff,
I have a confusion on the Default gateway property is included in the IPv4address property. Below is the link of the IPv4address schema.
====================================================================
redfish.dmtf.org/schemas/v1/IPAddresses.v1_1_0.json#/definitions/IPv4Address
"Gateway": {
"description": "This is the IPv4 gateway for this address.",
"longDescription": "The value of this property shall be the IPv4 default gateway address for this interface. If DHCPv4 is enabled on the interface and is configured to set the IPv4 default gateway address, this property becomes read-only.",
"pattern": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
"readonly": false,
"type": [
"string",
"null"
]
========================================================================
On any ethernet Interface, there could be multiple static IP addresses due to (IP aliasing). Redfish spec supports that, following is the schema for the same.
redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.json
"IPv4StaticAddresses": {
"description": "The IPv4 static addresses assigned to this interface.",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/IPAddresses.json#/definitions/IPv4Address"
},
"longDescription": "The value of this property shall be an array of objects used to represent all IPv4 static addresses assigned (but not necessarily in use) to this interface. Addresses in use by this interface shall also appear in the IPv4Addresses property.",
"type": "array",
"versionAdded": "v1_4_0"
},
As per my understanding, only one default gateway can exist for a system(irrespective of a number of ethernet interfaces or the IP address on that interface). Is that true?
==================================================
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 600 0 0 wlp3s0
===================================================
Should we untied the gateway property from the IPaddress or keep it somewhere (manager resource) system-specific property?
Please let me know your thoughts.
Ratan
I have a confusion on the Default gateway property is included in the IPv4address property. Below is the link of the IPv4address schema.
====================================================================
redfish.dmtf.org/schemas/v1/IPAddresses.v1_1_0.json#/definitions/IPv4Address
"Gateway": {
"description": "This is the IPv4 gateway for this address.",
"longDescription": "The value of this property shall be the IPv4 default gateway address for this interface. If DHCPv4 is enabled on the interface and is configured to set the IPv4 default gateway address, this property becomes read-only.",
"pattern": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$",
"readonly": false,
"type": [
"string",
"null"
]
========================================================================
On any ethernet Interface, there could be multiple static IP addresses due to (IP aliasing). Redfish spec supports that, following is the schema for the same.
redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.json
"IPv4StaticAddresses": {
"description": "The IPv4 static addresses assigned to this interface.",
"items": {
"$ref": "http://redfish.dmtf.org/schemas/v1/IPAddresses.json#/definitions/IPv4Address"
},
"longDescription": "The value of this property shall be an array of objects used to represent all IPv4 static addresses assigned (but not necessarily in use) to this interface. Addresses in use by this interface shall also appear in the IPv4Addresses property.",
"type": "array",
"versionAdded": "v1_4_0"
},
As per my understanding, only one default gateway can exist for a system(irrespective of a number of ethernet interfaces or the IP address on that interface). Is that true?
In linux, Parsing of routing table looks at the first entry in the route table where destination is mentioned as "0.0.0.0" and stops the parsing once it founds that entry.
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 600 0 0 wlp3s0
===================================================
Should we untied the gateway property from the IPaddress or keep it somewhere (manager resource) system-specific property?
Please let me know your thoughts.
Ratan