BGP Settings   /rest/apv/routing/dynamic/BGPSetting
  • Relational-instance Queries:
  • GET
    /rest/apv/routing/dynamic/BGPSetting/interface
    Query the BGP Interface Entries info of the corresponding BGP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "BGPSetting": {
            "instance_id":<instance_id>,
            "interface":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/routing/dynamic/BGPSetting/interface
    Create a BGP Interface Entry for corresponding BGP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ip6addr
    Response format
            {
                "BGPInterfaceEntry": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/routing/dynamic/BGPSetting/interface/<bgpinterfaceentry_id>
    Delete a specific BGP Interface Entry of corresponding bgpsetting
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • GET
    /rest/apv/routing/dynamic/BGPSetting/network
    Query the BGP Network Entries info of the corresponding BGP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "BGPSetting": {
            "instance_id":<instance_id>,
            "network":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/routing/dynamic/BGPSetting/network
    Create a BGP Network Entry for corresponding BGP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ipaddr
    mask_prefix UnionField
    Response format
            {
                "BGPNetworkEntry": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/routing/dynamic/BGPSetting/network/<bgpnetworkentry_id>
    Delete a specific BGP Network Entry of corresponding bgpsetting
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • GET
    /rest/apv/routing/dynamic/BGPSetting/neighbor
    Query the BGP Neighbor Entries info of the corresponding BGP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "BGPSetting": {
            "instance_id":<instance_id>,
            "neighbor":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/routing/dynamic/BGPSetting/neighbor
    Create a BGP Neighbor Entry for corresponding BGP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ipaddr
    as_number uint32
    capability_dynamic boolean Advertises the dynamic update capability to the BGP neighbor. The dynamic update capability enables BGP neighbors to dynamically update BGP capabilities without resetting BGP connections.
    capability_option enum Available values:
    • none (None) - The local BGP router and the BGP neighbor do not exchange the Outbound Route Filter (ORF) prefix list with each other.
    • both (Both) - The local BGP router and the BGP neighbor exchange the ORF prefix list with each other.
    • receive (Receive) - The local BGP router receives the ORF prefix list from the BGP neighbor.
    • send (Send) - The local BGP router sends the ORF prefix list to the BGP neighbor.
    def_orig boolean Uses to advertise the default route destined for the local BGP router to the BGP neighbor.
    shutdown boolean Terminates the connection to the BGP neighbor.
    passive boolean Configures the local BGP router not to actively send BGP Open packets to the BGP neighbor.
    nexthopself boolean Sets the next hop IP address of the advertised route to the IP address of the local BGP router.
    local_as uint32 Sets the substitute ASN used by the local BGP router to communicate with the BGP neighbor which is an EBGP router.
    Response format
            {
                "BGPNeighborEntry": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/routing/dynamic/BGPSetting/neighbor/<bgpneighborentry_id>
    Delete a specific BGP Neighbor Entry of corresponding bgpsetting
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples