Skip to content

get the original interfaces file and then append the link down commands#190

Merged
mgheorghe merged 1 commit intomainfrom
muchetan_issue_108
Mar 13, 2023
Merged

get the original interfaces file and then append the link down commands#190
mgheorghe merged 1 commit intomainfrom
muchetan_issue_108

Conversation

@muchetan
Copy link
Copy Markdown
Contributor

in to order to fix issue 108

  • get the original interfaces file then
  • copy to the new file to be written
  • open the file new file in append mode and all the link down commands

Signed-off-by: Chetan Murthy <muchetan@amazon.com>
@mgheorghe mgheorghe merged commit ba1d024 into main Mar 13, 2023
@muchetan muchetan deleted the muchetan_issue_108 branch March 13, 2023 21:10
device.applog.info("Getting the original interface file")
await device.scp(old_fname, "/etc/network/interfaces", remote_to_local=True, sudo=True)
# copy the original file.
shutil.copy(fname, old_fname)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@muchetan You are replacing the recently copied file from the remote. Is this correct?

yuriilisovskyi pushed a commit to PLVision/dent-testing that referenced this pull request Mar 30, 2023
…ds (dentproject#190)

Signed-off-by: Chetan Murthy <muchetan@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants