Skip to content

PPA Id should be in the format zone/ppa/$SAS_ADMINISTRATOR/PPA-ID string. #828

@chandanahs

Description

@chandanahs

As per WINNF-TS-0096-V1.3.0 SAS-SAS Protocol Technical Specification.pdf,
8.5 Zone Definition Message
id | string |
• Format: zone/$CREATOR/$ZONE_ID
• $CREATOR: SAS Administrator ID or static government zone definition source ID
• $ZONE_ID: the identification of the referenced zone defined by the $CREATOR
When usage is equal to “PPA” the format of the $CREATOR string is “ppa/$ADMINISTRATOR_ID” and the $ZONE_ID is equal to the PPA-ID string.

Example PPA data says zone/ppa/$SAS_ADMINISTRATOR/PPA-ID

cat Spectrum-Access-System/schema/ZoneDataOfPpaExample.json
{"id":"zone/ppa/SAS_Admin_1/1","name":"PPA Zone 0","creator":"SAS_Admin_1","usage":"PPA","terminated":false,"ppaInfo":{"palId":["pal/05-2017/20041084200/A"],"ppaBeginDate":"2017-05-01T00:00:00Z","ppaExpirationDate":"2017-05-01T00:00:00Z","cbsdReferenceId":["CBSD_228_RED/c36153d7b423721145f3f3ac9e28bd02211ff03a"]},"zone":{"features":[{"geometry":{"coordinates":[[[-97.2386169433594,38.8653748516116],[-97.3196411132812,38.7615795117574],[-97.1699523925781,38.7390884418769],[-97.1617126464844,38.867513370012],[-97.2386169433594,38.8653748516116]]],"type":"Polygon"},"properties":{},"type":"Feature"}],"type":"FeatureCollection"}}

But the generated PPA ID in FAD_2 is : "zone/ppa/admin id/PAL ID/uuid"
Spectrum-Access-System/src/harness/util.py:makePpaAndPalRecordsConsistent:
ppa_record['id'] = 'zone/ppa/%s/%s/%s' % (ppa_record['creator'],
ppa_record['ppaInfo']['palId'][0],
uuid.uuid4().hex)

ppa_record['ppaInfo']['palId'][0] to be removed??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions