Skip to content

Commit

Permalink
Remove sx_socket option because sx socket is now handled in the socke…
Browse files Browse the repository at this point in the history
…ts section of ergw (#265)
  • Loading branch information
Viacheslav Katsuba committed Nov 20, 2020
1 parent 08903aa commit d4d6a42
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
24 changes: 15 additions & 9 deletions priv/dev-sx.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,21 @@
]},
{grx, [{type, 'gtp-u'},
{node, {172,21,16,1}},
{ip, {172,20,16,55}}]}
]},

{sx_socket,
[{node, 'ergw'},
{name, 'ergw'},
{ip, {0,0,0,0}
%%{ip, {127,0,0,1}
}
{ip, {172,20,16,55}}]},
{cp, [
{type, 'gtp-u'},
{vrf, cp},
{ip, {127,0,0,1}},
freebind,
{reuseaddr, true}
]},
{sx, [
{node, 'ergw'},
{name, 'ergw'},
{type, 'pfcp'},
{socket, cp},
{ip, {0,0,0,0}}
]}
]},

{vrfs,
Expand Down
18 changes: 9 additions & 9 deletions priv/dev.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
{irx, [{type, 'gtp-c'},
{ip, {127,0,0,1}},
{reuseaddr, true}
]}
]},

{sx_socket,
[{node, 'ergw'},
{name, 'ergw'},
{socket, cp},
{ip, {0,0,0,0}},
{reuseaddr, true}
]},
{sx, [
{node, 'ergw'},
{name, 'ergw'},
{type, 'pfcp'},
{socket, cp},
{ip, {0,0,0,0}},
{reuseaddr, true}
]}
]},

{handlers,
Expand Down
18 changes: 16 additions & 2 deletions simulator/ergw_sim.erl
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,25 @@

{ergw, [{'$setup_vars',
[{"ORIGIN", {value, "epc.mnc001.mcc001.3gppnetwork.org"}}]},
{sockets, []},
{sockets, [
{cp, [
{type, 'gtp-u'},
{vrf, cp},
{ip, {127,0,0,1}},
freebind,
{reuseaddr, true}
]},
{sx, [
{node, 'ergw'},
{name, 'ergw'},
{type, 'pfcp'},
{socket, cp},
{ip, {127,127,127,127}}
]}
]},
{vrfs, []},
{handlers, []},
{node_selection, []},
{sx_socket, #{node => 'ergw', name => 'ergw', ip => {127,127,127,127}}},
{apns, []}
]},
{ergw_aaa, [{ergw_aaa_provider, {ergw_aaa_mock, [{shared_secret, <<"MySecret">>}]}}]}
Expand Down

0 comments on commit d4d6a42

Please sign in to comment.