FPM Route Population : Experiments with Trellis Mininet scripts; Some errors still pending.

3 views
Skip to first unread message

Jayakumar Thazhath

unread,
Oct 11, 2019, 6:18:24 AM10/11/19
to Trellis Developers

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

 

Charles Chan

unread,
Oct 18, 2019, 6:12:26 PM10/18/19
to Jayakumar Thazhath, Trellis Developers
Hi Jayakumar,

I am not able to reproduce this issue.
I tried to add a new subnet on r1 (external router). bgp1 (Quagga) immediately learnt the route and push to ONOS. ONOS also programed the flow accordingly.
show running-config also has the newly added subnet.
write command also completed successfully.

r1(config-router)# write
Configuration saved to /home/sdn/routing/trellis/./bgpdr1.conf

I noticed your file wrote to a weird path

! Note: write failed; couldn't save configuration due to configuration file related issues.
ERROR : Can't open configuration file ...../routing/trellis/./bgpdr1.conf.urkQVe.
I am guessing that your quagga process doesn't have permission to write to the config file.
Can you share the result of
ps aux | grep zebra
ls -la <bgpdr1.conf absolute path>

Thanks,
Charles Chan, Ph.D.
Member of Technical Staff, Open Networking Foundation


--
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.
Reply all
Reply to author
Forward
0 new messages