Description

AFT Script run conditional next hop atomic flag on failed on 22.3X50.66-J3.4-EVO

Symptoms

AFT Script run conditional next hop atomic flag on failed on 22.3X50.66-J3.4-EVO

Solution

The Atomic flag is set at the Next-hop-group container level and it will not be set at each condition level, We see this correct behavior in our lab on both Junos and EVO where the Atomic flag is set correctly at each next-hop-group level. Customer Script was failing due to parsing logic.  The customer had to modify the messaging format for PTX and it started working.

 

update: {

  timestamp: 1742800752728421460

  prefix: {

    elem: {

      name: "network-instances"

    }

    elem: {

      name: "network-instance"

      key: {

        key: "name"

        value: "DEFAULT"

      }

    }

    elem: {

      name: "afts"

    }

    elem: {

      name: "next-hop-groups"

    }

    elem: {

      name: "next-hop-group"

      key: {

        key: "id"

        value: "2662"

      }

    }

  }

  update: {

    path: {

      elem: {

        name: "state"

      }

      elem: {

        name: "id"

      }

    }

    val: {

      uint_val: 2662

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"                       

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67108865"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "id"

      }

    }

    val: {

      uint_val: 67108865

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67108865"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "dscp"

      }

    }

   

        element: {

          uint_val: 47

        }

      }

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67108865"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "next-hop-group"

      }

    }

    val: {

      uint_val: 2663

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67305473"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "id"

      }

    }

    val: {

      uint_val: 67305473

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67305473"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "dscp"

      }

    }

    val: {

      leaflist_val: {

        element: {

          uint_val: 56

        }

        element: {

          uint_val: 57

        }

        element: {

          uint_val: 58

        }

        element: {

          uint_val: 59

        }

        element: {

          uint_val: 60

        }

        element: {

          uint_val: 61

        }

        element: {

          uint_val: 62

        }

        element: {

          uint_val: 63

        }

        element: {

          uint_val: 48

        }

        element: {

          uint_val: 49

        }

        element: {

          uint_val: 50

        }

        element: {

          uint_val: 51

        }

        element: {

          uint_val: 52

        }

        element: {

          uint_val: 53

        }

        element: {

          uint_val: 54

        }

        element: {

          uint_val: 55

        }

      }

    }

  }

  update: {

    path: {

      elem: {

        name: "conditional"

      }

      elem: {

        name: "condition"

        key: {

          key: "id"

          value: "67305473"

        }

      }

      elem: {

        name: "state"

      }

      elem: {

        name: "next-hop-group"

      }

    }

    val: {

      uint_val: 2666

    }

  }

  atomic: true

}

Modification History

2025-03-27 : Article Created