23593546 PF states are not removed with the invocation of pfctl -k label
authorchaithan.prakash@oracle.com <chaithan.prakash@oracle.com>
Thu, 06 Oct 2016 17:07:35 -0700
changeset 7072 c03aa782d3f3
parent 7071 5404b7d366cf
child 7073 7425481ae78e
23593546 PF states are not removed with the invocation of pfctl -k label
components/openstack/neutron/files/agent/solaris/packetfilter.py
--- a/components/openstack/neutron/files/agent/solaris/packetfilter.py	Thu Oct 06 16:20:48 2016 -0700
+++ b/components/openstack/neutron/files/agent/solaris/packetfilter.py	Thu Oct 06 17:07:35 2016 -0700
@@ -181,7 +181,7 @@
         for i, keyword in enumerate(keywords):
             if keyword == 'label':
                 break
-        return keywords[i + 1]
+        return keywords[i + 1].strip('"')
 
     def remove_anchor(self, subanchors=None):
         anchor_path = self.get_anchor_path(subanchors)