
TRUNK_SUBPORT_OWNER = ""


class NexusMDTrunkHandler(object):

    def _stub_trunk(self, *args):
        return False

    is_trunk_parentport = _stub_trunk
    is_trunk_subport = _stub_trunk


class NexusTrunkDriver(object):

    def create(self):
        pass


class DriverBase(object):
    pass


TRUNK_SUBPORT_OWNER = ""
VLAN = ""


class DriverBase(object):
    def __init__(self, name, interfaces, segmentation_types,
                 agent_type=None, can_trunk_bound_port=False):
        pass

Fix neutron server crash introduced by trunk code
Fix neutron server crash introduced by trunk code

When running pre-stable/ocata neutron code the networking_cisco trunk
code was crashing due to incorrect backwards_compatibility implementation.

Change-Id: I8188f8d16313166418d207c99124e2763eb669a1

  
  TRUNK_SUBPORT_OWNER = ""
+ VLAN = ""
- 
- 
- class NexusMDTrunkHandler(object):
- 
-     def _stub_trunk(self, *args):
-         return False
- 
-     is_trunk_parentport = _stub_trunk
-     is_trunk_subport = _stub_trunk
- 
- 
- class NexusTrunkDriver(object):
- 
-     def create(self):
-         pass
  
  
  class DriverBase(object):
+     def __init__(self, name, interfaces, segmentation_types,
+                  agent_type=None, can_trunk_bound_port=False):
-     pass
+         pass
  
Fix neutron server crash introduced by trunk code
## Code Before:

TRUNK_SUBPORT_OWNER = ""


class NexusMDTrunkHandler(object):

    def _stub_trunk(self, *args):
        return False

    is_trunk_parentport = _stub_trunk
    is_trunk_subport = _stub_trunk


class NexusTrunkDriver(object):

    def create(self):
        pass


class DriverBase(object):
    pass

## Instruction:
Fix neutron server crash introduced by trunk code
## Code After:

TRUNK_SUBPORT_OWNER = ""
VLAN = ""


class DriverBase(object):
    def __init__(self, name, interfaces, segmentation_types,
                 agent_type=None, can_trunk_bound_port=False):
        pass
