def METHOD_NAME():
    def _bgp_software_version():
        try:
            versions = output["192.168.1.2"]["neighborCapabilities"][
                "softwareVersion"
            ]
            adv = versions["advertisedSoftwareVersion"]
            rcv = versions["receivedSoftwareVersion"]
            if not adv and not rcv:
                return ""
            pattern = "FRRouting/\\d.+"
            if re.search(pattern, adv) and re.search(pattern, rcv):
                return adv, rcv
        except:
            return ""
    output = json.loads(r1.vtysh_cmd("show bgp neighbor json"))
    adv, rcv = _bgp_software_version()
    expected = {
        "192.168.1.2": {
            "bgpState": "Established",
            "neighborCapabilities": {
                "dynamic": "advertisedAndReceived",
                "softwareVersion": {
                    "advertisedSoftwareVersion": adv,
                    "receivedSoftwareVersion": rcv,
                },
            },
            "connectionsEstablished": 1,
            "connectionsDropped": 0,
        }
    }
    return topotest.json_cmp(output, expected)