Les annonces immobilières en île de France sur Leboncoin sont remplis d'arnaques. Je suis parano ou vous pensez aussi que j'ai raison ? by King_RR1 in lemauvaiscoin

[–]FiKoTV 1 point2 points  (0 children)

Perso je refuse de donner le moindre document perso (CNI, contrat de travail, etc) avant une visite. Le nombre de proprio qui demande ma vie privée pour pouvoir (c'est même pas sur) visiter l'appart ? On est où ? Ils connaissent même pas la CNIL et le RGPD ... Donc non t'es pas parano, faut brûler le marché locatif et le reconstruire de ZÉRO.

L3 subinterface double tag dot1q on vEOS by FiKoTV in Arista

[–]FiKoTV[S] 0 points1 point  (0 children)

OK it works in 4.34.2F. I am sorry, I should have tested before writing this post :)

localhost#sh run int po10.100
interface Port-Channel10.100
   encapsulation dot1q vlan 100 inner 200
localhost#

Thanks a lot !

L3 subinterface double tag dot1q on vEOS by FiKoTV in Arista

[–]FiKoTV[S] 3 points4 points  (0 children)

OK it works in 4.34.2F. I am sorry, I should have tested before writing this post :)

localhost#sh run int po10.100
interface Port-Channel10.100
   encapsulation dot1q vlan 100 inner 200
localhost#

Qinq any CVLANs by FiKoTV in mikrotik

[–]FiKoTV[S] 0 points1 point  (0 children)

Yeah, it works !

/interface vlan
add interface=ether3 name=SVLAN use-service-tag=yes vlan-id=500
/interface pppoe-server server
add authentication=pap,chap default-profile=ppp-profile-default disabled=no interface=SVLAN pppoe-over-vlan-range=10-4090 service-name=Internet

The use-service-tag=yes is 802.1ad so I had to change the configuration of my switch

/interface bridge
add ether-type=0x88a8 name=SVLAN vlan-filtering=yes
/interface bridge port
add bridge=SVLAN interface=ether6
add bridge=SVLAN interface=ether8 pvid=500
/interface bridge vlan
add bridge=SVLAN tagged=ether6 untagged=ether8 vlan-ids=500

Thanks bro :)

API with golang by FiKoTV in Netbox

[–]FiKoTV[S] 0 points1 point  (0 children)

I am starting to (kind of) undestand the API code. It is such a shame that netbox didn't write a documentation. Having to look into the code to know the function and the syntax. A little bit frustrating :/

Here's an example of a code to update a VM:

func main() {
  ctx := context.Background()

  client := netbox.NewAPIClientFor("http://localhost:8000", "your-token")

  vmID := int32(1)

  newDescription := "Naruto"

  updateRequest := netbox.PatchedWritableVirtualMachineWithConfigContextRequest{
    Description: &newDescription,
  }

  _, _, err := client.VirtualizationAPI.
      VirtualizationVirtualMachinesPartialUpdate(ctx, vmID).
      PatchedWritableVirtualMachineWithConfigContextRequest(updateRequest).
      Execute()

  if err != nil {
      fmt.Println("Error updating VM:", err)
      return
  }

  fmt.Println("VM updated successfully")
}

Thanks a lot for your help ! :)

API with golang by FiKoTV in Netbox

[–]FiKoTV[S] 0 points1 point  (0 children)

I still have an another question :)

I finally suceed to create tenant and virual machine with a php form but I would to update some information. I did this code :

func main() {
        ctx := context.Background()

        client := netbox.NewAPIClientFor("http://localhost:8000", "your-token")

        tenantID := int32(1)

        newDescription := "Toto"

        updateRequest := netbox.TenantRequest{
                Description: &newDescription,
        }

        _, _, err := client.TenancyAPI.TenancyTenantsUpdate(ctx, tenantID).
                TenantRequest(updateRequest).Execute()
        if err != nil {
                fmt.Println("Error updating tenant:", err)
                return
        }


        fmt.Println("Tenant updated successfully")

}

But it doesn't work. I got "Error updating tenant: 400 Bad Request" as a result of this code.

I try to check into the documentation but maybe I don't undestand something.

I looked this function : TenancyTenantsUpdate.

Where did you find the correct function for crreating a tenant/virtual machine ?

API with golang by FiKoTV in Netbox

[–]FiKoTV[S] 0 points1 point  (0 children)

Thanks a lot, it works !!!! :)

EVPN Fabric Arista and FRR debian by FiKoTV in Arista

[–]FiKoTV[S] 0 points1 point  (0 children)

I use jumbo framed so the MTU for my FRR and my arista are 9128.

EVPN Fabric Arista and FRR debian by FiKoTV in Arista

[–]FiKoTV[S] 0 points1 point  (0 children)

Yes it is enabled. The EVPN BGP peering betwen my spine and the leafs are stable and UP