summaryrefslogtreecommitdiff
path: root/roles/sled-mcn0/templates
diff options
context:
space:
mode:
authorlijia <[email protected]>2020-03-30 17:50:02 +0800
committerlijia <[email protected]>2020-03-30 17:50:02 +0800
commit6a628c5fe632555ebb66078cd2e26fe27486f030 (patch)
treeac31d42af436078642c0ac6b86c01088e519d3e0 /roles/sled-mcn0/templates
parentf28b134cb578a1994330f345a4eca92ecaf53249 (diff)
更新相关模块的rpm包.HEADmaster
Diffstat (limited to 'roles/sled-mcn0/templates')
-rw-r--r--roles/sled-mcn0/templates/houyi_plug.conf.j22
-rw-r--r--roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j27
-rw-r--r--roles/sled-mcn0/templates/houyi_send_log.conf.j212
-rw-r--r--roles/sled-mcn0/templates/send_raw_pkt.conf.j24
4 files changed, 20 insertions, 5 deletions
diff --git a/roles/sled-mcn0/templates/houyi_plug.conf.j2 b/roles/sled-mcn0/templates/houyi_plug.conf.j2
index 3407f6b..740046e 100644
--- a/roles/sled-mcn0/templates/houyi_plug.conf.j2
+++ b/roles/sled-mcn0/templates/houyi_plug.conf.j2
@@ -3,6 +3,6 @@ log_path=./houyi_log/runtime.log
log_level=20
log_interval=3
-fs2_remote_server_ip=192.168.40.1
+fs2_remote_server_ip=127.0.0.1
fs2_remote_server_port=8152
diff --git a/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2 b/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2
index 247dac2..0d9a523 100644
--- a/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2
+++ b/roles/sled-mcn0/templates/houyi_plug_arp_network.conf.j2
@@ -3,6 +3,9 @@
#dir network mask-bit-num mac-addr
#dir: 0:C2I, 1:I2C
+#houyi模块对方向的定义: houyi_send_dir_t,
+#HOUYI_SEND_DIR_C2I = 0, 内-->外, outbound, 看第一个字母象形, O 0
+#HOUYI_SEND_DIR_I2C = 1, 外-->内, inbound , 看第一个字母象形, I 1
#example:
-0 192.168.10.0 255.255.255.128 46:9d:8e:37:53:11
-1 192.168.10.128 255.255.255.128 46:9d:8e:37:53:22 \ No newline at end of file
+0 10.3.22.128 255.255.255.128 46:9d:8e:37:53:11
+1 10.3.22.0 255.255.255.128 46:9d:8e:37:53:22 \ No newline at end of file
diff --git a/roles/sled-mcn0/templates/houyi_send_log.conf.j2 b/roles/sled-mcn0/templates/houyi_send_log.conf.j2
new file mode 100644
index 0000000..fb14444
--- /dev/null
+++ b/roles/sled-mcn0/templates/houyi_send_log.conf.j2
@@ -0,0 +1,12 @@
+[field_stat2]
+Fs2_log_enable=1
+Fs2_log_local_dir_path=./log
+Fs2_server_ip=127.0.0.1
+Fs2_server_port=8125
+Fs2_interval=2
+
+[kafka]
+Kafka_log_enable=1
+kafka_brokers={{houyi_global.kafka.brokers}}
+Kafka_interval={{houyi_global.kafka.interval}}
+kafka_topic_name={{houyi_global.kafka.topic_name}}
diff --git a/roles/sled-mcn0/templates/send_raw_pkt.conf.j2 b/roles/sled-mcn0/templates/send_raw_pkt.conf.j2
index f69d1da..fc36216 100644
--- a/roles/sled-mcn0/templates/send_raw_pkt.conf.j2
+++ b/roles/sled-mcn0/templates/send_raw_pkt.conf.j2
@@ -9,8 +9,8 @@
## (11:ipfile, 12:marsio4, 13:agent_smith, 14:dpdk_vxlan, 15:marsio_vxlan, 16:pag_marsio
#target_id
-0 pag {{houyi_global.sapp.packet_io.internal_device}} ens4 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 vxlan_user smith dpdk dpdk pag
-1 pag {{houyi_global.sapp.packet_io.external_device}} ens5 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 vxlan_user smith dpdk dpdk pag
+0 pag {{houyi_global.sapp.packet_io.external_device}} ens4 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 vxlan_user smith dpdk dpdk pag
+1 pag {{houyi_global.sapp.packet_io.internal_device}} ens5 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 vxlan_user smith dpdk dpdk pag
#1 pag eth1 eth1 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 p7p1 smith dpdk dpdk pag
#2 pag eth1 eth1 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 p7p1 smith dpdk dpdk pag
#3 pag eth1 eth1 dna0 dpdk ppf npacket qnf n95 eth1 topsec eth1 p7p2 smith dpdk dpdk pag