#
# IS-IS transformation module
#

from . import _Module

class ISIS(_Module):

  def node_post_transform(self,node,topology):
    for af in ['ipv4','ipv6']:
      if af in node.loopback:        # Address family enabled on loopback?
        node.isis[af] = True         # ... we need it in IS-IS
        continue

      for l in node.get('links',[]): # Scan all links
        if af in l:                  # Do we have AF enabled on any of them?
          node.isis[af] = True       # Found it - we need it in IS-IS
          continue

38abe06699954414eda0d1d3914c50e6a30e3f61
<mask token>

<mask token>


class ISIS(_Module):
    <mask token>

<mask token>


class ISIS(_Module):

    def node_post_transform(self, node, topology):
        for af in ['ipv4', 'ipv6']:
            if af in node.loopback:
                node.isis[af] = True
                continue
            for l in node.get('links', []):
                if af in l:
                    node.isis[af] = True
                    continue

from . import _Module


class ISIS(_Module):

    def node_post_transform(self, node, topology):
        for af in ['ipv4', 'ipv6']:
            if af in node.loopback:
                node.isis[af] = True
                continue
            for l in node.get('links', []):
                if af in l:
                    node.isis[af] = True
                    continue

#
# IS-IS transformation module
#

from . import _Module

class ISIS(_Module):

  def node_post_transform(self,node,topology):
    for af in ['ipv4','ipv6']:
      if af in node.loopback:        # Address family enabled on loopback?
        node.isis[af] = True         # ... we need it in IS-IS
        continue

      for l in node.get('links',[]): # Scan all links
        if af in l:                  # Do we have AF enabled on any of them?
          node.isis[af] = True       # Found it - we need it in IS-IS
          continue
