Skip to content

Latest commit

 

History

History
60 lines (55 loc) · 936 Bytes

REST-API.md

File metadata and controls

60 lines (55 loc) · 936 Bytes

REST API

Example of requests to be sent using the POST method to endpoint "http://:3001/polt/polt_actions"

Create_ONU: 
{
  "requests":
  [
    {
      "channel_term": 1,
      "action": "ADDONU",
      "onu_id": 2,
      "serial_vendor_id": 1,
      "serial_vendor_specific": 1,
      "flags": present+in_o5,
      "management_state": relying-on-vomci,
      "loid": test1, 
      "v_ani": vani-user1
    }
  ]
}
Delete_ONU:
{
  "requests":
  [
    {
      "channel_term": 1,
      "action": "REMOVEONU",
      "onu_id": 2,
      "serial_vendor_id": 1,
      "serial_vendor_specific": 1,
      "flags": present+in_o5,
      "management_state": relying-on-vomci,
      "loid": test1, 
      "v_ani": vani-user1
    }
  ]
}
RX_mode:
{
  "requests":
  [
	{
	  "mode": "onu_sim",
	  "action": "RxMODE",
	  "onu_sim_ip": "172.18.0.5",
	  "onu_sim_port": 50000
	}
  ]
}