During the PTP Notification subscription and query, use the actual Node_NAME but not the dummy NODE_NAMES such as 5G-DU and 4G-DU.

  • If you are using the single WPC, use only nic1 during the PTP Notification subscription and query.

  • If you are using the Dual WPC, use nic1 and nic2 during the PTP Notification subscription and query.

How to add the NODE_NAME to be used in CURL commands for PTP notifications subscription and query?

Add the following environment variable to the DU application container to pass the node name:

# Do not modify the -name field (THIS_NODE_NAME)

env:
 
  - name: "THIS_NODE_NAME"
 
    valueFrom:
 
      fieldRef:
 
        fieldPath: "spec.nodeName"

How to use the NODE_NAME for PTP Notification in subscription and query?

Example: If the node_name is wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722, use the following CURL commands:

  • Sample subscription commands:

    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/sync-status/sync-state", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
     
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/sync-status/os-clock-sync-state", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
     
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/gnss-status/gnss-sync-status", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
     
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic1/sync/ptp-status/lock-state", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
     
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic2/sync/ptp-status/lock-state", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
      
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic1/sync/ptp-status/clock-class", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'
      
    curl  -v -d '{"ResourceAddress": "/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic2/sync/ptp-status/clock-class", "EndpointUri": "  http://127.0.0.1:10000/ptp/status2"}' -H 'Content-Type: application/json' -X POST http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'  
  • Sample query commands:

    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/sync-status/sync-state/CurrentState | jq '.'
     
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/sync-status/os-clock-sync-state/CurrentState | jq '.'
     
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/sync/gnss-status/gnss-sync-status/CurrentState | jq '.'
     
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic1/sync/ptp-status/lock-state/CurrentState | jq '.'  
     
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic2/sync/ptp-status/lock-state/CurrentState | jq '.'
      
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic1/sync/ptp-status/clock-class/CurrentState | jq '.'
     
    curl  -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudnotifications/v2/cluster-1/wc-71-np-h1404-h6v6x-6687b8f794xlbw8s-dn722/nic2/sync/ptp-status/clock-class/CurrentState | jq '.'
     
    curl -v -H 'Content-Type: application/json' http://127.0.0.1:8080/ocloudNotifications/v2/subscriptions | jq '.'