nuagenetworks/vsd-api-specifications

enterpriseName and domainName attribute's value is missing when fetching for ingressaclentrytemplate in L2 ingressacltemplate

Closed this issue · 2 comments

hellt commented

This issue probably has nothing to do with specifications, yet it feels the most related project to address to. Nuage 4.0.7.

When fetching ACL entries in ACL template created in L3 domain we successfully receive the value of enterpriseName and domainName attribute:

< GET https://10.167.62.11:8443/nuage/api/v4_0/ingressacltemplates/def27890-d537-4ada-b7b8-3fa1440f8783/ingressaclentrytemplates  [200] 

< headers: {'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'Date': 'Fri, 26 May 2017 12:48:52 GMT', 'Access-Control-Expose-Headers': 'X-Nuage-Organization, X-Nuage-ProxyUser, X-Nuage-OrderBy, X-Nuage-FilterType, X-Nuage-Filter, X-Nuage-Page, X-Nuage-PageSize, X-Nuage-Count, X-Nuage-Custom, X-Nuage-ClientType', 'X-Nuage-Count': '1', 'Set-Cookie': 'rememberMe=deleteMe; Path=/nuage; Max-Age=0; Expires=Thu, 25-May-2017 12:48:52 GMT', 'Expires': 'Thu, 01 Jan 1970 01:00:00 CET', 'Vary': 'Accept-Encoding', 'Server': 'Apache-Coyote/1.1', 'X-Nuage-OrderBy': 'priority ASC', 'X-Nuage-FilterType': 'none', 'X-Nuage-Page': '-1', 'Pragma': 'No-cache', 'Cache-Control': 'no-cache', 'X-Nuage-Filter': 'policyState == "DRAFT"', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'X-Nuage-PageSize': '50'}

	< data:
[
    {
        "networkID": null, 
        "protocol": "*", 
        "reflexive": true, 
        "etherType": "0x0800", 
        "ACLTemplateName": "CATS_POLICY", 
        "externalID": null, 
        "parentID": "def27890-d537-4ada-b7b8-3fa1440f8783", 
        "owner": "43f8868f-4bc1-472c-9d19-533dcfcb1ee0", 
        "ICMPCode": null, 
        "children": null, 
        "policyState": "DRAFT", 
        "statsLoggingEnabled": false, 
        "associatedApplicationObjectType": null, 
        "ICMPType": null, 
        "priority": 100, 
        "enterpriseName": "CATS_DRY_RUN", 
        "associatedApplicationObjectID": null, 
        "description": "CATS", 
        "DSCP": "*", 
        "addressOverride": null, 
        "stateful": true, 
        "parentType": "ingressacltemplate", 
        "lastUpdatedBy": "43f8868f-4bc1-472c-9d19-533dcfcb1ee0", 
        "associatedLiveEntityID": "b3b3790c-ed68-454e-a87b-7ddf0911ca8a", 
        "IPv6AddressOverride": null, 
        "destinationPort": null, 
        "sourcePort": null, 
        "networkType": "ANY", 
        "creationDate": 1495802931000, 
        "ID": "3db8e9f8-d64c-4b62-b037-d400f2923215", 
        "associatedApplicationID": null, 
        "entityScope": "ENTERPRISE", 
        "domainName": "CATS_LAYER3_DOMAIN", 
        "locationType": "ANY", 
        "mirrorDestinationID": null, 
        "locationID": null, 
        "lastUpdatedDate": 1495802931000, 
        "action": "FORWARD", 
        "flowLoggingEnabled": false, 
        "statsID": "cfbaf946-c157-41ce-9282-c10067223f6f"
    }
]

But when performing the same fetching but for ACL Template created in L2 domain, enterpriseName and domainName attribute's value returned as null. This breaks our automated tests and we would like to know if this is intended behavior.

< GET https://10.167.62.11:8443/nuage/api/v4_0/ingressacltemplates/99f3adc0-b452-4cbd-a77e-139b011bae14/ingressaclentrytemplates  [200] 

< headers: {'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'Date': 'Fri, 26 May 2017 12:56:23 GMT', 'Access-Control-Expose-Headers': 'X-Nuage-Organization, X-Nuage-ProxyUser, X-Nuage-OrderBy, X-Nuage-FilterType, X-Nuage-Filter, X-Nuage-Page, X-Nuage-PageSize, X-Nuage-Count, X-Nuage-Custom, X-Nuage-ClientType', 'X-Nuage-Count': '1', 'Set-Cookie': 'rememberMe=deleteMe; Path=/nuage; Max-Age=0; Expires=Thu, 25-May-2017 12:56:24 GMT', 'Expires': 'Thu, 01 Jan 1970 01:00:00 CET', 'Vary': 'Accept-Encoding', 'Server': 'Apache-Coyote/1.1', 'X-Nuage-OrderBy': 'priority ASC', 'X-Nuage-FilterType': 'none', 'X-Nuage-Page': '-1', 'Pragma': 'No-cache', 'Cache-Control': 'no-cache', 'X-Nuage-Filter': 'policyState == "DRAFT"', 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'X-Nuage-PageSize': '50'}

< data:
[
    {
        "networkID": null, 
        "protocol": "*", 
        "reflexive": true, 
        "etherType": "0x0800", 
        "ACLTemplateName": "CATS_L2_INGRESS", 
        "externalID": null, 
        "parentID": "99f3adc0-b452-4cbd-a77e-139b011bae14", 
        "owner": "43f8868f-4bc1-472c-9d19-533dcfcb1ee0", 
        "ICMPCode": null, 
        "children": null, 
        "policyState": "DRAFT", 
        "statsLoggingEnabled": false, 
        "associatedApplicationObjectType": null, 
        "ICMPType": null, 
        "priority": 100, 
        "enterpriseName": null, 
        "associatedApplicationObjectID": null, 
        "description": "CATS", 
        "DSCP": "*", 
        "addressOverride": null, 
        "stateful": true, 
        "parentType": "ingressacltemplate", 
        "lastUpdatedBy": "43f8868f-4bc1-472c-9d19-533dcfcb1ee0", 
        "associatedLiveEntityID": "3cfb43bf-af1c-449e-9816-49ba6a498eb4", 
        "IPv6AddressOverride": null, 
        "destinationPort": null, 
        "sourcePort": null, 
        "networkType": "ANY", 
        "creationDate": 1495803383000, 
        "ID": "683d00c2-02db-44d0-a725-3098850d478d", 
        "associatedApplicationID": null, 
        "entityScope": "ENTERPRISE", 
        "domainName": null, 
        "locationType": "ANY", 
        "mirrorDestinationID": null, 
        "locationID": null, 
        "lastUpdatedDate": 1495803383000, 
        "action": "FORWARD", 
        "flowLoggingEnabled": false, 
        "statsID": "a449cadf-c33a-43ae-9159-37f15d367401"
    }
]

@hellt This seems to be a backend issue where the fields are not properly being populated, i'll address accordingly

Closing, will be tracked through internal ticket