Policy > Networking > Connectivity > Tier-0 Gateways > Routing > OSPF

Create or update a OSPF routing config

If OSPF routing config is not already present, create OSPF routing config.
If it already exists, replace the OSPF routing config with this object.
This API is only available when using VMware NSX-T.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/locale-services/<locale-service-id>/ospf
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
OspfRoutingConfig+

Example Request:

PUT https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc_prv/locale-services/default/ospf { "enabled": true, "summary_addresses": [ { "prefix": "10.1.1.0/24" }, { "prefix": "11.1.0.0/16", "advertise": false} ], "_revision": 0 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
OspfRoutingConfig+

Example Response:

{ "resource_type": "OspfRoutingConfig", "id": "ospf", "display_name": "ospf", "path": "/infra/tier-0s/vmc_prv/locale-services/default/ospf", "parent_path": "/infra/tier-0s/vmc_prv/locale-services/default", "relative_path": "ospf", "enabled": true, "summary_addresses": [ { "prefix": "10.1.1.0/24" }, { "prefix": "11.1.0.0/16", "advertise": false} ], "graceful_restart_config": { "mode": "HELPER_ONLY" }, "_create_user": "admin", "_create_time": 1516751200877, "_last_modified_user": "admin", "_last_modified_time": 1516751200877, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_ospf

Additional Errors: