Port Representation¶
Extends network resource schema.
A Port connects a Node to the rest of the world. A Port might have zero or more forwarding rules.
JSON Schema¶
See http://unis.crest.iu.edu/schema/20120709/port.
Attributes¶
The following table contains only the Port specific attributes, for the attributes extended from network resource see network resource schema.
Name | Value | Description |
---|---|---|
address | object | Object of {“type”: “type”, “address”: “some_val”}, For example: {“type”: “ipv4”, “address”: “10.10.0.10”} |
capacity | number | Port’s capacity in bytes per second. |
index | string | Port’s index. |
rules | list | List of forwarding rules implemented in the port Each element is object that has three attributes priority, match, and actions. |
Example¶
The following is a simple Port representation example:
{
"$schema": "http://unis.crest.iu.edu/schema/20120709/port#",
"id": "123",
"selfRef": "https://example.com/port/123",
"ts": 1336775637000,
"name": "port1",
"urn": "urn:ogf:network:domain=example.com:port=port1",
"capacity": 10000000000,
"description": "This is a sample port",
"location": {
"institution": "Indiana University"
}
}