File tree 3 files changed +30
-1
lines changed
3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
1
Faucet
2
2
======
3
3
4
- :version: 1.8.0
4
+ :version: 1.8.1
5
5
6
6
.. image :: https://travis-ci.com/faucetsdn/faucet.svg?branch=master
7
7
:target: https://travis-ci.com/faucetsdn/faucet
Original file line number Diff line number Diff line change @@ -791,6 +791,10 @@ is a dictionary of actions to apply upon match.
791
791
- False
792
792
- If True allow the packet to continue through the Faucet pipeline, if
793
793
False drop the packet.
794
+ * - force_port_vlan
795
+ - boolean
796
+ - False
797
+ - if True, don't verify VLAN/port association.
794
798
* - cookie
795
799
- int, 0-2**16
796
800
- defaults to datapath cookie value
Original file line number Diff line number Diff line change @@ -1590,6 +1590,31 @@ def test_push_pop_vlans_acl(self):
1590
1590
"""
1591
1591
self .check_config_success (config , cp .dp_parser )
1592
1592
1593
+ def test_force_port_vlan (self ):
1594
+ """Test push force_port_vlan."""
1595
+ config = """
1596
+ acls:
1597
+ good_acl:
1598
+ rules:
1599
+ - rule:
1600
+ actions:
1601
+ allow: 1
1602
+ force_port_vlan: 1
1603
+ output:
1604
+ swap_vid: 101
1605
+ vlans:
1606
+ guest:
1607
+ vid: 100
1608
+ dps:
1609
+ sw1:
1610
+ dp_id: 0x1
1611
+ interfaces:
1612
+ 1:
1613
+ tagged_vlans: [100]
1614
+ acl_in: good_acl
1615
+ """
1616
+ self .check_config_success (config , cp .dp_parser )
1617
+
1593
1618
def test_failover_acl (self ):
1594
1619
"""Test failover ACL fields."""
1595
1620
config = """
You can’t perform that action at this time.
0 commit comments