Compare commits

...

3 Commits

Author SHA1 Message Date
zhangzhihan
af11ad31a4 update dpi 20.08.1 2020-09-01 11:07:04 +08:00
zhangzhihan
0f1d3dac47 update dpi 20.08 2020-09-01 10:59:05 +08:00
zhangzhihan
198f0ab8a0 20.07 2020-07-28 14:55:32 +08:00
26 changed files with 107 additions and 13 deletions

View File

@@ -5,6 +5,14 @@ tsg_access_type: 4
#####0: Tun_mode; 1: normal; 2: ADC;
tsg_running_type: 1
#Common combination mode:
#1:Server or PC tun mode: 0 + 0
#2:Server with Inline device: 1 + 1
#3:ADC with Inline device: 1 + 2
#4:ADC with Allot: 2 + 2
#5:ADC tun mode: 3 + 1
#6:ATCA: 4 + 1
########################################
maat_redis_server:
address: "192.168.40.168"
@@ -69,6 +77,7 @@ mrzcpd:
mrtunnat:
lcore_id: 38
#############ATCA config################
nic_data_incoming:
ethname: enp1s0
vf0_name: enp1s2
@@ -80,10 +89,13 @@ VlanFlipping:
vlanID_2: 101
vlanID_3: 103
vlanID_4: 104
########################################
#############Server or PC tun mode######
server:
ethname: eth0
tun_name: eth0.100
internal_interface: "eth2"
external_interface: "eth3"

View File

@@ -5,19 +5,19 @@ package_source=local
[pc-as-tun-mode]
[blade-mxn]
192.168.40.170
1.1.1.1 device_id=1
[blade-00]
192.168.40.166 vvipv4_1= vvipv4_2= vvipv6_1= vvipv6_2=
1.1.1.1 device_id=1 vvipv4_1= vvipv4_2= vvipv6_1= vvipv6_2=
[blade-01]
192.168.40.167
1.1.1.1 device_id=1
[blade-02]
192.168.40.168
1.1.1.1 device_id=1
[blade-03]
192.168.40.169
1.1.1.1 device_id=1
[Functional_Host:children]
blade-00

View File

@@ -10,7 +10,7 @@
- name: install certstore
yum:
name:
- /tmp/ansible_deploy/certstore-v20.05.0f61dde-1.el7.centos.x86_64.rpm
- /tmp/ansible_deploy/certstore-2.1.2.20200828.f507b3e-1.el7.x86_64.rpm
state: present
- name: template certstore configure file

View File

@@ -20,12 +20,12 @@
- /tmp/ansible_deploy/fw_http_plug-3.0.0.1ca1c65-2.el7.x86_64.rpm
- /tmp/ansible_deploy/fw_mail_plug-3.0.0.3b4e481-2.el7.x86_64.rpm
- /tmp/ansible_deploy/fw_quic_plug-3.0.0.b06d39c-2.el7.x86_64.rpm
- /tmp/ansible_deploy/fw_ssl_plug-3.0.0.3a29c3f-2.el7.x86_64.rpm
- /tmp/ansible_deploy/fw_ssl_plug-3.0.1.7ea9976-2.el7.x86_64.rpm
- /tmp/ansible_deploy/http-2.0.3.9218b4b-2.el7.x86_64.rpm
- /tmp/ansible_deploy/mail-1.0.7.9e3be05-2.el7.x86_64.rpm
- /tmp/ansible_deploy/quic-1.1.6.d6755d8-2.el7.x86_64.rpm
- /tmp/ansible_deploy/ssl-1.0.3.e8482a4-2.el7.x86_64.rpm
- /tmp/ansible_deploy/tsg_conn_record-1.0.0.2155660-1.el7.centos.x86_64.rpm
- /tmp/ansible_deploy/tsg_conn_record-1.0.2.2afb19a-2.el7.x86_64.rpm
- /tmp/ansible_deploy/tsg_conn_sketch-2.0.v2.0_alpha.af621ca-2.el7.x86_64.rpm
- name: "Template the tsgconf/main.conf"

View File

@@ -18,7 +18,7 @@
- /tmp/ansible_deploy/libWiredLB-2.0.3.c7d131b-1.el7.x86_64.rpm
- /tmp/ansible_deploy/libcjson-1.7.8.542ad7f-1.el7.x86_64.rpm
- /tmp/ansible_deploy/libdocumentanalyze-2.0.4.efdfc29-1.el7.x86_64.rpm
- /tmp/ansible_deploy/libmaatframe-3.0.2.dc1fced-2.el7.x86_64.rpm
- /tmp/ansible_deploy/libmaatframe-3.0.3.5931b44-2.el7.x86_64.rpm
- /tmp/ansible_deploy/librulescan-2.2.0.900d2b3-2.el7.x86_64.rpm
- /tmp/ansible_deploy/libwiredcfg-2.0.2.7ce1eea-1.el7.x86_64.rpm
- /tmp/ansible_deploy/lz4-1.7.5-3.el7.x86_64.rpm

View File

@@ -0,0 +1,70 @@
[device]
device={{nic_data_incoming.name}},{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe2.name}},vxlan_user,vxlan_fwd
sz_tunnel=8192
sz_buffer=0
[device:{{nic_data_incoming.name}}]
in_addr={{nic_data_incoming.ip}}
in_mask={{nic_data_incoming.mask}}
gateway={{nic_data_incoming.gw}}
jumbo_frame=1
max_rx_pkt_len=15360
clear_tx_flags=1
#vlan-filter=1
#vlan-id-allow=1301,1302,2301,2302,1501,1502,2501,2502,1601,1602,2601,2602,1701,1702,2701,2702,1801,1802,2801,2802,1901,1902,2901,2902
#vlan-pvid=0
#vlan-pvid-mode=0
[device:{{nic_to_tfe.tfe0.name}}]
jumbo_frame=1
max_rx_pkt_len=15360
clear_tx_flags=1
promisc=1
[device:{{nic_to_tfe.tfe1.name}}]
jumbo_frame=1
max_rx_pkt_len=15360
clear_tx_flags=1
promisc=1
[device:{{nic_to_tfe.tfe2.name}}]
jumbo_frame=1
max_rx_pkt_len=15360
clear_tx_flags=1
promisc=1
[service]
# lcore id for i/o service, use comma to split
iocore={{ mrzcpd.iocore }}
distmode=2
hashmode=0
[eal]
virtaddr=0x7f40c4a00000
loglevel=7
[keepalive]
check_spinlock=0
[ctrlzone]
ctrlzone0=tunnat,64
[pool]
create_mode=3
sz_direct_pktmbuf=4194304
sz_indirect_pktmbuf=8192
sz_cache=256
sz_data=4096
[forward]
nr_forward_rule=10
forward_rule_0=pv,{{nic_data_incoming.name}},{{nic_data_incoming.name}}
forward_rule_1=vp,{{nic_data_incoming.name}},{{nic_data_incoming.name}}
forward_rule_2=vv,vxlan_fwd,vxlan_user
forward_rule_3=vv,vxlan_user,vxlan_fwd
forward_rule_4=pv,{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe0.name}}
forward_rule_5=vp,{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe0.name}}
forward_rule_6=pv,{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe1.name}}
forward_rule_7=vp,{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe1.name}}
forward_rule_8=pv,{{nic_to_tfe.tfe2.name}},{{nic_to_tfe.tfe2.name}}
forward_rule_9=vp,{{nic_to_tfe.tfe2.name}},{{nic_to_tfe.tfe2.name}}

Binary file not shown.

View File

@@ -7,7 +7,7 @@
- name: "install sapp rpms from localhost"
yum:
name:
- /tmp/ansible_deploy/sapp-4.0.18.bb2effd-x86_64...rpm
- /tmp/ansible_deploy/sapp-4.1.2.69e7edf-2.el7.x86_64.rpm
state: present
skip_broken: yes

Binary file not shown.

View File

@@ -14,7 +14,7 @@
yum:
name:
- /tmp/ansible_deploy/tfe-kmod-v1.0.5.20200408-1dkms.noarch.rpm
- /tmp/ansible_deploy/tfe-4.3.7.39bff00-1.el7.x86_64.rpm
- /tmp/ansible_deploy/tfe-4.3.9.4d7957e-1.el7.x86_64.rpm
state: present
- name: "template tfe-env config"

View File

@@ -119,6 +119,7 @@ maat_redis_port_range={{ maat_redis_server.port }}
maat_redis_db_index={{ maat_redis_server.db }}
effect_interval_s=1
#accept_tags={"tags":[{"tag":"location","value":"Astana"}]}
accept_path=/opt/tsg/etc/tsg_device_tag.json
[dynamic_maat]
maat_input_mode=1

View File

@@ -0,0 +1,9 @@
- name: "create /opt/tsg/etc/"
file:
path: /opt/proxy_status
state: directory
- name: "Template tsg_device_tag.json"
template:
src: "{{ role_path }}/templates/tsg_device_tag.json.j2"
dest: /opt/tsg/etc/tsg_device_tag.json

View File

@@ -0,0 +1,2 @@
[MAAT]
ACCEPT_TAGS={"tags":[{"tag":"device_id","value":"{{ device_id }}"}]}

View File

@@ -6,6 +6,6 @@
- name: "install tsg_master from localhost"
yum:
name:
- /tmp/ansible_deploy/tsg_master-3.0.3.3c9cf15-2.el7.x86_64.rpm
- /tmp/ansible_deploy/tsg_master-3.1.2.7002e1b-2.el7.x86_64.rpm
state: present
skip_broken: yes