netgate-lldp API (24.06)

This YANG module provides a data model for the VPP LLDP Service.

Copyright 2019-2020 Rubicon Communications, LLC.

lldp-config

returns netgate.lldp.LldpConfig

returns netgate.lldp.LldpConfig

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-lldp:lldp-config"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}

Response samples

Content type
application/yang-data+json
{
  • "netgate-lldp:lldp-config": {
    }
}

creates netgate.lldp.LldpConfig

creates netgate.lldp.LldpConfig

Request Body schema: application/yang-data+json

netgate.lldp.LldpConfig to be added to list

netgate-lldp:system-name
string

LLDP system name

netgate-lldp:tx-interval
integer <int32>

transmit interval range [1..3600]

netgate-lldp:tx-hold
integer <int32>

transmit hold time, range [1..100]

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-lldp:system-name": "string",
  • "netgate-lldp:tx-interval": 0,
  • "netgate-lldp:tx-hold": 0
}

creates or updates netgate.lldp.LldpConfig

creates or updates netgate.lldp.LldpConfig

Request Body schema: application/yang-data+json

netgate.lldp.LldpConfig to be added or updated

object (netgate.lldp.LldpConfig)

Responses

Request samples

Content type
application/yang-data+json
{
  • "netgate-lldp:lldp-config": {
    }
}

removes netgate.lldp.LldpConfig

removes netgate.lldp.LldpConfig

Responses

Request samples

package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "http://hostname/restconf/data/netgate-lldp:lldp-config"

	req, _ := http.NewRequest("DELETE", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := ioutil.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}