• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

noironetworks / opflex / 1472
79%
master: 68%

Build:
Build:
LAST BUILD BRANCH: coveralls
DEFAULT BRANCH: master
Ran 28 Sep 2020 07:28AM UTC
Jobs 1
Files 271
Run time 27s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1472

push

travis-ci-com

Madhu Challa
Allow service target to reach its own service

- Add loopback flows with prio 102 and extra match
- To service traffic when DIP is changed to nexthop
  also change SIP to service in service table
- When service target responds back it would appear like
  packet going back to service
- However in the service rev table we again change
  SIP to service ip and DIP to taget so the target
  will see the response as coming from service

LOOPBACK FLOWS

TO_SERVICE
recirc_id(0),in_port(6),ct_state(-new-est-inv-trk),ct_mark(0),eth(src=76:59:f9:71:28:4d,dst=00:22:bd:f8:19:ff),eth_type(0x0800),ipv4(src=11.3.56.42,dst=10.104.231.160,proto=6,ttl=64,frag=no),tcp(dst=80), packets:215, bytes:17122, used:0.948s, flags:SFPR., actions:set(ipv4(src=10.104.231.160,dst=11.3.56.42,ttl=63)),set(tcp(dst=8080)),ct(commit,zone=4,mark=0x5/0xffffffff),set(eth(src=00:22:bd:f8:19:ff,dst=76:59:f9:71:28:4d)),set(ipv4(ttl=62)),6

 6. tcp,reg6=0x1,metadata=0/0x200,nw_src=11.3.56.42,nw_dst=10.104.231.160,tp_dst=80, priority 102, cookie 0x13 // higher prio flow compare nw_src with svc tgt
    set_field:8080->tcp_dst
    set_field:11.3.56.42->ip_dst // next-hop
    dec_ttl
    set_field:10.104.231.160->ip_src // service-ip for loopback source
    load:0xa68e7a0->NXM_NX_REG8[]
    load:0x5->NXM_NX_REG12[]
    ct(commit,zone=4,exec(load:0x5->NXM_NX_CT_MARK[]))
    load:0x5->NXM_NX_CT_MARK[]
     -> Sets the packet to an untracked state, and clears all the conntrack fields.
    write_metadata:0x400/0x400
    goto_table:7

FROM_SERVICE
recirc_id(0),in_port(6),ct_state(-new-est-inv-trk),ct_mark(0),eth(src=76:59:f9:71:28:4d),eth_type(0x0800),ipv4(src=11.3.56.42,proto=6,frag=no),tcp(src=8080), packets:182, bytes:44440, used:0.949s, flags:SFP., actions:ct(zone=4),recirc(0x7)
recirc_id(0x7),in_port(6),ct_state(-new+est-inv+trk),ct_mark(0x5),eth(src=76:59:f9:71:28:4d,dst=00:22:bd:f8:19:ff),eth_type(0x0800),ipv4(src=11.3.56.42,dst=10.104.231.160,proto=6,ttl=64,frag=no),tcp(src=8080), packets:182, byt... (continued)

21958 of 27738 relevant lines covered (79.16%)

3209.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1472.1 (TEST_SUITE=travis-build.sh) 28 Sep 2020 07:28AM UTC 0
79.16
Travis Job 1472.1
Source Files on build 1472
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1472
  • b1ed3095 on github
  • Prev Build on svc-loopback (#1470)
  • Next Build on svc-loopback (#1477)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc