WARNING: As previously announced on our communication channels, the Kytos project will enter the "shutdown" phase on May 31, 2021. After this date, only critical patches (security and core bug fixes) will be accepted, and the project will be in "critical-only" mode for another six months (until November 30, 2021). For more information visit the FAQ at <https://kytos.io/faq>. We'll have eternal gratitude to the entire community of developers and users that made the project so far.
Attention!
THIS NAPP IS STILL EXPERIMENTAL AND IT'S EVENTS, METHODS AND STRUCTURES MAY CHANGE A LOT ON THE NEXT FEW DAYS/WEEKS, USE IT AT YOUR OWN DISCERNEMENT
This NApp is responsible for tracking the network topology and supplying network topology information to any NApp that requires it.
This NApp intends to be protocol agnostic. Therefore, if you want to provide network topology data from any network protocol, check the listened events section and generate them from your NApp.
All of the Kytos Network Applications are located in the NApps online repository. To install this NApp, run:
$ kytos napps install kytos/topology
- kytos/of_core
- kytos/of_lldp
- kytos/storehouse
You have few options to configure the behaviour of this NApp in the settings.py file. Please take a look in this file.
You can customize circuits in the topology using a JSON configuration file. See etc/circuits.json.sample for an example.
Circuits can have a name, a list of hops and as many numeric custom properties as the user wants.
We are working to deliver methods and resources to extend the custom properties in the future.
Event reporting that a new switch was created/added on the network.
{
'switch': <Switch object> # kytos.core.switch.Switch class
}
Event reporting that a port was created/added in the switch/datapath.
{
'switch': <switch id>,
'port': <port number>,
'port_description': {<description of the port>} # port description dict
}
Event reporting that a port was modified in the datapath.
{
'switch': <switch id>,
'port': <port number>,
'port_description': {<description of the port>} # port description dict
}
Event reporting that a port was deleted from the datapath.
{
'switch': <switch id>,
'port': <port number>,
'port_description': {<description of the port>} # port description dict
}
Event reporting that two interfaces were identified as NNI interfaces.
{
'interface_a': {
'switch': <switch id>,
'port': <port number>
},
'interface_b': {
'switch': <switch id>,
'port': <port number>
}
}
Event reporting that a mac address is reachable from a specific switch/port.
{
'switch': <switch id>,
'port': <port number>,
'reachable_mac': <mac address>
}
Event reporting that the topology was updated. It contains the most updated topology.
{
'topology': <Topology object>
}
Event reporting that the switch was enabled. It contains the switch id.
{
'dpid': <switch.id>
}
Event reporting that the switch was disabled. It contains the switch id.
{
'dpid': <switch.id>
}
Event reporting that the link was changed to 'up'. It contains the link instance.
{
'link': <Link object>
}
Event reporting that the link was changed to 'down'. It contains the link instance.
{
'link': <Link object>
}
You can find a list of the available endpoints and example input/output in the 'REST API' tab in this NApp's webpage in the Kytos NApps Server.