diff options
author | Matus Fabian <matfabia@cisco.com> | 2017-08-21 07:05:03 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2017-08-23 07:42:10 +0000 |
commit | 2ba92e32e0197f676dd905e5edcb4ff3e1bec241 (patch) | |
tree | 4d5eba20eda422bde4e9218834e1b8662a43b001 /src/scripts | |
parent | cfc997ef3da9f406afe5caad99fc98a53aab7a77 (diff) |
NAT: Rename snat plugin to nat (VPP-955)
Change-Id: I30a7e3da7a4efc6038a91e27b48045d4b07e2764
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/scripts')
-rw-r--r-- | src/scripts/vnet/nat44 (renamed from src/scripts/vnet/snat) | 4 | ||||
-rw-r--r-- | src/scripts/vnet/nat44_det (renamed from src/scripts/vnet/snat_det) | 4 | ||||
-rw-r--r-- | src/scripts/vnet/nat44_static (renamed from src/scripts/vnet/snat_static) | 6 | ||||
-rw-r--r-- | src/scripts/vnet/nat44_static_with_port (renamed from src/scripts/vnet/snat_static_with_port) | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/scripts/vnet/snat b/src/scripts/vnet/nat44 index a711519e..3292b565 100644 --- a/src/scripts/vnet/snat +++ b/src/scripts/vnet/nat44 @@ -30,7 +30,7 @@ packet-generator new { } } -snat add address 172.16.1.3 +nat44 add address 172.16.1.3 set int ip address pg0 10.0.0.1/24 set int ip address pg1 172.16.1.1/24 set int state pg0 up @@ -38,4 +38,4 @@ set int state pg1 up set ip arp static pg0 10.0.0.3 abcd.abcd.abcd set ip arp static pg0 10.0.0.4 abcd.abcd.abcd set ip arp static pg1 172.16.1.2 cdef.abcd.abcd -set int snat in pg0 out pg1 +set int nat44 in pg0 out pg1 diff --git a/src/scripts/vnet/snat_det b/src/scripts/vnet/nat44_det index d1361bb1..629772e6 100644 --- a/src/scripts/vnet/snat_det +++ b/src/scripts/vnet/nat44_det @@ -96,7 +96,7 @@ packet-generator new { } } -snat deterministic add in 10.0.0.0/21 out 1.1.1.2/32 +nat44 deterministic add in 10.0.0.0/21 out 1.1.1.2/32 set int ip address pg0 10.0.0.1/24 set int ip address pg1 172.16.1.1/24 set int state pg0 up @@ -104,5 +104,5 @@ set int state pg1 up set ip arp static pg0 10.0.0.3 abcd.abcd.abcd set ip arp static pg0 10.0.0.4 abcd.abcd.abcd set ip arp static pg1 172.16.1.2 cdef.abcd.abcd -set int snat in pg0 out pg1 +set int nat44 in pg0 out pg1 trace add pg-input 10 diff --git a/src/scripts/vnet/snat_static b/src/scripts/vnet/nat44_static index 8fe48bff..2b8f25ec 100644 --- a/src/scripts/vnet/snat_static +++ b/src/scripts/vnet/nat44_static @@ -32,13 +32,13 @@ packet-generator new { } } -snat add address 172.16.1.3 -snat add static mapping local 10.0.0.3 external 172.16.1.3 +nat44 add address 172.16.1.3 +nat44 add static mapping local 10.0.0.3 external 172.16.1.3 set int ip address pg0 10.0.0.1/24 set int ip address pg1 172.16.1.1/24 set int state pg0 up set int state pg1 up set ip arp static pg0 10.0.0.3 abcd.abcd.abcd set ip arp static pg1 172.16.1.2 cdef.abcd.abcd -set int snat in pg0 out pg1 +set int nat44 in pg0 out pg1 trace add pg-input 10 diff --git a/src/scripts/vnet/snat_static_with_port b/src/scripts/vnet/nat44_static_with_port index f646145a..15bef1be 100644 --- a/src/scripts/vnet/snat_static_with_port +++ b/src/scripts/vnet/nat44_static_with_port @@ -32,13 +32,13 @@ packet-generator new { } } -snat add address 172.16.1.3 -snat add static mapping local 10.0.0.3 3000 external 172.16.1.3 3000 +nat44 add address 172.16.1.3 +nat44 add static mapping local 10.0.0.3 3000 external 172.16.1.3 3000 set int ip address pg0 10.0.0.1/24 set int ip address pg1 172.16.1.1/24 set int state pg0 up set int state pg1 up set ip arp static pg0 10.0.0.3 abcd.abcd.abcd set ip arp static pg1 172.16.1.2 cdef.abcd.abcd -set int snat in pg0 out pg1 +set int nat44 in pg0 out pg1 trace add pg-input 10 |