Fix to work on Aruba
This commit is contained in:
parent
5602922b25
commit
49d40bf2c0
2 changed files with 16 additions and 15 deletions
|
|
@ -5,23 +5,23 @@ use Mix.Config
|
||||||
config :heckle,
|
config :heckle,
|
||||||
vlan_tagging: true,
|
vlan_tagging: true,
|
||||||
vlan_id: 123,
|
vlan_id: 123,
|
||||||
vlan_trunk: "veth0",
|
vlan_trunk: "1",
|
||||||
access_port1: "veth4",
|
access_port1: "3",
|
||||||
access_port2: "veth3",
|
access_port2: "4",
|
||||||
receiver_mac: "00000000000f",
|
receiver_mac: "00000000000f",
|
||||||
receiver_ip: {8,8,8,8},
|
receiver_ip: {8,8,8,8},
|
||||||
sender_mac: "001122334455",
|
sender_mac: "001122334455",
|
||||||
inside_local: {192,168,5,10},
|
inside_local: {192,168,5,10},
|
||||||
outside_local: {192,168,255,1},
|
outside_local: {192,168,255,1},
|
||||||
flow_pattern: :bum
|
flow_pattern: :bum # :nat || :bum
|
||||||
|
|
||||||
config :tres,
|
config :tres,
|
||||||
protocol: :tcp,
|
protocol: :tcp,
|
||||||
port: 6653,
|
port: 6633,
|
||||||
max_connections: 10,
|
max_connections: 10,
|
||||||
num_acceptors: 10,
|
num_acceptors: 10,
|
||||||
callback_module: Heckle.Controller,
|
callback_module: Heckle.Controller,
|
||||||
callback_args: ["0000d2851d52d749"]
|
callback_args: ["0002b05ada98d790"]
|
||||||
|
|
||||||
config :logger,
|
config :logger,
|
||||||
level: :debug,
|
level: :debug,
|
||||||
|
|
|
||||||
|
|
@ -8,22 +8,23 @@ defmodule Heckle.PipelineProfiles do
|
||||||
name: "classifier",
|
name: "classifier",
|
||||||
max_entries: 10,
|
max_entries: 10,
|
||||||
config: [:table_miss_mask], # deprecated mask.
|
config: [:table_miss_mask], # deprecated mask.
|
||||||
match: [:in_port, :masked_eth_src],
|
match: [:in_port, :vlan_vid, :eth_src],
|
||||||
wildcards: [:in_port, :masked_eth_src],
|
wildcards: [:in_port, :vlan_vid, :eth_src],
|
||||||
instructions: [GotoTable],
|
instructions: [GotoTable, ApplyActions],
|
||||||
write_actions: [Output],
|
apply_actions: [Output, PushVlan, SetField, PopVlan],
|
||||||
|
apply_setfield: [:eth_dst, :vlan_vid],
|
||||||
next_tables: [1],
|
next_tables: [1],
|
||||||
),
|
),
|
||||||
TableFeatures.Body.new(
|
TableFeatures.Body.new(
|
||||||
table_id: 1,
|
table_id: 1,
|
||||||
name: "NAT",
|
name: "process",
|
||||||
max_entries: 10,
|
max_entries: 10,
|
||||||
config: [:table_miss_mask],
|
config: [:table_miss_mask],
|
||||||
match: [:eth_dst, :eth_src, :eth_type, :ipv4_src, :ipv4_dst],
|
match: [:eth_src, :masked_eth_dst, :vlan_vid, :eth_type, :ipv4_src, :ipv4_dst],
|
||||||
wildcards: [:eth_dst, :eth_src, :eth_type, :ipv4_src, :ipv4_dst],
|
wildcards: [:eth_src, :masked_eth_dst, :vlan_vid, :eth_type, :ipv4_src, :ipv4_dst],
|
||||||
instructions: [ApplyActions],
|
instructions: [ApplyActions],
|
||||||
write_actions: [SetField, PopVlan, PushVlan, Output],
|
apply_actions: [SetField, PopVlan, PushVlan, Output],
|
||||||
apply_setfield: [:eth_dst, :vlan_vid, :ipv4_src, :ipv4_dst],
|
apply_setfield: [:eth_src, :eth_dst, :vlan_vid, :ipv4_src, :ipv4_dst],
|
||||||
next_tables: [],
|
next_tables: [],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue