Skip to content

Commit

Permalink
gluon-client-bridge: move IPv4 local subnet route to br-client (freif…
Browse files Browse the repository at this point in the history
…unk-gluon#1312)

This patch moves the prefix4 subnet route from the local-node veth
device to br-client (while keeping the next node ipv4 address on the
local node device).

This is in preparation to allow routing over the br-client interface
later.
  • Loading branch information
T-X authored and neocturne committed Feb 15, 2018
1 parent f94a410 commit b3762fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ uci:section('network', 'device', 'local_node_dev', {
local ip4, ip6

if next_node.ip4 then
local plen = site.prefix4():match('/%d+$')
ip4 = next_node.ip4 .. plen
ip4 = next_node.ip4 .. '/32'
end

if next_node.ip6 then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ uci:section('network', 'interface', 'client', {

uci:delete('network', 'client_lan')

uci:delete('network', 'local_node_route')
uci:section('network', 'route', 'local_node_route', {
interface = 'client',
target = site.prefix4(),
})

uci:delete('network', 'local_node_route6')
uci:section('network', 'route6', 'local_node_route6', {
interface = 'client',
Expand Down

0 comments on commit b3762fc

Please sign in to comment.