Commit e10b11ac authored by Simon Redman's avatar Simon Redman

Add logging for geting output interface

parent f451ad94
......@@ -21,6 +21,7 @@
import ipaddress
from collections import namedtuple
import json
import logging
import requests
import socket
......@@ -31,6 +32,9 @@ from typing import List, Dict
from northbound_match import Match
from northbound_actions import Actions
LOG = logging.getLogger('')
NumberedResource = namedtuple("NumberedResource", ['id', 'resource',])
class nlsdnController():
......@@ -180,6 +184,7 @@ class nlsdnController():
if route is None:
raise RouteNotFoundError(f"Could not find route for {str(dest_ip)}")
LOG.debug(f"Trying to get output interface for flow matching {nlsdn_match}")
output_iface = self._get_route_attr(route, "RTA_OIF")
match_url = self.NLSDN_TEMPLATE.format(host=management_ip, port=port, endpoint=self.MATCH_ENDPOINT)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment