Git Product home page Git Product logo

Comments (1)

sygibson avatar sygibson commented on August 22, 2024

@jalbstmeijer - presumably you tested the compiled binary to make sure it was working with something like:

cmd/netwrangler --help

And you were able to get some help output?

NetWrangler only supports systemd-networkd config script generation. In addition, the static/netplan.yaml references an interface that may not be on your system (enp3s0). You may need to adjust YAML values for your system. It is also intended to be a one-shot network configuration builder. You still need to run appropriate commands to bring interfaces up/down.

If you are using the Digital Rebar Platform (DRP), the NetWrangler code/capability has been incorporated in to the drpcli command line - and is accessed through the following options:

drpcli net ...

It "fronends" the usage of NetWrangler.

What are you attempting to achieve with NetWrangler? Within the scope of usage with Digital Rebar, or as a separate and standalone tool?

In general - you need to provide an operation to perform (eg -op compile). Using your test - with an invalid NIC that doesn't exist on my system, I get:

root@kvm-0:~/netwrangler# cat test-data/static/netplan.yaml | cmd/netwrangler -op compile
2021/01/15 17:10:17 Error reading 'netplan': netplan:
Ethernet interface enp3s0 does not resolve to any interfaces

Modifying the YAML to reference a physical NIC on my system, using the similar syntax, I get:

root@kvm-0:~/netwrangler# cat np.yaml | cmd/netwrangler -op compile
network:
  ethernets:
    enp1s0f1:
      accept-ra: true
      addresses:
      - 10.10.10.2/24
      gateway4: 10.10.10.1
      nameservers:
        addresses:
        - 10.10.10.1
        - 1.1.1.1
        search:
        - mydomain
        - otherdomain
  renderer: networkd
  version: 2

from netwrangler.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.