June 2017
Intermediate to advanced
446 pages
10h 10m
English
If we take a look at the ryu/services/protocols/bgp/api/jsonrpc.py file, we see that the methods are Python decorators, it calls the various functions from ryu/services/protocols/bgp. Let us make a new file under mastering_python_networking named chapter13_jsonrpc_1.py, by making a new file, we can make our changes safely independent of the original file. This is where we will experiment and make our changes. We see that the file imports the neighbors module from rtconf:
from ryu.services.protocols.bgp.rtconf import neighbors
From that module, we retrieve the IP_ADDRESS and REMOTE_AS attribute that we use when creating the neighbor. We can see in the neighbors section of the configuration that were is also ...
Read now
Unlock full access