diff options
author | Damjan Marion <damarion@cisco.com> | 2022-05-14 00:14:02 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-05-16 01:31:54 +0000 |
commit | 3153f007c0b5954faf880e6404bebf7f0b7777bb (patch) | |
tree | 239edca15c5663f3697e467dc531bab2446d3822 /src/scripts/vnet/bvi | |
parent | 342044a3b5a8b2fe6287ca49b69df0c4bd2ca34c (diff) |
vlib: exec cli line-by-line processing and script updates
Type: improvement
Change-Id: I82e7c0acc547794bcc7c42f4b8881a8251bf7a9b
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/scripts/vnet/bvi')
-rw-r--r-- | src/scripts/vnet/bvi | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/scripts/vnet/bvi b/src/scripts/vnet/bvi index e1caf6606d6..cf55d63c2f2 100644 --- a/src/scripts/vnet/bvi +++ b/src/scripts/vnet/bvi @@ -3,12 +3,12 @@ set int state tuntap-0 down set int ip address GigabitEthernet2/1/0 1.2.3.4/24 -set int state GigabitEthernet2/1/0 up -cre sub GigabitEthernet2/1/0 1 dot1q 7 +set int state GigabitEthernet2/1/0 up +cre sub GigabitEthernet2/1/0 1 dot1q 7 set int state GigabitEthernet2/1/0.1 up set int state GigabitEthernet2/2/0 up -cre sub GigabitEthernet2/2/0 1 dot1q 9 +cre sub GigabitEthernet2/2/0 1 dot1q 9 set int state GigabitEthernet2/2/0.1 up @@ -22,7 +22,7 @@ set int l2 bridge GigabitEthernet2/1/0.1 0 set int l2 bridge GigabitEthernet2/2/0.1 0 set int l2 tag-rewrite GigabitEthernet2/1/0.1 pop 1 -set int l2 tag-rewrite GigabitEthernet2/2/0.1 pop 1 +set int l2 tag-rewrite GigabitEthernet2/2/0.1 pop 1 l2fib add 00:22:44:06:08:0a 0 GigabitEthernet2/1/0.1 static l2fib add 00:02:04:06:08:0a 0 GigabitEthernet2/2/0.1 static @@ -38,36 +38,36 @@ cle er cle int cle run -packet-generator new { - name bvi_to_l2 - limit 100 - node ethernet-input - interface GigabitEthernet2/1/0 - data { - IP4: 0050.56b7.7c83 -> 0050.56b7.296d - GRE: 1.2.3.3 -> 8.0.0.1 mpls_unicast +packet-generator new { \ + name bvi_to_l2 \ + limit 100 \ + node ethernet-input \ + interface GigabitEthernet2/1/0 \ + data { \ + IP4: 0050.56b7.7c83 -> 0050.56b7.296d \ + GRE: 1.2.3.3 -> 8.0.0.1 mpls_unicast \ } } -packet-generator new { - name l2_to_bvi - limit 50 - node ethernet-input - interface GigabitEthernet2/2/0 - data { - IP4: 0050.56b7.7c83 -> dead.0000.0000 vlan 9 - GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast - } +packet-generator new { \ + name l2_to_bvi \ + limit 50 \ + node ethernet-input \ + interface GigabitEthernet2/2/0 \ + data { \ + IP4: 0050.56b7.7c83 -> dead.0000.0000 vlan 9 \ + GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast \ + } \ } -packet-generator new { - name l2_to_bvi_via_flood - limit 25 - node ethernet-input - interface GigabitEthernet2/2/0 - data { - IP4: 0050.56b7.7c83 -> ffff.ffff.ffff vlan 9 - GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast - } +packet-generator new { \ + name l2_to_bvi_via_flood \ + limit 25 \ + node ethernet-input \ + interface GigabitEthernet2/2/0 \ + data { \ + IP4: 0050.56b7.7c83 -> ffff.ffff.ffff vlan 9 \ + GRE: 8.0.0.1 -> 1.2.3.3 mpls_unicast \ + } \ } |