From badc6c0dd1ca575b27c55021f146c4a9e52a13e2 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 31 Mar 2019 11:10:52 +0200 Subject: [PATCH] Shrink down json for switch --- doc/plan.org | 30 ++++++++++++++++++++++++++++++ p4app/static-mapping.json | 6 ------ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/doc/plan.org b/doc/plan.org index 84d8382..1d6e8b6 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -603,7 +603,37 @@ root@ubuntu:~# ip r default via 10.0.0.66 dev h3-eth0 10.0.0.0/24 dev h3-eth0 proto kernel scope link src 10.0.0.1 root@ubuntu:~# +***** TODO try6: host sees packet, but does not react on it + +p4@ubuntu:~$ mx h3 tcpdump -lni h3-eth0 +tcpdump: verbose output suppressed, use -v or -vv for full protocol decode +listening on h3-eth0, link-type EN10MB (Ethernet), capture size 262144 bytes +09:06:02.636669 IP 10.1.1.1 > 10.0.0.1: ICMP echo request, id 31058, seq 1, length 64 + +in h3: + +root@ubuntu:~# ip a +1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 + link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 + inet 127.0.0.1/8 scope host lo + valid_lft forever preferred_lft forever + inet6 ::1/128 scope host + valid_lft forever preferred_lft forever +2: h3-eth0@if38: mtu 9500 qdisc netem state UP group default qlen 1000 + link/ether 00:00:0a:00:00:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0 + inet 10.0.0.1/24 scope global h3-eth0 + valid_lft forever preferred_lft forever +root@ubuntu:~# + +no arp entries: + +root@ubuntu:~# arp -an +root@ubuntu:~# + + ***** TODO Implement default route handling, maybe implement ARP +****** +****** Entry in v4_networks? **** DONE Add table name support in debug messages **** DONE Why getting IPv6 packets in INFO:main:unhandled reassambled=>>> from table TABLE_V6_NETWORKS diff --git a/p4app/static-mapping.json b/p4app/static-mapping.json index 6078db8..370cfc2 100644 --- a/p4app/static-mapping.json +++ b/p4app/static-mapping.json @@ -45,10 +45,4 @@ } } }, - "exec_scripts": [ - { - "cmd": "./static-mapping.sh", - "reboot_run": true - } - ] }