修改atca vxlan流量属性接入配置

This commit is contained in:
fumingwei
2021-04-13 09:42:11 +08:00
parent 1ed3568b7f
commit 6a98bc17b8
9 changed files with 20 additions and 14 deletions

View File

@@ -130,7 +130,7 @@ app_control_plug_log_level: 10
######################################### #########################################
#ATCA Config #ATCA Config
#下列配置只在tsg_access_type=4时生效 #下列配置只在tsg_access_type=4 or 5时生效
ATCA_data_incoming: ATCA_data_incoming:
ethname: enp1s0 ethname: enp1s0
vf0_name: enp1s2 vf0_name: enp1s2

View File

@@ -25,19 +25,19 @@
src: "{{ role_path }}/files/grub" src: "{{ role_path }}/files/grub"
dest: "/etc/default" dest: "/etc/default"
when: when:
- tsg_access_type == 4 - tsg_access_type == 4 or tsg_access_type == 5
- t_kernel_ml.changed - t_kernel_ml.changed
- name: "BIOS:grub2-mkconfig" - name: "BIOS:grub2-mkconfig"
shell: grub2-mkconfig -o /boot/grub2/grub.cfg shell: grub2-mkconfig -o /boot/grub2/grub.cfg
when: when:
- tsg_access_type == 4 - tsg_access_type == 4 or tsg_access_type == 5
- t_kernel_ml.changed - t_kernel_ml.changed
- name: "UEFI:grub2-mkconfig" - name: "UEFI:grub2-mkconfig"
shell: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg shell: grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
when: when:
- tsg_access_type == 4 - tsg_access_type == 4 or tsg_access_type == 5
- t_kernel_ml.changed - t_kernel_ml.changed
- name: "reboot" - name: "reboot"

View File

@@ -3,7 +3,7 @@ log_path = ./log/kni/kni.log
log_level = {{ kni_log_level }} log_level = {{ kni_log_level }}
tfe_node_count = {{ kni.global.tfe_node_count }} tfe_node_count = {{ kni.global.tfe_node_count }}
manage_eth = {{ nic_mgr.name }} manage_eth = {{ nic_mgr.name }}
{% if tsg_running_type != 2 %} {% if tsg_running_type == 0 %}
deploy_mode = tun deploy_mode = tun
{% else %} {% else %}
deploy_mode = normal deploy_mode = normal
@@ -11,7 +11,7 @@ deploy_mode = normal
tun_name = tun_kni tun_name = tun_kni
src_mac_addr = 00:0e:c6:d6:72:c1 src_mac_addr = 00:0e:c6:d6:72:c1
dst_mac_addr = fe:65:b7:03:50:bd dst_mac_addr = fe:65:b7:03:50:bd
{% if tsg_access_type == 4 %} {% if tsg_access_type == 4 or tsg_access_type == 5 %}
[tfe0] [tfe0]
enabled = 1 enabled = 1
dev_eth_symbol = {{ ATCA_data_incoming.vf1_name }} dev_eth_symbol = {{ ATCA_data_incoming.vf1_name }}

View File

@@ -26,7 +26,7 @@
src: "{{ role_path }}/templates/mrapp.sapp4.conf " src: "{{ role_path }}/templates/mrapp.sapp4.conf "
dest: /opt/mrzcpd/etc/mrapp.sapp4.conf dest: /opt/mrzcpd/etc/mrapp.sapp4.conf
when: when:
- tsg_access_type == 4 - tsg_access_type == 4 or tsg_access_type == 5
- name: "update mrglobal.conf.adc_inline" - name: "update mrglobal.conf.adc_inline"
template: template:

View File

@@ -32,10 +32,8 @@
./plug/business/fw_ftp_plug/fw_ftp_plug.inf ./plug/business/fw_ftp_plug/fw_ftp_plug.inf
./plug/business/fw_quic_plug/fw_quic_plug.inf ./plug/business/fw_quic_plug/fw_quic_plug.inf
./plug/business/conn_telemetry/conn_telemetry.inf ./plug/business/conn_telemetry/conn_telemetry.inf
./plug/business/app_control_plug/app_control_plug.inf
{% if tsg_app_enable == 1 %} {% if tsg_app_enable == 1 %}
./plug/business/app_sketch_local/app_sketch_local.inf ./plug/business/app_sketch_local/app_sketch_local.inf
./plug/business/app_control_plug/app_control_plug.inf
{% endif %} {% endif %}
{% if tsg_access_type == 2 %} {% if tsg_access_type == 2 %}
./plug/platform/http_healthcheck/http_healthcheck.inf ./plug/platform/http_healthcheck/http_healthcheck.inf

View File

@@ -33,7 +33,11 @@ dictator_enable=0
l2_l3_tunnel_support=1 l2_l3_tunnel_support=1
### note, optional value is [none, vxlan] ### note, optional value is [none, vxlan]
{% if tsg_access_type == 5 %}
overlay_mode=vxlan
{% else %}
overlay_mode=none overlay_mode=none
{% endif %}
stream_compare_layer_cfg_file="etc/stream_compare_layer.conf" stream_compare_layer_cfg_file="etc/stream_compare_layer.conf"
vlan_flipping_cfg_file="etc/vlan_flipping_map.conf" vlan_flipping_cfg_file="etc/vlan_flipping_map.conf"
asymmetric_presence_layer_cfg_file="etc/asymmetric_presence_layer.conf" asymmetric_presence_layer_cfg_file="etc/asymmetric_presence_layer.conf"
@@ -42,7 +46,7 @@ dictator_enable=0
[packet_io.feature] [packet_io.feature]
{% if tsg_access_type == 4 %} {% if tsg_access_type == 4 or tsg_access_type == 5 %}
### note, used to represent inbound or outbound direction value, ### note, used to represent inbound or outbound direction value,
### because it comes from Third party device, so it needs to be specified manually, ### because it comes from Third party device, so it needs to be specified manually,
### if inbound_route_dir=1, then outbound_route_dir=0, vice versa, ### if inbound_route_dir=1, then outbound_route_dir=0, vice versa,
@@ -89,8 +93,12 @@ dictator_enable=0
name={{packet_io.internal_interface}} name={{packet_io.internal_interface}}
{% else %} {% else %}
type=marsio type=marsio
{% if tsg_access_type == 4 or tsg_access_type == 5 %}
name={{ATCA_data_incoming.vf0_name}}
{% else %}
name={{nic_data_incoming.name}} name={{nic_data_incoming.name}}
{% endif %} {% endif %}
{% endif %}
[packet_io.external.interface] [packet_io.external.interface]
{% if tsg_access_type == 0 %} {% if tsg_access_type == 0 %}

View File

@@ -1,4 +1,4 @@
{% if tsg_access_type == 4 %} {% if tsg_access_type == 4 or tsg_access_type == 5 %}
TFE_DEVICE_DATA_INCOMING={{ ATCA_data_incoming.vf2_name }} TFE_DEVICE_DATA_INCOMING={{ ATCA_data_incoming.vf2_name }}
{% elif tsg_running_type != 2 %} {% elif tsg_running_type != 2 %}
TFE_DEVICE_DATA_INCOMING=tun_kni TFE_DEVICE_DATA_INCOMING=tun_kni
@@ -6,7 +6,7 @@ TFE_DEVICE_DATA_INCOMING=tun_kni
TFE_DEVICE_DATA_INCOMING={{ nic_data_incoming.name }} TFE_DEVICE_DATA_INCOMING={{ nic_data_incoming.name }}
{% endif %} {% endif %}
TFE_LOCAL_MAC_DATA_INCOMING=fe:65:b7:03:50:bd TFE_LOCAL_MAC_DATA_INCOMING=fe:65:b7:03:50:bd
{% if tsg_access_type == 4 %} {% if tsg_access_type == 4 or tsg_access_type == 5 %}
TFE_PEER_MAC_DATA_INCOMING=00:0e:c6:d6:72:c1 TFE_PEER_MAC_DATA_INCOMING=00:0e:c6:d6:72:c1
{% else %} {% else %}
TFE_PEER_MAC_DATA_INCOMING=aa:bb:cc:dd:ee:ff TFE_PEER_MAC_DATA_INCOMING=aa:bb:cc:dd:ee:ff

View File

@@ -10,7 +10,7 @@ ethtool -K {{ packet_io.internal_interface }} gro off
ethtool -K {{ packet_io.external_interface }} tso off ethtool -K {{ packet_io.external_interface }} tso off
ethtool -K {{ packet_io.external_interface }} gso off ethtool -K {{ packet_io.external_interface }} gso off
ethtool -K {{ packet_io.external_interface }} gro off ethtool -K {{ packet_io.external_interface }} gro off
{% elif tsg_access_type == 4 %} {% elif tsg_access_type == 4 or tsg_access_type == 5 %}
echo 3 > /sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs echo 3 > /sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs
ip link set {{ ATCA_data_incoming.ethname }} vf 1 vlan 4095 ip link set {{ ATCA_data_incoming.ethname }} vf 1 vlan 4095
ip link set {{ ATCA_data_incoming.ethname }} vf 2 vlan 4095 ip link set {{ ATCA_data_incoming.ethname }} vf 2 vlan 4095

View File

@@ -3,6 +3,6 @@
echo 0 >/sys/class/net/{{ nic_mgr.name }}/device/sriov_numvfs echo 0 >/sys/class/net/{{ nic_mgr.name }}/device/sriov_numvfs
ifconfig {{ nic_mgr.name }}.100 down ifconfig {{ nic_mgr.name }}.100 down
vconfig rem {{ nic_mgr.name }}.100 vconfig rem {{ nic_mgr.name }}.100
{% if tsg_access_type == 4 %} {% if tsg_access_type == 4 or tsg_access_type == 5 %}
echo 0 >/sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs echo 0 >/sys/class/net/{{ ATCA_data_incoming.ethname }}/device/sriov_numvfs
{% endif %} {% endif %}