Exemplo n.º 1
0
elif (dest_eid.find(".") != -1):
    afi = lisp.LISP_AFI_IPV4
    ml = 32
elif (geo_string):
    afi = lisp.LISP_AFI_GEO_COORD
    ml = len(dest_eid) * 8
elif (dest_eid.find("-") != -1):
    afi = lisp.LISP_AFI_MAC
    ml = 48
else:
    lisp_close_all_sockets()
    print("Invalid EID address {}".format(dest_eid))
    exit(1)
#endif

if (lisp.lisp_valid_address_format("address", dest_eid) == False):
    print("Invalid address syntax '{}'".format(dest_eid))
    exit(1)
#endif

#
# Store just a destination address unless S->G was specified.
#
map_request.target_eid = lisp.lisp_address(afi, "", ml, iid)
if (sg):
    map_request.target_eid.store_address(sg)
    map_request.target_group.store_address(dest_eid)
    target_eid_str = map_request.target_eid.print_sg(map_request.target_group)
else:
    map_request.target_eid.store_address(dest_eid)
    target_eid_str = map_request.target_eid.print_address()
Exemplo n.º 2
0
elif (O000oo.find(".") != -1):
    IIi1i11111 = lisp.LISP_AFI_IPV4
    ooOO00O00oo = 32
elif (IiIiiI):
    IIi1i11111 = lisp.LISP_AFI_GEO_COORD
    ooOO00O00oo = len(O000oo) * 8
elif (O000oo.find("-") != -1):
    IIi1i11111 = lisp.LISP_AFI_MAC
    ooOO00O00oo = 48
else:
    i11()
    print("Invalid EID address {}".format(O000oo))
    exit(1)
    if 3 - 3: I1Ii111 - O0 / I1Ii111 % OoO0O00 / I1Ii111.I1IiiI
    if 50 - 50: IiII
if (lisp.lisp_valid_address_format("address", O000oo) == False):
    print("Invalid address syntax '{}'".format(O000oo))
    exit(1)
    if 14 - 14: I11i % OoO0O00 * I11i
    if 16 - 16: OoOoOO00.ooOoO0o + i11iIiiIii
    if 38 - 38: IiII * OOooOOo.o0oOOo0O0Ooo
    if 98 - 98: OoooooooOO + iII111i.OoOoOO00
    if 67 - 67: i11iIiiIii - i1IIi % I1ii11iIi11i.O0
OOO0o.target_eid = lisp.lisp_address(IIi1i11111, "", ooOO00O00oo, III1ii1iII)
if (ooO0o0Oo):
    OOO0o.target_eid.store_address(ooO0o0Oo)
    OOO0o.target_group.store_address(O000oo)
    o0oo = OOO0o.target_eid.print_sg(OOO0o.target_group)
else:
    OOO0o.target_eid.store_address(O000oo)
    o0oo = OOO0o.target_eid.print_address()
Exemplo n.º 3
0
elif (IIi.find(".") != -1):
    iI1Ii11iIiI1 = lisp.LISP_AFI_IPV4
    OO0Oooo0oOO0O = 32
elif (o0O0OOO0Ooo):
    iI1Ii11iIiI1 = lisp.LISP_AFI_GEO_COORD
    OO0Oooo0oOO0O = len(IIi) * 8
elif (IIi.find("-") != -1):
    iI1Ii11iIiI1 = lisp.LISP_AFI_MAC
    OO0Oooo0oOO0O = 48
else:
    print("Invalid EID address {}".format(IIi))
    Ii11Ii1I(Oo0oO0oo0oO00)
    exit(1)
    if 62 - 62: I1IiiI
    if 100 - 100: Ii1I - O0 % oO0o * OOooOOo + I1IiiI
if (lisp.lisp_valid_address_format("address", IIi) == False):
    print("Invalid address syntax '{}'".format(IIi))
    Ii11Ii1I(Oo0oO0oo0oO00)
    exit(1)
    if 88 - 88: OoooooooOO - OoO0O00 * O0 * OoooooooOO.OoooooooOO
    if 33 - 33: I1Ii111 + iII111i * oO0o / iIii1I11I1II1 - I1IiiI
    if 54 - 54: I1Ii111 / OOooOOo.oO0o % iII111i
    if 57 - 57: i11iIiiIii.I1ii11iIi11i - Ii1I - oO0o + OoOoOO00
    if 63 - 63: OoOoOO00 * iII111i
oO0o0.target_eid = lisp.lisp_address(iI1Ii11iIiI1, "", OO0Oooo0oOO0O,
                                     iIIiIi1iIII1)
if (iIIi1i1):
    oO0o0.target_eid.store_address(iIIi1i1)
    oO0o0.target_group.store_address(IIi)
    oo = oO0o0.target_eid.print_sg(oO0o0.target_group)
else:
Exemplo n.º 4
0
elif (ii11iIi1I.find(".") != -1):
    i1i = lisp.LISP_AFI_IPV4
    I1I1iIiII1 = 32
elif (OOO0OOO00oo):
    i1i = lisp.LISP_AFI_GEO_COORD
    I1I1iIiII1 = len(ii11iIi1I) * 8
elif (ii11iIi1I.find("-") != -1):
    i1i = lisp.LISP_AFI_MAC
    I1I1iIiII1 = 48
else:
    o000o0o00o0Oo()
    print("Invalid EID address {}".format(ii11iIi1I))
    exit(1)
    if 4 - 4: ooOoO0o + O0 * OOooOOo
    if 55 - 55: Oo0Ooo + iIii1I11I1II1 / OoOoOO00 * oO0o - i11iIiiIii - Ii1I
if (lisp.lisp_valid_address_format("address", ii11iIi1I) == False):
    print("Invalid address syntax '{}'".format(ii11iIi1I))
    exit(1)
    if 25 - 25: I1ii11iIi11i
    if 7 - 7: i1IIi / I1IiiI * I1Ii111.IiII.iIii1I11I1II1
    if 13 - 13: OOooOOo / i11iIiiIii
    if 2 - 2: I1IiiI / O0 / o0oOOo0O0Ooo % OoOoOO00 % Ii1I
    if 52 - 52: o0oOOo0O0Ooo
o0.target_eid = lisp.lisp_address(i1i, "", I1I1iIiII1, i11Iiii)
if (o0o00o0):
    o0.target_eid.store_address(o0o00o0)
    o0.target_group.store_address(ii11iIi1I)
    o0OO0oOO0O0 = o0.target_eid.print_sg(o0.target_group)
else:
    o0.target_eid.store_address(ii11iIi1I)
    o0OO0oOO0O0 = o0.target_eid.print_address()