INFO:__main__:Starting...
DEBUG:l3_attackmitigator.service.l3_attackmitigatorService:Starting Service (tentative endpoint: 0.0.0.0:10002, max_workers: 10)...
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Creating Attack Mitigator Service
INFO:l3_attackmitigator.service.l3_attackmitigatorService:Listening on 0.0.0.0:10002...
DEBUG:l3_attackmitigator.service.l3_attackmitigatorService:Service started
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5101373195648193, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId after updating with the new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Attack Mitigator received attack mitigation information. Prediction confidence: 0.5201160311698914, Predicted class: 1
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:ServiceId:
context_id {
  context_uuid {
    uuid: "admin"
  }
}
service_uuid {
  uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
}

INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service obtained from ServiceId:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

DEBUG:context.client.ContextClient:Creating channel to 10.152.183.162:1010...
DEBUG:context.client.ContextClient:Channel created
DEBUG:context.client.ContextClient:GetService request: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
DEBUG:context.client.ContextClient:GetService result: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:Creating channel to 10.152.183.52:3030...
DEBUG:service.client.ServiceClient:Channel created
DEBUG:service.client.ServiceClient:UpdateService request: {"service_config": {"config_rules": [{"action": "CONFIGACTION_SET", "custom": {"resource_key": "/settings", "resource_value": "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R1-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"}}, {"action": "CONFIGACTION_SET", "custom": {"resource_key": "/device[R3-EMU]/endpoint[13/1/2]/settings", "resource_value": "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"}}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}, {"acl": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "rule_set": {"description": "DROP undesired HTTPS traffic", "entries": [{"action": {"forward_action": "ACLFORWARDINGACTION_DROP", "log_action": "ACLLOGACTION_NOLOG"}, "description": "DROP-10.100.200.4:52982-216.58.215.173:443", "match": {"dscp": 0, "dst_address": "216.58.215.173/32", "dst_port": 443, "end_mpls_label": 0, "protocol": 6, "src_address": "10.100.200.4/32", "src_port": 52982, "start_mpls_label": 0}, "sequence_id": 0}], "name": "DROP-HTTPS", "type": "ACLRULETYPE_IPV4", "user_id": ""}}, "action": "CONFIGACTION_SET"}]}, "service_constraints": [{"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "1"}}}, {"endpoint_location": {"endpoint_id": {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, "location": {"region": "2"}}}], "service_endpoint_ids": [{"device_id": {"device_uuid": {"uuid": "R1-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}, {"device_id": {"device_uuid": {"uuid": "R3-EMU"}}, "endpoint_uuid": {"uuid": "13/1/2"}}], "service_id": {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}, "service_status": {"service_status": "SERVICESTATUS_ACTIVE"}, "service_type": "SERVICETYPE_L3NM"}
DEBUG:service.client.ServiceClient:UpdateService result: {"context_id": {"context_uuid": {"uuid": "admin"}}, "service_uuid": {"uuid": "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"}}
INFO:l3_attackmitigator.service.l3_attackmitigatorServiceServicerImpl:Service with new rule:
service_id {
  context_id {
    context_uuid {
      uuid: "admin"
    }
  }
  service_uuid {
    uuid: "b7dfdd2d-3b50-4290-8bb0-b9fd25e2265e"
  }
}
service_type: SERVICETYPE_L3NM
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R1-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_endpoint_ids {
  device_id {
    device_uuid {
      uuid: "R3-EMU"
    }
  }
  endpoint_uuid {
    uuid: "13/1/2"
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R1-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "1"
    }
  }
}
service_constraints {
  endpoint_location {
    endpoint_id {
      device_id {
        device_uuid {
          uuid: "R3-EMU"
        }
      }
      endpoint_uuid {
        uuid: "13/1/2"
      }
    }
    location {
      region: "2"
    }
  }
}
service_status {
  service_status: SERVICESTATUS_ACTIVE
}
service_config {
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/settings"
      resource_value: "{\"address_families\": [\"IPV4\"], \"bgp_as\": 65000, \"bgp_route_target\": \"65000:333\", \"mtu\": 1512}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R1-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.2.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:100\", \"router_id\": \"10.10.10.1\", \"sub_interface_index\": 400, \"vlan_id\": 400}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    custom {
      resource_key: "/device[R3-EMU]/endpoint[13/1/2]/settings"
      resource_value: "{\"address_ip\": \"3.3.1.1\", \"address_prefix\": 24, \"route_distinguisher\": \"65000:200\", \"router_id\": \"20.20.20.1\", \"sub_interface_index\": 500, \"vlan_id\": 500}"
    }
  }
  config_rules {
    action: CONFIGACTION_SET
    acl {
      endpoint_id {
        device_id {
          device_uuid {
            uuid: "R1-EMU"
          }
        }
        endpoint_uuid {
          uuid: "13/1/2"
        }
      }
      rule_set {
        name: "DROP-HTTPS"
        type: ACLRULETYPE_IPV4
        description: "DROP undesired HTTPS traffic"
        entries {
          description: "DROP-10.100.200.4:52982-216.58.215.173:443"
          match {
            protocol: 6
            src_address: "10.100.200.4/32"
            dst_address: "216.58.215.173/32"
            src_port: 52982
            dst_port: 443
          }
          action {
            forward_action: ACLFORWARDINGACTION_DROP
            log_action: ACLLOGACTION_NOLOG
          }
        }
      }
    }
  }
}

