def _create_port_context_vmfex(self):
name = PORT_NAME<EOL>port_id = PORT_ID<EOL>vnic_type = VNIC_DIRECT<EOL>profile = {'<STR_LIT>': const.PCI_INFO_CISCO_VIC_1240}<EOL>network_context = FakeNetworkContext([VLAN_SEGMENT])<EOL>port_context = FakePortContext(name, port_id, vnic_type,<EOL>profile, network_context)<EOL>return port_context<EOL>
Creates port context with valid VM-FEX vendor info.