opencomputeproject / HWMgmt-OCP-Profiles

A place where all the OCP profiles are a placed. Issues can be submitted/resolved and modifications can be reviewed/merged
Apache License 2.0
13 stars 14 forks source link

ConditionalRequirements related to Manager EthernetInterfaceCollection for skipping logical instance like usb0 #78

Open plmanik opened 1 month ago

plmanik commented 1 month ago

Hi, As per https://github.com/opencomputeproject/HWMgmt-OCP-Profiles/blob/master/HWMgmt/OCPBaselineHardwareManagement.v1_1_0.json

HostName": {
    "ReadRequirement": "Recommended",
    "ConditionalRequirements": [{
        "SubordinateToResource": ["Manager", "EthernetInterfaceCollection"],
        "ReadRequirement": "Mandatory",
        "WriteRequirement": "Mandatory"
    }]

Based on ConditionalRequirements, WriteRequirement is verified for eth0(physical instance), usb0(Logical instance for Host interface communication between BMC and Host) in Manager ethernetinterface instance. In case of usb0(Logical instance for Host interface communication between BMC and Host) it's not required to support changing HostName, FQDN, IPv4Addresses#0, NameServers since it's going to be same as physical instance(eth0) in Manager resource. Chances for some Physical instance also to restrict patch. Is it possible to skip WriteRequirement for logical interface by using use case or anyof comparison to make sure to change one instance in Manager ethernetinterface collection?

@mraineri @jautor Please add your inputs based on schema for skipping WriteRequirement for logical ethernetinterface instance like usb0 or we can accept patch on usb0, reflect the values in eth0, usb0

Thanks, Mani