Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Following is reported a typical interface configuration used for SDN-IP

Code Block
titleExample of interface configurationSDN-IP configuration example
{
    "ports" : {
        "of:0000000000000001/1" : {
            "interfaces" : [
                {
                    "name" : "Interface 1 sw 1",
				    "ips"  : [ "1.1.1.1/24", "10.10.10.1/24" ],
                    "mac"  : "00:00:00:00:00:01"
                }
            ]
        },
        "of:0000000000000002/1" : {
            "interfaces" : [
                {
                    "name" : "Interface 1 sw 2",
                    "ips"  : [ "2.2.2.2/24" ],
					"vlan" : "100",
				    "mac"  : "00:00:00:00:00:02"
                },
				{
                    "name" : "Interface 2 sw 2",
                    "ips"  : [ "3.3.3.3/24" ],
					"vlan": "150",
				    "mac"  : "00:00:00:00:00:03"
                }
            ]
        }
}

...

What's reported above is a very generic sample configuration example, used for in SDN-IP. Indeed, the The configuration is very specific to the application that parses it.

...

Even if different applications might interpret the configuration in different ways, there's an agreement about how parameters should be read. Following is a list of rules we generally follow:

  • name:

1 to 1 mapping between an interface and a port

...