def hp_flow_set_dst_mac(self, eth_dst): from utils import checkmac checkmac(eth_dst) m_eth_dst = {"eth_dst":eth_dst} self.list_match_field.append(m_eth_dst)
def hp_flow_set_src_mac(self, eth_src): from utils import checkmac checkmac(eth_src) m_eth_src = {"eth_src":eth_src} self.list_match_field.append(m_eth_src)