netgate-ip API (19.08)

This YANG module provides global ip configuration such as ip-reassembly.

Copyright 2019 Rubicon Communications, LLC.

ip

returns netgate.ip.Ip

get /data/netgate-ip:ip

Example URL

https://hostname/restconf/data/netgate-ip:ip

returns netgate.ip.Ip

Responses

200

netgate.ip.Ip

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ip":
    {
    }
}

creates netgate.ip.Ip

post /data/netgate-ip:ip

Example URL

https://hostname/restconf/data/netgate-ip:ip

creates netgate.ip.Ip

Request Body schema: application/yang-data+json

netgate.ip.Ip to be added to list

reassembly
object (netgate.ip.ip.Reassembly)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "reassembly":
    {
    }
}

creates or updates netgate.ip.Ip

put /data/netgate-ip:ip

Example URL

https://hostname/restconf/data/netgate-ip:ip

creates or updates netgate.ip.Ip

Request Body schema: application/yang-data+json

netgate.ip.Ip to be added or updated

netgate-ip:ip
object (netgate.ip.Ip)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:ip":
    {
    }
}

removes netgate.ip.Ip

delete /data/netgate-ip:ip

Example URL

https://hostname/restconf/data/netgate-ip:ip

removes netgate.ip.Ip

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip"

	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))

}

returns netgate.ip.ip.Reassembly

get /data/netgate-ip:ip/netgate-ip:reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly

returns netgate.ip.ip.Reassembly

Responses

200

netgate.ip.ip.Reassembly

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly":
    {
    }
}

creates netgate.ip.ip.Reassembly

post /data/netgate-ip:ip/netgate-ip:reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly

creates netgate.ip.ip.Reassembly

Request Body schema: application/yang-data+json

netgate.ip.ip.Reassembly to be added to list

ipv4
object (netgate.ip.ip.reassembly.Ipv4)
ipv6
object (netgate.ip.ip.reassembly.Ipv6)

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "ipv4":
    {
    },
  • "ipv6":
    {
    }
}

creates or updates netgate.ip.ip.Reassembly

put /data/netgate-ip:ip/netgate-ip:reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly

creates or updates netgate.ip.ip.Reassembly

Request Body schema: application/yang-data+json

netgate.ip.ip.Reassembly to be added or updated

netgate-ip:reassembly
object (netgate.ip.ip.Reassembly)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:reassembly":
    {
    }
}

removes netgate.ip.ip.Reassembly

delete /data/netgate-ip:ip/netgate-ip:reassembly

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly

removes netgate.ip.ip.Reassembly

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly"

	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))

}

returns netgate.ip.ip.reassembly.Ipv4

get /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Ip4-reassembly settings.

Responses

200

netgate.ip.ip.reassembly.Ipv4

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4":
    {
    }
}

creates netgate.ip.ip.reassembly.Ipv4

post /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.ip.reassembly.Ipv4 to be added to list

max-reassemblies
integer <int64>

Maximum reassemblies count.

timeout-ms
integer <int64>

Reassembly timeout in milliseconds.

expire-walk-interval-ms
integer <int64>

Timeout trying to keep fragments.

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "max-reassemblies": 0,
  • "timeout-ms": 0,
  • "expire-walk-interval-ms": 0
}

creates or updates netgate.ip.ip.reassembly.Ipv4

put /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Ip4-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.ip.reassembly.Ipv4 to be added or updated

netgate-ip:ipv4
object (netgate.ip.ip.reassembly.Ipv4)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv4":
    {
    }
}

removes netgate.ip.ip.reassembly.Ipv4

delete /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4

Ip4-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv4"

	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))

}

returns netgate.ip.ip.reassembly.Ipv6

get /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Ip6-reassembly settings.

Responses

200

netgate.ip.ip.reassembly.Ipv6

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6"

	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
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6":
    {
    }
}

creates netgate.ip.ip.reassembly.Ipv6

post /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.ip.reassembly.Ipv6 to be added to list

max-reassemblies
integer <int64>

Maximum reassemblies count.

timeout-ms
integer <int64>

Reassembly timeout in milliseconds.

expire-walk-interval-ms
integer <int64>

Timeout trying to keep fragments.

Responses

201

Object created

400

Internal error

409

Object already exists

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "max-reassemblies": 0,
  • "timeout-ms": 0,
  • "expire-walk-interval-ms": 0
}

creates or updates netgate.ip.ip.reassembly.Ipv6

put /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Ip6-reassembly settings.

Request Body schema: application/yang-data+json

netgate.ip.ip.reassembly.Ipv6 to be added or updated

netgate-ip:ipv6
object (netgate.ip.ip.reassembly.Ipv6)

Responses

201

Object created

204

Object modified

400

Internal error

Request samples

Content type
application/yang-data+json
Copy
Expand all Collapse all
{
  • "netgate-ip:ipv6":
    {
    }
}

removes netgate.ip.ip.reassembly.Ipv6

delete /data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Example URL

https://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6

Ip6-reassembly settings.

Responses

204

Object deleted

400

Internal error

Request samples

Copy
package main

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

func main() {

	url := "http://hostname/restconf/data/netgate-ip:ip/netgate-ip:reassembly/netgate-ip:ipv6"

	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))

}