network_config:
  -
    type: route_table
    name: custom
    table_id: 200
  -
    type: route_table
    name: alternate
    table_id: 201
  -
    type: interface
    name: em1
    use_dhcp: false
    addresses:
    -
      ip_netmask: 192.0.2.1/24
    routes:
      -
        ip_netmask: 10.1.3.0/24
        next_hop: 192.0.2.5
        route_options: "metric 10"
        table: 200  # Use table ID or table name
      -
        ip_netmask: 0.0.0.0/0
        next_hop: 192.0.2.254
        default: true
        table: 200
    rules:
      - rule: "iif em1 table 200"
        comment: "Route incoming traffic to em1 with table 200"
      - rule: "from 192.0.2.0/24 table 200"
        comment: "Route all traffic from 192.0.2.0/24 with table 200"
      - rule: "add blackhole from 172.19.40.0/24 table 200"
      - rule: "add unreachable iif em1 from 192.168.1.0/24"
  -
    type: interface
    name: em2
    use_dhcp: false
    addresses:
      - ip_netmask: 10.0.2.1/24
    routes:
      -
        ip_netmask: 10.1.3.0/24
        next_hop: 10.0.2.253
        table: alternate  # Use table ID or table name
      -
        default: true
        next_hop: 10.0.3.254
        route_options: "table alternate"
    rules:
      - rule: "iif em2 table alternate"
      - rule: "from 10.0.2.0/24 table alternate"
