Hi all,
Following steps works for me in setting up Trellis Mininet setup.
ONOS 2.2
Compiling ONOS
export ONOS_ROOT=`pwd`
. tools/dev/bash_profile
export ONOS_APPS="drivers,openflow,segmentrouting,fpm,dhcprelay, netcfghostprovider,routeradvertisement,mcast,netconf,netcfg"
bazel build onos
bazel run onos-local -- clean
Loading Trellis configuration
export ONOS_ROOT=`pwd`
. tools/dev/bash_profile
Note : Change to Trellis mininet checkout folder.
onos-netcfg localhost routing/trellis/trellis.json
onos localhost
Trellis starting up
Note :
Modified bgpdr1.conf and bgpdbgp1.conf; peer router Ips of "Internal Quagga" and "External Quagga" are incorrect, please correct to 10.0.1.2 and 10.0.1.1 respectively
Also add option “soft-reconfiguration inbound” for neighbors in bgpdr1.conf and bgpdbgp1.conf.
sudo killall -9 dhclient dhcpd zebra bgpd
sudo mn -c
sudo ./trellis.py --controllers <ONOS-IP>
FPM route verification : ONOS, Internal Quagga Router, External Quagga Router
In mininet
External Quagga Router
r1 ip r
r1 telnet localhost bgpd
Note : Will be in BGPD CLI.
show ip bgp neighbors 10.0.1.2 advertised-routes
show ip bgp neighbors 10.0.1.2 received-routes
Internal Quagga Router
bgp1 ip r
bgp1 telnet localhost bgpd
show ip bgp neighbors 10.0.1.1 advertised-routes
show ip bgp neighbors 10.0.1.1 received-routes
In ONOS
routes
For BGPD runtime configuration updating. Attempting to add new route in External Quagga as well as in Internal Quagga; both failed.
enable
conf terminal
router bgp 65001
network 1.1.1.0/24
write
! Note: write failed; couldn't save configuration due to configuration file related issues.
ERROR : Can't open configuration file ...../routing/trellis/./bgpdr1.conf.urkQVe.
But on modifying bgpdr1.conf (added new network at line 34 ); restart Trellis then we can see new routes populated in ONOS.
33 network 10.0.99.0/24
34 network 10.75.75.0/24
35 !
ubuntu@root > routes
B: Best route, R: Resolved route
Table: ipv4
B R Network Next Hop Source (Node)
0.0.0.0/0 172.16.0.1 FPM (127.0.0.1)
> * 10.0.99.0/24 10.0.1.1 FPM (127.0.0.1)
> * 10.75.75.0/24 10.0.1.1 FPM (127.0.0.1)
Total: 3
Table: ipv6
B R Network Next Hop Source (Node)
Total: 0
Help is appreciated in understanding how configuration write restriction can be avoided for Quagga.
Thanks & Regards
Jayakumar
! Note: write failed; couldn't save configuration due to configuration file related issues.
ERROR : Can't open configuration file ...../routing/trellis/./bgpdr1.conf.urkQVe.
--
You received this message because you are subscribed to the Google Groups "Trellis Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trellis-dev...@opennetworking.org.
To view this discussion on the web visit https://groups.google.com/a/opennetworking.org/d/msgid/trellis-dev/SG2PR02MB236715E72088E561D12A34C48D970%40SG2PR02MB2367.apcprd02.prod.outlook.com.